in reply to Initialize a 2D array with zeros
If not, you can still do (albeit it's only somewhat efficient - most work is done in C and/or XS, not the interpreter):use PDL; $ndarray = zeroes($cols,$rows);
use PDL; $array_of_arrays = zeroes($cols,$rows)->unpdl;
|
---|