Skip to content

Commit 434a969

Browse files
authored
docs: update REPL namespace documentation
PR-URL: #11130 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent ae72f8e commit 434a969

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
lines changed

lib/node_modules/@stdlib/repl/code-blocks/data/data.csv

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,8 +1156,8 @@ base.ndarray.prototype.toLocaleString,"var b = [ 1, 2, 3, 4 ];\nvar d = [ 2, 2 ]
11561156
base.ndarray.prototype.toString,"var b = [ 1, 2, 3, 4 ];\nvar d = [ 2, 2 ];\nvar s = [ 2, 1 ];\nvar o = 0;\nvar arr = base.ndarray( 'generic', b, d, s, o, 'row-major' );\narr.toString()\n"
11571157
base.ndarray.prototype.toJSON,"var b = [ 1, 2, 3, 4 ];\nvar d = [ 2, 2 ];\nvar s = [ 2, 1 ];\nvar o = 0;\nvar arr = base.ndarray( 'generic', b, d, s, o, 'row-major' );\narr.toJSON()\n"
11581158
base.ndarrayUnary,"var xbuf = new Float64Array( [ -1.0, -2.0, -3.0, -4.0 ] );\nvar ybuf = new Float64Array( [ 0.0, 0.0, 0.0, 0.0 ] );\nvar dtype = 'float64';\nvar shape = [ 2, 2 ];\nvar sx = [ 2, 1 ];\nvar sy = [ 2, 1 ];\nvar ox = 0;\nvar oy = 0;\nvar order = 'row-major';\nvar x = ndarray( dtype, xbuf, shape, sx, ox, order );\nvar y = ndarray( dtype, ybuf, shape, sy, oy, order );\nbase.ndarrayUnary( [ x, y ], base.abs );\ny.data\nx = {\n 'dtype': dtype,\n 'data': xbuf,\n 'shape': shape,\n 'strides': sx,\n 'offset': ox,\n 'order': order\n };\ny = {\n 'dtype': dtype,\n 'data': ybuf,\n 'shape': shape,\n 'strides': sy,\n 'offset': oy,\n 'order': order\n };\nbase.ndarrayUnary( [ x, y ], base.abs );\ny.data\n"
1159-
base.ndzeros,"var arr = base.ndzeros( 'float64', [ 2, 2 ], 'row-major' )\nvar sh = arr.shape\nvar dt = arr.dtype\n"
1160-
base.ndzerosLike,"var x = base.ndzeros( 'float64', [ 2, 2 ], 'row-major' )\nvar sh = x.shape\nvar dt = x.dtype\nvar y = base.ndzerosLike( x )\nsh = y.shape\ndt = y.dtype\n"
1159+
base.ndzeros,"var arr = base.ndzeros( 'float64', [ 2, 2 ], 'row-major' )\n"
1160+
base.ndzerosLike,"var x = base.ndzeros( 'float64', [ 2, 2 ], 'row-major' )\nvar y = base.ndzerosLike( x )\n"
11611161
base.negafibonacci,"var y = base.negafibonacci( 0 )\ny = base.negafibonacci( -1 )\ny = base.negafibonacci( -2 )\ny = base.negafibonacci( -3 )\ny = base.negafibonacci( -4 )\ny = base.negafibonacci( -79 )\ny = base.negafibonacci( -80 )\ny = base.negafibonacci( NaN )\n"
11621162
base.negalucas,"var y = base.negalucas( 0 )\ny = base.negalucas( -1 )\ny = base.negalucas( -2 )\ny = base.negalucas( -3 )\ny = base.negalucas( -4 )\ny = base.negalucas( -77 )\ny = base.negalucas( -78 )\ny = base.negalucas( NaN )\n"
11631163
base.nonfibonacci,"var v = base.nonfibonacci( 1 )\nv = base.nonfibonacci( 2 )\nv = base.nonfibonacci( 3 )\nv = base.nonfibonacci( NaN )\n"
@@ -4244,8 +4244,8 @@ ndsliceDimensionFrom,"var x = array( [ [ 1, 2 ], [ 3, 4 ] ] )\nx.shape\nvar y =
42444244
ndsliceDimensionTo,"var x = array( [ [ 1, 2 ], [ 3, 4 ] ] )\nx.shape\nvar y = ndsliceDimensionTo( x, 1, 1 )\ny.shape\nndarray2array( y )\n"
42454245
ndsliceFrom,"var x = array( [ [ 1, 2 ], [ 3, 4 ] ] )\nx.shape\nvar y = ndsliceFrom( x, 0, 1 )\ny.shape\nndarray2array( y )\n"
42464246
ndsliceTo,"var x = array( [ [ 1, 2 ], [ 3, 4 ] ] )\nx.shape\nvar y = ndsliceTo( x, 1, 1 )\ny.shape\nndarray2array( y )\n"
4247-
ndzeros,"var arr = ndzeros( [ 2, 2 ] )\nvar sh = arr.shape\nvar dt = arr.dtype\n"
4248-
ndzerosLike,"var x = base.ndzeros( 'float64', [ 2, 2 ], 'row-major' )\nvar sh = x.shape\nvar dt = x.dtype\nvar y = ndzerosLike( x )\nsh = y.shape\ndt = y.dtype\n"
4247+
ndzeros,"var arr = ndzeros( [ 2, 2 ] )\n"
4248+
ndzerosLike,"var x = ndzeros( [ 2, 2 ] )\nvar y = ndzerosLike( x )\n"
42494249
nextGraphemeClusterBreak,"var out = nextGraphemeClusterBreak( 'last man standing', 4 )\nout = nextGraphemeClusterBreak( 'presidential election', 8 )\nout = nextGraphemeClusterBreak( 'अनुच्छेद', 1 )\nout = nextGraphemeClusterBreak( '🌷' )\n"
42504250
nextTick,"function f() { console.log( 'beep' ); };\nnextTick( f )\n"
42514251
NIGHTINGALES_ROSE,"var data = NIGHTINGALES_ROSE()\n"

