Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to create a nonzero vector?

Hi. I would like to create a nonzero vector, for example, a vector of 100 elements of 1. I can do this with a for loop, but I'm not sure if there's a faster way to do it, similar to zero_vector(). Thanks.