Skip to content

Commit f10aaf2

Browse files
stdlib-botkgryte
andauthored
docs: update REPL namespace documentation
PR-URL: #2311 Co-authored-by: Athan Reines <kgryte@gmail.com> Reviewed-by: Athan Reines <kgryte@gmail.com> Signed-off-by: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com>
1 parent 26681a0 commit f10aaf2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ ArrayBuffer.isView,"\nArrayBuffer.isView( arr )\n Returns a boolean indicatin
5252
ArrayBuffer.prototype.byteLength,"\nArrayBuffer.prototype.byteLength\n Read-only property which returns the length (in bytes) of the array buffer.\n\n Examples\n --------\n > var buf = new ArrayBuffer( 5 );\n > buf.byteLength\n 5"
5353
ArrayBuffer.prototype.slice,"\nArrayBuffer.prototype.slice( [start[, end]] )\n Copies the bytes of an array buffer to a new array buffer.\n\n Parameters\n ----------\n start: integer (optional)\n Index at which to start copying buffer contents (inclusive). If\n negative, the index is relative to the end of the buffer.\n\n end: integer (optional)\n Index at which to stop copying buffer contents (exclusive). If negative,\n the index is relative to the end of the buffer.\n\n Returns\n -------\n out: ArrayBuffer\n A new array buffer whose contents have been copied from the calling\n array buffer.\n\n Examples\n --------\n > var b1 = new ArrayBuffer( 10 );\n > var b2 = b1.slice( 2, 6 );\n > var bool = ( b1 === b2 )\n false\n > b2.byteLength\n 4\n\n See Also\n --------\n Buffer, Float32Array, Float64Array, Int16Array, Int32Array, Int8Array, SharedArrayBuffer, Uint16Array, Uint32Array, Uint8Array, Uint8ClampedArray"
5454
arraybuffer2buffer,"\narraybuffer2buffer( buf[, byteOffset[, length]] )\n Allocates a buffer from an ArrayBuffer.\n\n The behavior of this function varies across Node.js versions due to changes\n in the underlying Node.js APIs:\n\n - <3.0.0: the function copies ArrayBuffer bytes to a new Buffer instance.\n - >=3.0.0 and <5.10.0: if provided a byte offset, the function copies\n ArrayBuffer bytes to a new Buffer instance; otherwise, the function\n returns a view of an ArrayBuffer without copying the underlying memory.\n - <6.0.0: if provided an empty ArrayBuffer, the function returns an empty\n Buffer which is not an ArrayBuffer view.\n - >=6.0.0: the function returns a view of an ArrayBuffer without copying\n the underlying memory.\n\n Parameters\n ----------\n buf: ArrayBuffer\n Input array buffer.\n\n byteOffset: integer (optional)\n Index offset specifying the location of the first byte.\n\n length: integer (optional)\n Number of bytes to expose from the underlying ArrayBuffer.\n\n Returns\n -------\n out: Buffer\n Buffer instance.\n\n Examples\n --------\n > var ab = new ArrayBuffer( 10 )\n <ArrayBuffer>\n > var buf = arraybuffer2buffer( ab )\n <Buffer>\n > var len = buf.length\n 10\n > buf = arraybuffer2buffer( ab, 2, 6 )\n <Buffer>\n > len = buf.length\n 6\n\n See Also\n --------\n Buffer, array2buffer, copyBuffer, string2buffer\n"
55-
arrayCtors,"\narrayCtors( dtype )\n Returns an array constructor.\n\n The function returns constructors for the following data types:\n\n - float32: single-precision floating-point numbers.\n - float64: double-precision floating-point numbers.\n - complex64: single-precision complex floating-point numbers.\n - complex128: double-precision complex floating-point numbers.\n - generic: values of any type.\n - int16: signed 16-bit integers.\n - int32: signed 32-bit integers.\n - int8: signed 8-bit integers.\n - uint16: unsigned 16-bit integers.\n - uint32: unsigned 32-bit integers.\n - uint8: unsigned 8-bit integers.\n - uint8c: unsigned clamped 8-bit integers.\n\n Parameters\n ----------\n dtype: string\n Data type.\n\n Returns\n -------\n out: Function|null\n Constructor.\n\n Examples\n --------\n > var ctor = arrayCtors( 'float64' )\n <Function>\n > ctor = arrayCtors( 'float' )\n null\n\n See Also\n --------\n typedarrayCtors\n"
55+
arrayCtors,"\narrayCtors( dtype )\n Returns an array constructor.\n\n The function returns constructors for the following data types:\n\n - float32: single-precision floating-point numbers.\n - float64: double-precision floating-point numbers.\n - complex64: single-precision complex floating-point numbers.\n - complex128: double-precision complex floating-point numbers.\n - bool: boolean values.\n - generic: values of any type.\n - int16: signed 16-bit integers.\n - int32: signed 32-bit integers.\n - int8: signed 8-bit integers.\n - uint16: unsigned 16-bit integers.\n - uint32: unsigned 32-bit integers.\n - uint8: unsigned 8-bit integers.\n - uint8c: unsigned clamped 8-bit integers.\n\n Parameters\n ----------\n dtype: string\n Data type.\n\n Returns\n -------\n out: Function|null\n Constructor.\n\n Examples\n --------\n > var ctor = arrayCtors( 'float64' )\n <Function>\n > ctor = arrayCtors( 'float' )\n null\n\n See Also\n --------\n typedarrayCtors\n"
5656
arrayDataType,"\narrayDataType( array )\n Returns the data type of an array.\n\n If provided an argument having an unknown or unsupported type, the function\n returns `null`.\n\n Parameters\n ----------\n array: any\n Input value.\n\n Returns\n -------\n out: string|null\n Data type.\n\n Examples\n --------\n > var arr = new Float64Array( 10 );\n > var dt = arrayDataType( arr )\n 'float64'\n > dt = arrayDataType( 'beep' )\n null\n\n See Also\n --------\n arrayDataTypes\n"
5757
arrayDataTypes,"\narrayDataTypes( [kind] )\n Returns a list of array data types.\n\n When not provided a data type \"kind\", the function returns an array\n containing the following data types:\n\n - float32: single-precision floating-point numbers.\n - float64: double-precision floating-point numbers.\n - complex64: single-precision complex floating-point numbers.\n - complex128: double-precision complex floating-point numbers.\n - generic: values of any type.\n - int16: signed 16-bit integers.\n - int32: signed 32-bit integers.\n - int8: signed 8-bit integers.\n - uint16: unsigned 16-bit integers.\n - uint32: unsigned 32-bit integers.\n - uint8: unsigned 8-bit integers.\n - uint8c: unsigned clamped 8-bit integers.\n\n The function supports the following data type \"kinds\":\n\n - floating_point: floating-point data types.\n - real_floating_point: real-valued floating-point data types.\n - complex_floating_point: complex-valued floating-point data types.\n - integer: integer data types.\n - signed_integer: signed integer data types.\n - unsigned_integer: unsigned integer data types.\n - real: real-valued data types.\n - numeric: numeric data types.\n - typed: \"typed\" data types.\n - all: all data types.\n\n Additionally, the function supports extending the \"kinds\" listed above by\n appending a '_and_generic' suffix to the kind name (e.g., real_and_generic).\n\n Parameters\n ----------\n kind: string (optional)\n Data type kind.\n\n Returns\n -------\n out: Array<string>\n List of array data types.\n\n Examples\n --------\n > var out = arrayDataTypes()\n [...]\n > out = arrayDataTypes( 'floating_point' )\n [...]\n > out = arrayDataTypes( 'floating_point_and_generic' )\n [...]\n\n See Also\n --------\n typedarrayDataTypes, ndarrayDataTypes\n"
5858
ArrayIndex,"\nArrayIndex( x[, options] )\n Wraps a provided array as an array index object.\n\n Array index instances have no explicit functionality; however, they are used\n by \"fancy\" arrays for element retrieval and assignment.\n\n By default, an instance is invalidated and removed from an internal cache\n immediately after a consumer resolves the underlying data associated with an\n instance using the `get` static method. Immediate invalidation and cache\n removal ensures that references to the underlying array are not the source\n of memory leaks.\n\n Because instances leverage an internal cache implementing the Singleton\n pattern, one must be sure to use the same constructor as consumers. If one\n uses a different constructor, the consumer will *not* be able to resolve the\n original wrapped array, as the consumer will attempt to resolve an instance\n in the wrong internal cache.\n\n Because non-persisted instances are freed after first use, in order to avoid\n holding onto memory and to allow garbage collection, one should avoid\n scenarios in which an instance is never used.\n\n Parameters\n ----------\n x: Array|TypedArray|Object\n Input array.\n\n options: Object (optional)\n Function options.\n\n options.persist: boolean (optional)\n Boolean indicating whether to continue persisting an index object after\n first usage. Default: false.\n\n Returns\n -------\n out: ArrayIndex\n ArrayIndex instance.\n\n Examples\n --------\n > var idx = new ArrayIndex( [ 1, 2, 3, 4 ] );\n\n\nArrayIndex.free( id )\n Frees the instance associated with a provided identifier.\n\n Parameters\n ----------\n id: string\n Instance identifier.\n\n Returns\n -------\n out: boolean\n Boolean indicating whether an instance was successfully freed.\n\n Examples\n --------\n > var idx = new ArrayIndex( [ 1, 2, 3, 4 ] );\n > // ...\n > ArrayIndex.free( idx.id )\n\n\nArrayIndex.get( id )\n Returns the array associated with the instance having a provided identifier.\n\n Parameters\n ----------\n id: string\n Instance identifier.\n\n Returns\n -------\n out: Object\n Object containing array data.\n\n out.data: Array|TypedArray|Object\n The underlying array associated with the provided identifier.\n\n out.type: string\n The type of array index.\n\n out.dtype: string\n The data type of the underlying array.\n\n Examples\n --------\n > var idx = new ArrayIndex( [ 1, 2, 3, 4 ] );\n > ArrayIndex.get( idx.id )\n {...}\n\n\nArrayIndex.prototype.data\n Read-only property returning the underlying index array.\n\n Returns\n -------\n out: Array|TypedArray|Object\n Array data type.\n\n Examples\n --------\n > var idx = new ArrayIndex( [ 1, 2, 3, 4 ] );\n > idx.data\n [ 1, 2, 3, 4 ]\n\n\nArrayIndex.prototype.dtype\n Read-only property returning the underlying data type of the index array.\n\n Returns\n -------\n out: string\n Array data type.\n\n Examples\n --------\n > var idx = new ArrayIndex( [ 1, 2, 3, 4 ] );\n > idx.dtype\n 'generic'\n\n\nArrayIndex.prototype.id\n Read-only property returning the unique identifier associated with an\n instance.\n\n Returns\n -------\n out: string\n String identifier.\n\n Examples\n --------\n > var idx = new ArrayIndex( [ 1, 2, 3, 4 ] );\n > idx.id\n <string>\n\n\nArrayIndex.prototype.isCached\n Read-only property returning a boolean indicating whether an array index is\n actively cached.\n\n Returns\n -------\n out: boolean\n Boolean indicating whether an array index is actively cached.\n\n Examples\n --------\n > var idx = new ArrayIndex( [ 1, 2, 3, 4 ] );\n > idx.isCached\n true\n\n\nArrayIndex.prototype.type\n Read-only property returning the array index type.\n\n Returns\n -------\n out: string\n Array index type.\n\n Examples\n --------\n > var idx = new ArrayIndex( [ 1, 2, 3, 4 ] );\n > idx.type\n <string>\n\n\nArrayIndex.prototype.toString()\n Serializes an instance as a string.\n\n Returns\n -------\n str: string\n Serialized string.\n\n Examples\n --------\n > var idx = new ArrayIndex( [ 1, 2, 3, 4 ] );\n > idx.toString()\n\n\nArrayIndex.prototype.toJSON()\n Serializes an instance as a JSON object.\n\n Returns\n -------\n obj: Object\n JSON object.\n\n Examples\n --------\n > var idx = new ArrayIndex( [ 1, 2, 3, 4 ] );\n > idx.toJSON()\n { 'type': 'ArrayIndex', 'data': [ 1, 2, 3, 4 ] }\n\n See Also\n --------\n array2fancy\n"

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

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

0 commit comments

Comments
 (0)