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.
| 1 | initial version |
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.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.