underlying data type
array shape
specifies whether an array is row-major (C-style) or column-major (Fortran-style)
zero-filled array
var arr = zeros( 'float64', [ 2, 2 ], 'row-major' );
// returns <ndarray>
var sh = arr.shape;
// returns [ 2, 2 ]
var dt = arr.dtype;
// returns 'float64'
Creates a zero-filled array having a specified shape and data type.
underlying data type
array shape
specifies whether an array is row-major (C-style) or column-major (Fortran-style)
zero-filled array
var arr = zeros( 'float32', [ 2, 2 ], 'row-major' );
// returns <ndarray>
var sh = arr.shape;
// returns [ 2, 2 ]
var dt = arr.dtype;
// returns 'float32'
Creates a zero-filled array having a specified shape and data type.
underlying data type
array shape
specifies whether an array is row-major (C-style) or column-major (Fortran-style)
zero-filled array
var arr = zeros( 'complex128', [ 2, 2 ], 'row-major' );
// returns <ndarray>
var sh = arr.shape;
// returns [ 2, 2 ]
var dt = arr.dtype;
// returns 'complex128'
Creates a zero-filled array having a specified shape and data type.
underlying data type
array shape
specifies whether an array is row-major (C-style) or column-major (Fortran-style)
zero-filled array
var arr = zeros( 'complex64', [ 2, 2 ], 'row-major' );
// returns <ndarray>
var sh = arr.shape;
// returns [ 2, 2 ]
var dt = arr.dtype;
// returns 'complex64'
Creates a zero-filled array having a specified shape and data type.
underlying data type
array shape
specifies whether an array is row-major (C-style) or column-major (Fortran-style)
zero-filled array
var arr = zeros( 'int32', [ 2, 2 ], 'row-major' );
// returns <ndarray>
var sh = arr.shape;
// returns [ 2, 2 ]
var dt = arr.dtype;
// returns 'int32'
Creates a zero-filled array having a specified shape and data type.
underlying data type
array shape
specifies whether an array is row-major (C-style) or column-major (Fortran-style)
zero-filled array
var arr = zeros( 'int16', [ 2, 2 ], 'row-major' );
// returns <ndarray>
var sh = arr.shape;
// returns [ 2, 2 ]
var dt = arr.dtype;
// returns 'int16'
Creates a zero-filled array having a specified shape and data type.
underlying data type
array shape
specifies whether an array is row-major (C-style) or column-major (Fortran-style)
zero-filled array
var arr = zeros( 'int8', [ 2, 2 ], 'row-major' );
// returns <ndarray>
var sh = arr.shape;
// returns [ 2, 2 ]
var dt = arr.dtype;
// returns 'int8'
Creates a zero-filled array having a specified shape and data type.
underlying data type
array shape
specifies whether an array is row-major (C-style) or column-major (Fortran-style)
zero-filled array
var arr = zeros( 'uint32', [ 2, 2 ], 'row-major' );
// returns <ndarray>
var sh = arr.shape;
// returns [ 2, 2 ]
var dt = arr.dtype;
// returns 'uint32'
Creates a zero-filled array having a specified shape and data type.
underlying data type
array shape
specifies whether an array is row-major (C-style) or column-major (Fortran-style)
zero-filled array
var arr = zeros( 'uint16', [ 2, 2 ], 'row-major' );
// returns <ndarray>
var sh = arr.shape;
// returns [ 2, 2 ]
var dt = arr.dtype;
// returns 'uint16'
Creates a zero-filled array having a specified shape and data type.
underlying data type
array shape
specifies whether an array is row-major (C-style) or column-major (Fortran-style)
zero-filled array
var arr = zeros( 'uint8', [ 2, 2 ], 'row-major' );
// returns <ndarray>
var sh = arr.shape;
// returns [ 2, 2 ]
var dt = arr.dtype;
// returns 'uint8'
Creates a zero-filled array having a specified shape and data type.
underlying data type
array shape
specifies whether an array is row-major (C-style) or column-major (Fortran-style)
zero-filled array
var arr = zeros( 'uint8c', [ 2, 2 ], 'row-major' );
// returns <ndarray>
var sh = arr.shape;
// returns [ 2, 2 ]
var dt = arr.dtype;
// returns 'uint8c'
Creates a zero-filled array having a specified shape and data type.
underlying data type
array shape
specifies whether an array is row-major (C-style) or column-major (Fortran-style)
zero-filled array
var arr = zeros( 'generic', [ 2, 2 ], 'row-major' );
// returns <ndarray>
var sh = arr.shape;
// returns [ 2, 2 ]
var dt = arr.dtype;
// returns 'generic'
Creates a zero-filled array having a specified shape and data type.
underlying data type
array shape
specifies whether an array is row-major (C-style) or column-major (Fortran-style)
zero-filled array
var arr = zeros( 'float32', [ 2, 2 ], 'row-major' );
// returns <ndarray>
var sh = arr.shape;
// returns [ 2, 2 ]
var dt = arr.dtype;
// returns 'float32'
Creates a zero-filled array having a specified shape and data type.