Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions lib/node_modules/@stdlib/ndarray/base/docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1578,23 +1578,17 @@ interface Namespace {
*
* @param x - input array
* @param axis - axis at which to insert a singleton dimension
* @param writable - boolean indicating whether the returned ndarray should be writable
* @returns output array
*
* @example
* var getShape = require( '@stdlib/ndarray/shape' );
* var array = require( '@stdlib/ndarray/array' );
*
* var x = array( [ [ 1, 2 ], [ 3, 4 ] ] );
* // returns <ndarray>[ [ 1, 2 ], [ 3, 4 ] ]
*
* var shx = getShape( x );
* // returns [ 2, 2 ]
*
* var y = ns.expandDimensions( x, 1 );
* var y = ns.expandDimensions( x, 1, false );
* // returns <ndarray>[ [ [ 1, 2 ] ], [ [ 3, 4 ] ] ]
*
* var shy = getShape( y );
* // returns [ 2, 1, 2 ]
*/
expandDimensions: typeof expandDimensions;

Expand Down