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
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/ndarray/README.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,6 +83,7 @@ In addition, the namespace contains the following multidimensional array utility
83
83
- <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>
84
84
- <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">[`fill( x, value )`][@stdlib/ndarray/fill]</span><spanclass="delimiter">: </span><spanclass="description">fill an input `ndarray` with a specified value.</span>
86
87
- <spanclass="signature">[`filterMap( x[, options], fcn[, thisArg] )`][@stdlib/ndarray/filter-map]</span><spanclass="delimiter">: </span><spanclass="description">filter and map elements in an input ndarray to elements in a new output ndarray according to a callback function.</span>
87
88
- <spanclass="signature">[`filter( x[, options], predicate[, thisArg] )`][@stdlib/ndarray/filter]</span><spanclass="delimiter">: </span><spanclass="description">return a shallow copy of an ndarray containing only those elements which pass a test implemented by a predicate function.</span>
88
89
- <spanclass="signature">[`flag( x, name )`][@stdlib/ndarray/flag]</span><spanclass="delimiter">: </span><spanclass="description">return a specified flag for a provided ndarray.</span>
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/ndarray/base/README.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,6 +72,7 @@ var o = ns;
72
72
- <spanclass="signature">[`emptyLike( x )`][@stdlib/ndarray/base/empty-like]</span><spanclass="delimiter">: </span><spanclass="description">create an uninitialized ndarray having the same shape and data type as a provided ndarray.</span>
73
73
- <spanclass="signature">[`empty( dtype, shape, order )`][@stdlib/ndarray/base/empty]</span><spanclass="delimiter">: </span><spanclass="description">create an uninitialized ndarray having a specified shape and data type.</span>
74
74
- <spanclass="signature">[`expandDimensions( x, axis )`][@stdlib/ndarray/base/expand-dimensions]</span><spanclass="delimiter">: </span><spanclass="description">expand the shape of an array by inserting a new dimension of size one at a specified axis.</span>
75
+
- <spanclass="signature">[`fillBy( x, fcn[, thisArg] )`][@stdlib/ndarray/base/fill-by]</span><spanclass="delimiter">: </span><spanclass="description">fill an input ndarray according to a callback function.</span>
75
76
- <spanclass="signature">[`fill( x, value )`][@stdlib/ndarray/base/fill]</span><spanclass="delimiter">: </span><spanclass="description">fill an input ndarray with a specified value.</span>
76
77
- <spanclass="signature">[`flag( x, name )`][@stdlib/ndarray/base/flag]</span><spanclass="delimiter">: </span><spanclass="description">return a specified flag for a provided ndarray.</span>
77
78
- <spanclass="signature">[`flags( x, copy )`][@stdlib/ndarray/base/flags]</span><spanclass="delimiter">: </span><spanclass="description">return the flags of a provided ndarray.</span>
ndfilter,"var x = array( [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] );\nfunction f( v ) { return v > 2.0; };\nvar y = ndfilter( x, f );\nndarray2array( y )\n"
4164
4165
ndfilterMap,"var x = array( [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] );\nfunction f( v ) { if ( v > 2.0 ) { return v * 10.0; } };\nvar y = ndfilterMap( x, f );\nndarray2array( y )\n"
4165
4166
ndforEach,"var x = array( [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] );\nfunction f( v ) { if ( v !== v ) { throw new Error( '...' ); } };\nndforEach( x, f );\n"
0 commit comments