You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- [`5aadc76`](https://github.com/stdlib-js/stdlib/commit/5aadc76d03d8e3c511de2f14131be73dfe118af9) - **bench:** refactor to use string interpolation in `ndarray` [(#11445)](https://github.com/stdlib-js/stdlib/pull/11445) _(by Karan Anand)_
- <spanclass="signature">[`emptyLike( x[, options] )`][@stdlib/ndarray/empty-like]</span><spanclass="delimiter">: </span><spanclass="description">create an uninitialized ndarray having the same shape and data type as a provided ndarray.</span>
87
87
- <spanclass="signature">[`empty( shape[, options] )`][@stdlib/ndarray/empty]</span><spanclass="delimiter">: </span><spanclass="description">create an uninitialized ndarray having a specified shape and data type.</span>
- <spanclass="signature">[`scalar2ndarrayLike( x, value[, options] )`][@stdlib/ndarray/from-scalar-like]</span><spanclass="delimiter">: </span><spanclass="description">convert a scalar value to a zero-dimensional ndarray having the same data-type as a provided ndarray.</span>
89
90
- <spanclass="signature">[`scalar2ndarray( value[, options] )`][@stdlib/ndarray/from-scalar]</span><spanclass="delimiter">: </span><spanclass="description">convert a scalar value to a zero-dimensional ndarray.</span>
90
91
- <spanclass="signature">[`ndarraylike2ndarray( x[, options] )`][@stdlib/ndarray/ndarraylike2ndarray]</span><spanclass="delimiter">: </span><spanclass="description">convert an ndarray-like object to an `ndarray`.</span>
@@ -107,6 +108,7 @@ The namespace exports the following functions to manipulate multidimensional arr
107
108
108
109
- <spanclass="signature">[`broadcastArray( x, shape )`][@stdlib/ndarray/broadcast-array]</span><spanclass="delimiter">: </span><spanclass="description">broadcast an ndarray to a specified shape.</span>
109
110
- <spanclass="signature">[`broadcastArrays( ...arrays )`][@stdlib/ndarray/broadcast-arrays]</span><spanclass="delimiter">: </span><spanclass="description">broadcast ndarrays to a common shape.</span>
111
+
- <spanclass="signature">[`broadcastScalarLike( x, value[, options] )`][@stdlib/ndarray/broadcast-scalar-like]</span><spanclass="delimiter">: </span><spanclass="description">broadcast a scalar value to an ndarray having the same shape and data-type as a provided input ndarray.</span>
110
112
- <spanclass="signature">[`broadcastScalar( value, shape[, options] )`][@stdlib/ndarray/broadcast-scalar]</span><spanclass="delimiter">: </span><spanclass="description">broadcast a scalar value to an ndarray of a specified shape.</span>
111
113
- <spanclass="signature">[`colcat( arrays )`][@stdlib/ndarray/colcat]</span><spanclass="delimiter">: </span><spanclass="description">concatenate a list of one-dimensional or two-dimensional ndarrays as columns.</span>
112
114
- <spanclass="signature">[`concat( arrays[, options] )`][@stdlib/ndarray/concat]</span><spanclass="delimiter">: </span><spanclass="description">concatenate a list of ndarrays along a specified ndarray dimension.</span>
@@ -216,6 +218,7 @@ The namespace exports the following functions to index multidimensional arrays:
216
218
217
219
- <spanclass="signature">[`at( x[, ...indices] )`][@stdlib/ndarray/at]</span><spanclass="delimiter">: </span><spanclass="description">return an `ndarray` element.</span>
218
220
- <spanclass="signature">[`ind2sub( shape, idx[, options] )`][@stdlib/ndarray/ind2sub]</span><spanclass="delimiter">: </span><spanclass="description">convert a linear index to an array of subscripts.</span>
221
+
- <spanclass="signature">[`indexModes()`][@stdlib/ndarray/index-modes]</span><spanclass="delimiter">: </span><spanclass="description">list of ndarray index modes.</span>
219
222
- <spanclass="signature">[`ndindex( x[, options] )`][@stdlib/ndarray/index]</span><spanclass="delimiter">: </span><spanclass="description">ndarray index constructor.</span>
220
223
- <spanclass="signature">[`sub2ind( shape, ...subscripts[, options] )`][@stdlib/ndarray/sub2ind]</span><spanclass="delimiter">: </span><spanclass="description">convert subscripts to a linear index.</span>
221
224
@@ -229,6 +232,15 @@ The namespace exports the following functions to convert multidimensional arrays
- <spanclass="signature">[`ndarray2array( x )`][@stdlib/ndarray/to-array]</span><spanclass="delimiter">: </span><spanclass="description">convert an ndarray to a generic array.</span>
238
+
- <spanclass="signature">[`ndarray2json( x )`][@stdlib/ndarray/to-json]</span><spanclass="delimiter">: </span><spanclass="description">serialize an ndarray as a JSON object.</span>
239
+
- <spanclass="signature">[`ndarray2localeString( x[, locales[, options]] )`][@stdlib/ndarray/to-locale-string]</span><spanclass="delimiter">: </span><spanclass="description">serialize an ndarray as a locale-aware string.</span>
240
+
- <spanclass="signature">[`ndarray2string( x )`][@stdlib/ndarray/to-string]</span><spanclass="delimiter">: </span><spanclass="description">serialize an ndarray as a string.</span>
241
+
242
+
</div>
243
+
232
244
<!-- </toc> -->
233
245
234
246
##### Data Types
@@ -237,6 +249,22 @@ The namespace exports the following functions for working with multidimensional
- <spanclass="signature">[`castingModes()`][@stdlib/ndarray/casting-modes]</span><spanclass="delimiter">: </span><spanclass="description">list of ndarray casting modes.</span>
255
+
- <spanclass="signature">[`DataType( value[, options] )`][@stdlib/ndarray/dtype-ctor]</span><spanclass="delimiter">: </span><spanclass="description">data type constructor.</span>
256
+
- <spanclass="signature">[`dtypes( [kind] )`][@stdlib/ndarray/dtypes]</span><spanclass="delimiter">: </span><spanclass="description">list of ndarray data types.</span>
257
+
- <spanclass="signature">[`inputCastingPolicies()`][@stdlib/ndarray/input-casting-policies]</span><spanclass="delimiter">: </span><spanclass="description">list of input ndarray casting policies.</span>
258
+
- <spanclass="signature">[`minDataType( value )`][@stdlib/ndarray/min-dtype]</span><spanclass="delimiter">: </span><spanclass="description">determine the minimum ndarray data type of the closest "kind" necessary for storing a provided scalar value.</span>
259
+
- <spanclass="signature">[`mostlySafeCasts( [dtype] )`][@stdlib/ndarray/mostly-safe-casts]</span><spanclass="delimiter">: </span><spanclass="description">return a list of ndarray data types to which a provided ndarray data type can be safely cast and, for floating-point data types, can be downcast.</span>
260
+
- <spanclass="signature">[`nextDataType( [dtype] )`][@stdlib/ndarray/next-dtype]</span><spanclass="delimiter">: </span><spanclass="description">return the next larger ndarray data type of the same kind.</span>
261
+
- <spanclass="signature">[`outputDataTypePolicies()`][@stdlib/ndarray/output-dtype-policies]</span><spanclass="delimiter">: </span><spanclass="description">list of output ndarray data type policies.</span>
262
+
- <spanclass="signature">[`promotionRules( [dtype1, dtype2] )`][@stdlib/ndarray/promotion-rules]</span><spanclass="delimiter">: </span><spanclass="description">return the ndarray data type with the smallest size and closest "kind" to which ndarray data types can be **safely** cast.</span>
263
+
- <spanclass="signature">[`safeCasts( [dtype] )`][@stdlib/ndarray/safe-casts]</span><spanclass="delimiter">: </span><spanclass="description">return a list of ndarray data types to which a provided ndarray data type can be safely cast.</span>
264
+
- <spanclass="signature">[`sameKindCasts( [dtype] )`][@stdlib/ndarray/same-kind-casts]</span><spanclass="delimiter">: </span><spanclass="description">return a list of ndarray data types to which a provided ndarray data type can be safely cast or cast within the same "kind".</span>
265
+
266
+
</div>
267
+
240
268
<!-- </toc> -->
241
269
242
270
##### Sub-namespaces
@@ -263,27 +291,10 @@ The namespace contains the following multidimensional array utility functions:
263
291
264
292
<divclass="namespace-toc">
265
293
266
-
- <spanclass="signature">[`castingModes()`][@stdlib/ndarray/casting-modes]</span><spanclass="delimiter">: </span><spanclass="description">list of ndarray casting modes.</span>
- <spanclass="signature">[`dispatch( fcns, types, data, nargs, nin, nout )`][@stdlib/ndarray/dispatch]</span><spanclass="delimiter">: </span><spanclass="description">create an ndarray function interface which performs multiple dispatch.</span>
269
-
- <spanclass="signature">[`DataType( value[, options] )`][@stdlib/ndarray/dtype-ctor]</span><spanclass="delimiter">: </span><spanclass="description">data type constructor.</span>
270
-
- <spanclass="signature">[`dtypes( [kind] )`][@stdlib/ndarray/dtypes]</span><spanclass="delimiter">: </span><spanclass="description">list of ndarray data types.</span>
- <spanclass="signature">[`forEach( x, fcn[, thisArg] )`][@stdlib/ndarray/for-each]</span><spanclass="delimiter">: </span><spanclass="description">invoke a callback function once for each ndarray element.</span>
273
-
- <spanclass="signature">[`indexModes()`][@stdlib/ndarray/index-modes]</span><spanclass="delimiter">: </span><spanclass="description">list of ndarray index modes.</span>
274
-
- <spanclass="signature">[`inputCastingPolicies()`][@stdlib/ndarray/input-casting-policies]</span><spanclass="delimiter">: </span><spanclass="description">list of input ndarray casting policies.</span>
275
-
- <spanclass="signature">[`minDataType( value )`][@stdlib/ndarray/min-dtype]</span><spanclass="delimiter">: </span><spanclass="description">determine the minimum ndarray data type of the closest "kind" necessary for storing a provided scalar value.</span>
276
-
- <spanclass="signature">[`mostlySafeCasts( [dtype] )`][@stdlib/ndarray/mostly-safe-casts]</span><spanclass="delimiter">: </span><spanclass="description">return a list of ndarray data types to which a provided ndarray data type can be safely cast and, for floating-point data types, can be downcast.</span>
277
-
- <spanclass="signature">[`nextDataType( [dtype] )`][@stdlib/ndarray/next-dtype]</span><spanclass="delimiter">: </span><spanclass="description">return the next larger ndarray data type of the same kind.</span>
278
297
- <spanclass="signature">[`orders()`][@stdlib/ndarray/orders]</span><spanclass="delimiter">: </span><spanclass="description">list of ndarray orders.</span>
279
-
- <spanclass="signature">[`outputDataTypePolicies()`][@stdlib/ndarray/output-dtype-policies]</span><spanclass="delimiter">: </span><spanclass="description">list of output ndarray data type policies.</span>
280
-
- <spanclass="signature">[`promotionRules( [dtype1, dtype2] )`][@stdlib/ndarray/promotion-rules]</span><spanclass="delimiter">: </span><spanclass="description">return the ndarray data type with the smallest size and closest "kind" to which ndarray data types can be **safely** cast.</span>
281
-
- <spanclass="signature">[`safeCasts( [dtype] )`][@stdlib/ndarray/safe-casts]</span><spanclass="delimiter">: </span><spanclass="description">return a list of ndarray data types to which a provided ndarray data type can be safely cast.</span>
282
-
- <spanclass="signature">[`sameKindCasts( [dtype] )`][@stdlib/ndarray/same-kind-casts]</span><spanclass="delimiter">: </span><spanclass="description">return a list of ndarray data types to which a provided ndarray data type can be safely cast or cast within the same "kind".</span>
283
-
- <spanclass="signature">[`ndarray2array( x )`][@stdlib/ndarray/to-array]</span><spanclass="delimiter">: </span><spanclass="description">convert an ndarray to a generic array.</span>
284
-
- <spanclass="signature">[`ndarray2json( x )`][@stdlib/ndarray/to-json]</span><spanclass="delimiter">: </span><spanclass="description">serialize an ndarray as a JSON object.</span>
285
-
- <spanclass="signature">[`ndarray2localeString( x[, locales[, options]] )`][@stdlib/ndarray/to-locale-string]</span><spanclass="delimiter">: </span><spanclass="description">serialize an ndarray as a locale-aware string.</span>
286
-
- <spanclass="signature">[`ndarray2string( x )`][@stdlib/ndarray/to-string]</span><spanclass="delimiter">: </span><spanclass="description">serialize an ndarray as a string.</span>
0 commit comments