Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions lib/node_modules/@stdlib/repl/code-blocks/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -4099,6 +4099,7 @@ ndarray.prototype.iset,"var b = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );\nvar
ndarray.prototype.toString,"var b = [ 1, 2, 3, 4 ];\nvar d = [ 2, 2 ];\nvar s = [ 2, 1 ];\nvar o = 0;\nvar arr = ndarray( 'generic', b, d, s, o, 'row-major' );\narr.toString()\n"
ndarray.prototype.toJSON,"var b = [ 1, 2, 3, 4 ];\nvar d = [ 2, 2 ];\nvar s = [ 2, 1 ];\nvar o = 0;\nvar arr = ndarray( 'generic', b, d, s, o, 'row-major' );\narr.toJSON()\n"
ndarray2array,"var arr = array( [ [ 1, 2 ], [ 3, 4 ] ] );\nvar out = ndarray2array( arr )\n"
ndarray2json,"var arr = array( [ [ 1, 2 ], [ 3, 4 ] ] );\nvar out = ndarray2json( arr )\n"
ndarrayCastingModes,"var out = ndarrayCastingModes()\n"
ndarrayDataBuffer,"var opts = { 'dtype': 'float64' };\nvar out = ndarrayDataBuffer( ndzeros( [ 3, 3, 3 ], opts ) )\n"
ndarrayDataType,"var opts = { 'dtype': 'float64' };\nvar dt = ndarrayDataType( ndzeros( [ 3, 3, 3 ], opts ) )\n"
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/repl/code-blocks/data/data.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/repl/help/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -4099,7 +4099,7 @@ ndarray.prototype.set,"\nndarray.prototype.set( ...idx, v )\n Sets an array e
ndarray.prototype.iset,"\nndarray.prototype.iset( idx, v )\n Sets an array element located at a specified linear index.\n\n For zero-dimensional arrays, the first, and only, argument should be the\n value to set.\n\n Parameters\n ----------\n idx: integer\n Linear index.\n\n v: any\n Value to set.\n\n Returns\n -------\n out: ndarray\n ndarray instance.\n\n Examples\n --------\n > var b = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );\n > var d = [ 2, 2 ];\n > var s = [ 2, 1 ];\n > var o = 0;\n > var arr = ndarray( 'float64', b, d, s, o, 'row-major' );\n > arr.iset( 3, -4.0 );\n > arr.iget( 3 )\n -4.0"
ndarray.prototype.toString,"\nndarray.prototype.toString()\n Serializes an ndarray as a string.\n\n This method does **not** serialize data outside of the buffer region defined\n by the array configuration.\n\n Returns\n -------\n str: string\n Serialized ndarray string.\n\n Examples\n --------\n > var b = [ 1, 2, 3, 4 ];\n > var d = [ 2, 2 ];\n > var s = [ 2, 1 ];\n > var o = 0;\n > var arr = ndarray( 'generic', b, d, s, o, 'row-major' );\n > arr.toString()\n '...'"
ndarray.prototype.toJSON,"\nndarray.prototype.toJSON()\n Serializes an ndarray as a JSON object.\n\n This method does **not** serialize data outside of the buffer region defined\n by the array configuration.\n\n Returns\n -------\n obj: Object\n JSON object.\n\n Examples\n --------\n > var b = [ 1, 2, 3, 4 ];\n > var d = [ 2, 2 ];\n > var s = [ 2, 1 ];\n > var o = 0;\n > var arr = ndarray( 'generic', b, d, s, o, 'row-major' );\n > arr.toJSON()\n {...}\n\n See Also\n --------\n array, FancyArray"
ndarray2array,"\nndarray2array( x )\n Converts an ndarray to a generic array.\n\n Parameters\n ----------\n x: ndarray\n Input array.\n\n Returns\n -------\n out: Array|Array<Array>\n Generic array (which may include nested arrays).\n\n Examples\n --------\n > var arr = array( [ [ 1, 2 ], [ 3, 4 ] ] );\n > var out = ndarray2array( arr )\n [ [ 1, 2 ], [ 3, 4 ] ]\n\n See Also\n --------\n array, ndarray\n"
ndarray2array,"\nndarray2array( x )\n Converts an ndarray to a generic array.\n\n Parameters\n ----------\n x: ndarray\n Input array.\n\n Returns\n -------\n out: Array|Array<Array>\n Generic array (which may include nested arrays).\n\n Examples\n --------\n > var arr = array( [ [ 1, 2 ], [ 3, 4 ] ] );\n > var out = ndarray2array( arr )\n [ [ 1, 2 ], [ 3, 4 ] ]\n\n See Also\n --------\n array, ndarray, ndarray2json\n"
ndarray2json,"\nndarray2json( x )\n Serializes an ndarray as a JSON object.\n\n This function does *not* serialize data outside of the buffer region defined\n by the ndarray view.\n\n Parameters\n ----------\n x: ndarray\n Input ndarray.\n\n Returns\n -------\n out: Object\n JSON object.\n\n Examples\n --------\n > var arr = array( [ [ 1, 2 ], [ 3, 4 ] ] );\n > var out = ndarray2json( arr )\n {...}\n\n See Also\n --------\n array, ndarray, ndarray2array\n"
ndarrayCastingModes,"\nndarrayCastingModes()\n Returns a list of ndarray casting modes.\n\n The output array contains the following modes:\n\n - 'none': only allow casting between identical types.\n - 'equiv': allow casting between identical and byte swapped types.\n - 'safe': only allow \"safe\" casts.\n - 'mostly-safe': allow \"safe\" casts and, for floating-point data types,\n downcasts.\n - 'same-kind': allow \"safe\" casts and casts within the same kind (e.g.,\n between signed integers or between floats).\n - 'unsafe': allow casting between all types (including between integers and\n floats).\n\n Returns\n -------\n out: Array<string>\n List of ndarray casting modes.\n\n Examples\n --------\n > var out = ndarrayCastingModes()\n [ 'none', 'equiv', 'safe', 'mostly-safe', 'same-kind', 'unsafe' ]\n\n See Also\n --------\n array, ndarray\n"
ndarrayDataBuffer,"\nndarrayDataBuffer( x )\n Returns the underlying data buffer of a provided ndarray.\n\n Parameters\n ----------\n x: ndarray\n Input ndarray.\n\n Returns\n -------\n out: ArrayLikeObject\n Underlying data buffer.\n\n Examples\n --------\n > var opts = { 'dtype': 'float64' };\n > var out = ndarrayDataBuffer( ndzeros( [ 3, 3, 3 ], opts ) )\n <Float64Array>\n\n See Also\n --------\n array, ndarray, ndarrayDataType\n"
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/repl/help/data/data.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/node_modules/@stdlib/repl/info/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -4100,6 +4100,7 @@ ndarray.prototype.iset,"\nndarray.prototype.iset( idx:integer, v:any )\n Sets
ndarray.prototype.toString,"\nndarray.prototype.toString()\n Serializes an ndarray as a string.\n"
ndarray.prototype.toJSON,"\nndarray.prototype.toJSON()\n Serializes an ndarray as a JSON object.\n"
ndarray2array,"\nndarray2array( x:ndarray )\n Converts an ndarray to a generic array.\n"
ndarray2json,"\nndarray2json( x:ndarray )\n Serializes an ndarray as a JSON object.\n"
ndarrayCastingModes,"\nndarrayCastingModes()\n Returns a list of ndarray casting modes.\n"
ndarrayDataBuffer,"\nndarrayDataBuffer( x:ndarray )\n Returns the underlying data buffer of a provided ndarray.\n"
ndarrayDataType,"\nndarrayDataType( x:ndarray )\n Returns the data type of a provided ndarray.\n"
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/repl/info/data/data.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/node_modules/@stdlib/repl/signature/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -4152,6 +4152,7 @@ ndarray.prototype.iset,"ndarray.prototype.iset( idx, v )"
ndarray.prototype.toString,"ndarray.prototype.toString()"
ndarray.prototype.toJSON,"ndarray.prototype.toJSON()"
ndarray2array,"ndarray2array( x )"
ndarray2json,"ndarray2json( x )"
ndarrayCastingModes,"ndarrayCastingModes()"
ndarrayDataBuffer,"ndarrayDataBuffer( x )"
ndarrayDataType,"ndarrayDataType( x )"
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/repl/signature/data/data.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -4152,6 +4152,7 @@ ndarray.prototype.iset,"ndarray.prototype.iset( idx:integer, v:any )"
ndarray.prototype.toString,"ndarray.prototype.toString()"
ndarray.prototype.toJSON,"ndarray.prototype.toJSON()"
ndarray2array,"ndarray2array( x:ndarray )"
ndarray2json,"ndarray2json( x:ndarray )"
ndarrayCastingModes,"ndarrayCastingModes()"
ndarrayDataBuffer,"ndarrayDataBuffer( x:ndarray )"
ndarrayDataType,"ndarrayDataType( x:ndarray )"
Expand Down

Large diffs are not rendered by default.

Loading