[C++-sig] Re: Creating an array in C++

Philip Austin paustin at eos.ubc.ca
Thu Feb 26 00:26:20 CET 2004


Jonathan Brandmeyer writes:
 > 
 > num_util has that capability.  You would create it with this:

Well, yes ;-) (I wrote num_util in collaboration with my coop students Rhys
Goldstein and Charles Leung, but would love to ditch
it, if I could figure out how to use numeric::array's constructor).

 > 
 > /** 
 > Creates a n-dimensional Numeric array with dimensions dimens and Numeric
 > type t. The elements of the array are initialized to zero.
 > @param dimens a vector of interger specifies the dimensions of the 
 >     array.
 > @param t elements' Numeric type. Default is double.
 > @return a numeric array of shape dimens with elements initialized to 
 >     zero.





More information about the Cplusplus-sig mailing list