| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
Return a read-only view of an input ndarray rotated 90 degrees in a specified plane.
var rot90 = require( '@stdlib/ndarray/rot90' );Returns a read-only view of an input ndarray rotated 90 degrees in a specified plane.
var array = require( '@stdlib/ndarray/array' );
var x = array( [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] );
// returns <ndarray>[ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ]
var y = rot90( x );
// returns <ndarray>[ [ 2.0, 4.0 ], [ 1.0, 3.0 ] ]The function accepts the following arguments:
The function accepts the following options:
var uniform = require( '@stdlib/random/uniform' );
var ndarray2array = require( '@stdlib/ndarray/to-array' );
var rot90 = require( '@stdlib/ndarray/rot90' );
var x = uniform( [ 3, 3, 3 ], -10.0, 10.0 );
console.log( ndarray2array( x ) );
var y = rot90( x );
console.log( ndarray2array( y ) );| Back | FazBrowse Home | New Git URL |