zeros5d

Create a zero-filled five-dimensional nested array.

Usage

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

zeros5d( shape )

Returns a zero-filled five-dimensional nested array.

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

Examples

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

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

out = zeros5d( [ 1, 1, 1, 3, 1 ] );
// returns [ [ [ [ [ 0.0 ], [ 0.0 ], [ 0.0 ] ] ] ] ]
Did you find this page helpful?