![]() |
Prev | Next | numpy2vec |
vec = cppad_py.utility.numpy2vec(
array, dtype, shape, syntax, name
)
bool
, int
, float
or cppad_py.a_double
.
int
or a tuple of int
with length one or two.
If it is an int
,
array
is expected to be a vector.
If it is a tuple with length one,
array
is expected to be a vector.
Otherwise a matrix is expected.
array
appears in.
It is a str
that is used for error reporting.
array
in
syntax
.
It is a str
that is used for error reporting.
array
as a vector is row major order.
It has type vec_double
if
dtype
is float
,
and vec_a_double
if
dtype
is a_double
.