Skip to content

Latest commit

 

History

History
108 lines (62 loc) · 2.38 KB

File metadata and controls

108 lines (62 loc) · 2.38 KB

zeros3d

Create a zero-filled three-dimensional nested array.

Usage

var zeros3d = require( '@stdlib/array/base/zeros3d' );

zeros3d( shape )

Returns a zero-filled three-dimensional nested array.

var out = zeros3d( [ 1, 2, 3 ] );
// returns [ [ [ 0.0, 0.0, 0.0 ], [ 0.0, 0.0, 0.0 ] ] ]

Examples

var zeros3d = require( '@stdlib/array/base/zeros3d' );

var out = zeros3d( [ 1, 1, 3 ] );
// returns [ [ [ 0.0, 0.0, 0.0 ] ] ]

out = zeros3d( [ 1, 3, 1 ] );
// returns [ [ [ 0.0 ], [ 0.0 ], [ 0.0 ] ] ]