![]() |
Prev | Next | vec2numpy |
array = cppad_py.utility.vec2numpy(vec, nr)
array = cppad_py.utility.vec2numpy(vec, nr, nc)
cppad_py.vec_int
,
cppad_py.vec_double
,
vec_py.vec_a_double
.
with size equal to
nr*nc
.
int
equal to the number of rows in the array.
If the argument
nc
is not present, the array is a vector; i.e.,
len( array.shape ) == 1
.
int
equal to the number of columns in the array.
In this case the array is a matrix; i.e.,
len( array.shape ) == 2
.
vec
in row major order.
Note that this array can be used after the vector
vec
drops
out of scope (is deleted).