Skip to content

Latest commit

 

History

History

fliplr3d

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

fliplr3d

Reverse the order of elements along the last dimension of a three-dimensional nested input array.

Usage

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

fliplr3d( x )

Reverses the order of elements along the last dimension of a three-dimensional nested input array.

var out = fliplr3d( [ [ [ 1, 2 ], [ 3, 4 ] ] ] );
// returns [ [ [ 2, 1 ], [ 4, 3 ] ] ]

Examples

var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory;
var filled3dBy = require( '@stdlib/array/base/filled3d-by' );
var fliplr3d = require( '@stdlib/array/base/fliplr3d' );

var x = filled3dBy( [ 3, 3, 3 ], discreteUniform( -50, 50 ) );
console.log( x );

var y = fliplr3d( x );
console.log( y );