lib/node_modules/@stdlib/repl/code-blocks/data/data.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

lib/node_modules/@stdlib/repl/help/data/data.csv

Lines changed: 4 additions & 4 deletions
Large diffs are not rendered by default.

lib/node_modules/@stdlib/repl/help/data/data.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

lib/node_modules/@stdlib/repl/info/data/data.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1156,7 +1156,7 @@ base.ndarray.prototype.toLocaleString,"\nbase.ndarray.prototype.toLocaleString(
11561156
base.ndarray.prototype.toString,"\nbase.ndarray.prototype.toString()\n Serializes an ndarray as a string.\n"
11571157
base.ndarray.prototype.toJSON,"\nbase.ndarray.prototype.toJSON()\n Serializes an ndarray as a JSON object.\n"
11581158
base.ndarrayUnary,"\nbase.ndarrayUnary( arrays:ArrayLikeObject<ndarray>, fcn:Function )\n Applies a unary callback to elements in an input ndarray and assigns results\n to elements in an output ndarray.\n"
1159-
base.ndzeros,"\nbase.ndzeros( dtype:string, shape:ArrayLikeObject<integer>, order:string )\n Returns a zero-filled ndarray having a specified shape and data type.\n"
1159+
base.ndzeros,"\nbase.ndzeros( dtype:string|DataType, shape:ArrayLikeObject<integer>, \n order:string )\n Returns a zero-filled ndarray having a specified shape and data type.\n"
11601160
base.ndzerosLike,"\nbase.ndzerosLike( x:ndarray )\n Returns a zero-filled ndarray having the same shape and data type as a\n provided input ndarray.\n"
11611161
base.negafibonacci,"\nbase.negafibonacci( n:integer )\n Computes the nth negaFibonacci number.\n"
11621162
base.negalucas,"\nbase.negalucas( n:integer )\n Computes the nth negaLucas number.\n"

lib/node_modules/@stdlib/repl/info/data/data.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

lib/node_modules/@stdlib/repl/typed-signature/data/data.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1156,7 +1156,7 @@ base.ndarray.prototype.toLocaleString,"base.ndarray.prototype.toLocaleString( [l
11561156
base.ndarray.prototype.toString,"base.ndarray.prototype.toString()"
11571157
base.ndarray.prototype.toJSON,"base.ndarray.prototype.toJSON()"
11581158
base.ndarrayUnary,"base.ndarrayUnary( arrays:ArrayLikeObject<ndarray>, fcn:Function )"
1159-
base.ndzeros,"base.ndzeros( dtype:string, shape:ArrayLikeObject<integer>, order:string )"
1159+
base.ndzeros,"base.ndzeros( dtype:string|DataType, shape:ArrayLikeObject<integer>, order:string )"
11601160
base.ndzerosLike,"base.ndzerosLike( x:ndarray )"
11611161
base.negafibonacci,"base.negafibonacci( n:integer )"
11621162
base.negalucas,"base.negalucas( n:integer )"

lib/node_modules/@stdlib/repl/typed-signature/data/data.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)