Prev Next vector_ctor

@(@\newcommand{\B}[1]{ {\bf #1} } \newcommand{\R}[1]{ {\rm #1} }@)@
Cppad Swig Vector Constructors

Syntax
bv  = module_ref vec_bool(n)
iv  = module_ref vec_int(n)
dv  = module_ref vec_double(n)
av = module_ref vec_a_double(n)

Purpose
Creates a vector with n elements.

module_ref
This is the module reference for the particular language.

n
The argument n is a non-negative integer with default value zero; i.e., if it is not present, zero is used.

vec_bool
This result bv is a vector with elements of type bool

vec_int
This result bv is a vector with elements of type int

vec_double
This result bv is a vector with elements of type double

vec_a_double
This result av is a vector with elements of type a_double .

Example
All of the other vector examples use the vector constructors.
Input File: lib/vector.omh