Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Dec 17, 2024
1 parent 664492e commit bc90a41
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ indent_style = tab
[*.{md,md.txt}]
indent_style = space
indent_size = 4
trim_trailing_whitespace = false
trim_trailing_whitespace = true # Note: this disables using two spaces to force a hard line break, which is permitted in Markdown. As we don't typically follow that practice (TMK), we should be safe to automatically trim.
# Set properties for `usage.txt` files:
[usage.txt]
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ A total of 3 people contributed to this release. Thank you to the following cont

<details>

- [`54fb9de`](https://github.com/stdlib-js/stdlib/commit/54fb9de7dc776a7d01ca86de154d0f74694d1630) - **docs:** update REPL namespace documentation [(#3978)](https://github.com/stdlib-js/stdlib/pull/3978) _(by stdlib-bot, Philipp Burckhardt)_
- [`6f2d513`](https://github.com/stdlib-js/stdlib/commit/6f2d513c914a3b92bb202cd0e9527b8b734da65d) - **feat:** add `ndarray2json` to namespace _(by Athan Reines)_
- [`31cd034`](https://github.com/stdlib-js/stdlib/commit/31cd0347ff2c9b5b8e5b536b5a72e5befc3d308d) - **docs:** update REPL namespace documentation [(#3938)](https://github.com/stdlib-js/stdlib/pull/3938) _(by stdlib-bot, Philipp Burckhardt)_
- [`e43aaa9`](https://github.com/stdlib-js/stdlib/commit/e43aaa95f790584e26f189ab52267108bb423231) - **docs:** update REPL namespace documentation [(#3917)](https://github.com/stdlib-js/stdlib/pull/3917) _(by stdlib-bot, Philipp Burckhardt)_
Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Dan Rose <[email protected]>
Daniel Killenberger <[email protected]>
Daniel Yu <[email protected]>
Debashis Maharana <[email protected]>
Divyansh Seth <[email protected]>
Dominic Lim <[email protected]>
Dominik Moritz <[email protected]>
Dorrin Sotoudeh <[email protected]>
Expand Down
1 change: 1 addition & 0 deletions 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 code-blocks/data/data.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 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 help/data/data.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions 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 info/data/data.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions 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 signature/data/data.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions typed-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: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
2 changes: 1 addition & 1 deletion typed-signature/data/data.json

Large diffs are not rendered by default.

0 comments on commit bc90a41

Please sign in to comment.