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
22 changes: 22 additions & 0 deletions lib/node_modules/@stdlib/ndarray/docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ import stride = require( '@stdlib/ndarray/stride' );
import strides = require( '@stdlib/ndarray/strides' );
import sub2ind = require( '@stdlib/ndarray/sub2ind' );
import ndarray2array = require( '@stdlib/ndarray/to-array' );
import ndarray2json = require( '@stdlib/ndarray/to-json' );
import zeros = require( '@stdlib/ndarray/zeros' );
import zerosLike = require( '@stdlib/ndarray/zeros-like' );

Expand Down Expand Up @@ -1599,6 +1600,27 @@ interface Namespace {
*/
ndarray2array: typeof ndarray2array;

/**
* Serializes an ndarray as a JSON object.
*
* ## Notes
*
* - The function does **not** serialize data outside of the buffer region defined by the ndarray view.
*
* @param x - input ndarray
* @returns JSON object
*
* @example
* var array = require( '@stdlib/ndarray/array' );
*
* var x = array( [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] );
* // returns <ndarray>
*
* var o = ns.ndarray2json( x );
* // returns {...}
*/
ndarray2json: typeof ndarray2json;

/**
* Creates a zero-filled array having a specified shape and data type.
*
Expand Down
Loading