@stdlib/ndarray-fancy

Fancy multidimensional array constructor.

https://github.com/stdlib-js/ndarray-fancy

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.0%) to scientific vocabulary

Keywords

array constructor constructors ctor ctors data dimensions dims javascript multidimensional ndarray node node-js nodejs stdlib structure typed typed-array types
Last synced: 6 months ago · JSON representation ·

Repository

Fancy multidimensional array constructor.

Basic Info
Statistics
  • Stars: 2
  • Watchers: 3
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
array constructor constructors ctor ctors data dimensions dims javascript multidimensional ndarray node node-js nodejs stdlib structure typed typed-array types
Created over 2 years ago · Last pushed 8 months ago
Metadata Files
Readme Changelog Contributing License Code of conduct Citation Security

README.md

About stdlib...

We believe in a future in which the web is a preferred environment for numerical computation. To help realize this future, we've built stdlib. stdlib is a standard library, with an emphasis on numerical and scientific computation, written in JavaScript (and C) for execution in browsers and in Node.js.

The library is fully decomposable, being architected in such a way that you can swap out and mix and match APIs and functionality to cater to your exact preferences and use cases.

When you use stdlib, you can be absolutely certain that you are using the most thorough, rigorous, well-written, studied, documented, tested, measured, and high-quality code out there.

To join us in bringing numerical computing to the web, get started by checking us out on GitHub, and please consider financially supporting stdlib. We greatly appreciate your continued support!

FancyArray

NPM version Build Status Coverage Status <!-- dependencies -->

Fancy multidimensional array constructor.

A **FancyArray** is an [`ndarray`][@stdlib/ndarray/ctor] which supports slicing via indexing expressions. ```javascript var ndarray2array = require( '@stdlib/ndarray-to-array' ); var FancyArray = require( '@stdlib/ndarray-fancy' ); var buffer = [ 1, 2, 3, 4, 5, 6 ]; var x = new FancyArray( 'generic', buffer, [ 6 ], [ 1 ], 0, 'row-major' ); // returns // Select the first 3 elements: var y = x[ ':3' ]; // returns var arr = ndarray2array( y ); // returns [ 1, 2, 3 ] // Select every other element, starting with the second element: y = x[ '1::2' ]; // returns arr = ndarray2array( y ); // returns [ 2, 4, 6 ] // Reverse the array, starting with last element and skipping every other element: y = x[ '::-2' ]; // returns arr = ndarray2array( y ); // returns [ 6, 4, 2 ] ```
## Installation ```bash npm install @stdlib/ndarray-fancy ``` Alternatively, - To load the package in a website via a `script` tag without installation and bundlers, use the [ES Module][es-module] available on the [`esm`][esm-url] branch (see [README][esm-readme]). - If you are using Deno, visit the [`deno`][deno-url] branch (see [README][deno-readme] for usage intructions). - For use in Observable, or in browser/node environments, use the [Universal Module Definition (UMD)][umd] build available on the [`umd`][umd-url] branch (see [README][umd-readme]). The [branches.md][branches-url] file summarizes the available branches and displays a diagram illustrating their relationships. To view installation and usage instructions specific to each branch build, be sure to explicitly navigate to the respective README files on each branch, as linked to above.
## Usage ```javascript var FancyArray = require( '@stdlib/ndarray-fancy' ); ``` #### FancyArray( dtype, buffer, shape, strides, offset, order\[, options] ) Returns a `FancyArray` instance. ```javascript // Specify the array configuration: var buffer = [ 1.0, 2.0, 3.0, 4.0 ]; var shape = [ 2, 2 ]; var order = 'row-major'; var strides = [ 2, 1 ]; var offset = 0; // Create a new array: var arr = new FancyArray( 'generic', buffer, shape, strides, offset, order ); // returns ``` The constructor expects the following arguments: - **dtype**: underlying [data type][@stdlib/ndarray/dtypes]. - **buffer**: data buffer. - **shape**: array shape (dimensions). - **strides**: array strides which are index offsets specifying how to access along corresponding dimensions. - **offset**: index offset specifying the location of the first indexed element in the data buffer. - **order**: array order, which is either `row-major` (C-style) or `column-major` (Fortran-style). The constructor accepts the following `options`: - **mode**: specifies how to handle indices which exceed array dimensions. Default: `'throw'`. - **submode**: a mode array which specifies for each dimension how to handle subscripts which exceed array dimensions. If provided fewer modes than dimensions, the constructor recycles modes using modulo arithmetic. Default: `[ options.mode ]`. - **readonly**: boolean indicating whether an array should be **read-only**. Default: `false`. The constructor supports the following `modes`: - **throw**: specifies that a `FancyArray` instance should throw an error when an index exceeds array dimensions. - **normalize**: specifies that a `FancyArray` instance should normalize negative indices and throw an error when an index exceeds array dimensions. - **wrap**: specifies that a `FancyArray` instance should wrap around an index exceeding array dimensions using modulo arithmetic. - **clamp**: specifies that a `FancyArray` instance should set an index exceeding array dimensions to either `0` (minimum index) or the maximum index. By default, a `FancyArray` instance **throws** when provided an index which exceeds array dimensions. To support alternative indexing behavior, set the `mode` option, which will affect all public **methods** (but **not** slicing semantics) for getting and setting array elements. ```javascript var opts = { 'mode': 'clamp' }; // Specify the array configuration: var buffer = [ 1.0, 2.0, 3.0, 4.0 ]; var shape = [ 2, 2 ]; var order = 'row-major'; var strides = [ 2, 1 ]; var offset = 0; // Create a new array: var arr = new FancyArray( 'generic', buffer, shape, strides, offset, order, opts ); // returns // Attempt to access an out-of-bounds linear index (clamped): var v = arr.iget( 10 ); // returns 4.0 ``` By default, the `mode` option is applied to subscripts which exceed array dimensions. To specify behavior for each dimension, set the `submode` option. ```javascript var opts = { 'submode': [ 'wrap', 'clamp' ] }; // Specify the array configuration: var buffer = [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ]; var shape = [ 2, 2, 2 ]; var order = 'row-major'; var strides = [ 4, 2, 1 ]; var offset = 0; // Create a new array: var arr = new FancyArray( 'generic', buffer, shape, strides, offset, order, opts ); // returns // Attempt to access out-of-bounds subscripts: var v = arr.get( -2, 10, -1 ); // linear index: 3 // returns 4.0 ``` * * * ### Properties #### FancyArray.name String value of the constructor name. ```javascript var str = FancyArray.name; // returns 'ndarray' ``` #### FancyArray.prototype.byteLength Size (in bytes) of the array (if known). ```javascript var Float64Array = require( '@stdlib/array-float64' ); // Specify the array configuration: var buffer = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] ); var shape = [ 2, 2 ]; var order = 'row-major'; var strides = [ 2, 1 ]; var offset = 0; // Create a new array: var arr = new FancyArray( 'float64', buffer, shape, strides, offset, order ); // Get the byte length: var nbytes = arr.byteLength; // returns 32 ``` If unable to determine the size of the array, the property value is `null`. ```javascript // Specify the array configuration: var buffer = [ 1.0, 2.0, 3.0, 4.0 ]; var shape = [ 2, 2 ]; var order = 'row-major'; var strides = [ 2, 1 ]; var offset = 0; // Create a new array: var arr = new FancyArray( 'generic', buffer, shape, strides, offset, order ); // Get the byte length: var nbytes = arr.byteLength; // returns null ``` #### FancyArray.prototype.BYTES_PER_ELEMENT Size (in bytes) of each array element (if known). ```javascript var Float32Array = require( '@stdlib/array-float32' ); // Specify the array configuration: var buffer = new Float32Array( [ 1.0, 2.0, 3.0, 4.0 ] ); var shape = [ 2, 2 ]; var order = 'row-major'; var strides = [ 2, 1 ]; var offset = 0; // Create a new array: var arr = new FancyArray( 'float32', buffer, shape, strides, offset, order ); // Get the number of bytes per element: var nbytes = arr.BYTES_PER_ELEMENT; // returns 4 ``` If size of each array element is unknown, the property value is `null`. ```javascript // Specify the array configuration: var buffer = [ 1.0, 2.0, 3.0, 4.0 ]; var shape = [ 2, 2 ]; var order = 'row-major'; var strides = [ 2, 1 ]; var offset = 0; // Create a new array: var arr = new FancyArray( 'generic', buffer, shape, strides, offset, order ); // Get the number of bytes per element: var nbytes = arr.BYTES_PER_ELEMENT; // returns null ``` #### FancyArray.prototype.data A reference to the underlying data buffer. ```javascript var Int8Array = require( '@stdlib/array-int8' ); // Specify the array configuration: var buffer = new Int8Array( [ 1, 2, 3, 4 ] ); var shape = [ 2, 2 ]; var order = 'row-major'; var strides = [ 2, 1 ]; var offset = 0; // Create a new array: var arr = new FancyArray( 'int8', buffer, shape, strides, offset, order ); // Get the buffer reference: var d = arr.data; // returns [ 1, 2, 3, 4 ] var bool = ( d === buffer ); // returns true ``` #### FancyArray.prototype.dtype Underlying [data type][@stdlib/ndarray/dtypes]. ```javascript var Uint8Array = require( '@stdlib/array-uint8' ); // Specify the array configuration: var buffer = new Uint8Array( [ 1, 2, 3, 4 ] ); var shape = [ 2, 2 ]; var order = 'row-major'; var strides = [ -2, 1 ]; var offset = 2; // Create a new array: var arr = new FancyArray( 'uint8', buffer, shape, strides, offset, order ); // Get the underlying data type: var dtype = arr.dtype; // returns 'uint8' ``` #### FancyArray.prototype.flags Meta information, such as information regarding the memory layout of the array. The returned object has the following properties: - **ROW_MAJOR_CONTIGUOUS**: `boolean` indicating if an array is row-major contiguous. - **COLUMN_MAJOR_CONTIGUOUS**: `boolean` indicating if an array is column-major contiguous. - **READONLY**: `boolean` indicating whether an array is **read-only**. An array is contiguous if (1) an array is compatible with being stored in a single memory segment and (2) each array element is adjacent to the next array element. Note that an array can be both row-major contiguous and column-major contiguous at the same time (e.g., if an array is a 1-dimensional array with `strides = [1]`). ```javascript var Int32Array = require( '@stdlib/array-int32' ); // Specify the array configuration: var buffer = new Int32Array( [ 1, 2, 3, 4 ] ); var shape = [ 2, 2 ]; var order = 'column-major'; var strides = [ 1, 2 ]; var offset = 0; // Create a new array: var arr = new FancyArray( 'int32', buffer, shape, strides, offset, order ); // Get the array flags: var flg = arr.flags; // returns {...} ``` #### FancyArray.prototype.length Number of array elements. ```javascript var Uint16Array = require( '@stdlib/array-uint16' ); // Specify the array configuration: var buffer = new Uint16Array( [ 1, 2, 3, 4 ] ); var shape = [ 2, 2 ]; var order = 'column-major'; var strides = [ -1, -2 ]; var offset = 3; // Create a new array: var arr = new FancyArray( 'uint16', buffer, shape, strides, offset, order ); // Get the array length: var len = arr.length; // returns 4 ``` #### FancyArray.prototype.ndims Number of dimensions. ```javascript var Uint8ClampedArray = require( '@stdlib/array-uint8c' ); // Specify the array configuration: var buffer = new Uint8ClampedArray( [ 1, 2, 3, 4 ] ); var shape = [ 2, 2 ]; var order = 'row-major'; var strides = [ -2, -1 ]; var offset = 3; // Create a new array: var arr = new FancyArray( 'uint8c', buffer, shape, strides, offset, order ); // Get the number of dimensions: var ndims = arr.ndims; // returns 2 ``` #### FancyArray.prototype.offset Index offset which specifies the `buffer` index at which to start iterating over array elements. ```javascript var Int16Array = require( '@stdlib/array-int16' ); // Specify the array configuration: var buffer = new Int16Array( [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ] ); var shape = [ 2, 2 ]; var order = 'row-major'; var strides = [ -2, -1 ]; var offset = 10; // Create a new array: var arr = new FancyArray( 'int16', buffer, shape, strides, offset, order ); // Get the index offset: var o = arr.offset; // returns 10 ``` #### FancyArray.prototype.order Array order. The array order is either row-major (C-style) or column-major (Fortran-style). ```javascript var Uint32Array = require( '@stdlib/array-uint32' ); // Specify the array configuration: var buffer = new Uint32Array( [ 1, 2, 3, 4 ] ); var shape = [ 2, 2 ]; var order = 'row-major'; var strides = [ 2, 1 ]; var offset = 0; // Create a new array: var arr = new FancyArray( 'uint32', buffer, shape, strides, offset, order ); // Get the array order: var ord = arr.order; // returns 'row-major' ``` #### FancyArray.prototype.shape Returns a copy of the array shape. ```javascript // Specify the array configuration: var buffer = [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ]; var shape = [ 2, 2 ]; var order = 'row-major'; var strides = [ 2, 1 ]; var offset = 2; // Create a new array: var arr = new FancyArray( 'generic', buffer, shape, strides, offset, order ); // Get the array shape: var dims = arr.shape; // returns [ 2, 2 ] ``` #### FancyArray.prototype.strides Returns a copy of the array strides which specify how to access data along corresponding array dimensions. ```javascript // Specify the array configuration: var buffer = [ 1.0, 2.0, 3.0, 4.0 ]; var shape = [ 2, 2 ]; var order = 'column-major'; var strides = [ -1, 2 ]; var offset = 1; // Create a new array: var arr = new FancyArray( 'generic', buffer, shape, strides, offset, order ); // Get the array strides: var s = arr.strides; // returns [ -1, 2 ] ``` * * * ### Methods #### FancyArray.prototype.get( i, j, k, ... ) Returns an array element specified according to provided subscripts. The number of provided subscripts must **equal** the number of dimensions. ```javascript // Specify the array configuration: var buffer = [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ]; var shape = [ 2, 2 ]; var order = 'row-major'; var strides = [ 2, 1 ]; var offset = 2; // Create a new array: var arr = new FancyArray( 'generic', buffer, shape, strides, offset, order ); // Get the element located at (1,1): var v = arr.get( 1, 1 ); // returns 6.0 ``` #### FancyArray.prototype.iget( idx ) Returns an array element located at a specified linear index. ```javascript // Specify the array configuration: var buffer = [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ]; var shape = [ 2, 2 ]; var order = 'row-major'; var strides = [ 2, 1 ]; var offset = 2; // Create a new array: var arr = new FancyArray( 'generic', buffer, shape, strides, offset, order ); // Get the element located at index 3: var v = arr.iget( 3 ); // returns 6.0 ``` For zero-dimensional arrays, the input argument is ignored and, for clarity, should **not** be provided. #### FancyArray.prototype.set( i, j, k, ..., v ) Sets an array element specified according to provided subscripts. The number of provided subscripts must **equal** the number of dimensions. ```javascript // Specify the array configuration: var buffer = [ 1.0, 2.0, 3.0, 4.0 ]; var shape = [ 2, 2 ]; var order = 'row-major'; var strides = [ 2, 1 ]; var offset = 0; // Create a new array: var arr = new FancyArray( 'generic', buffer, shape, strides, offset, order ); // Set the element located at (1,1): arr.set( 1, 1, 40.0 ); var v = arr.get( 1, 1 ); // returns 40.0 // Get the underlying buffer: var d = arr.data; // returns [ 1.0, 2.0, 3.0, 40.0 ] ``` The method returns the `FancyArray` instance. If an array is **read-only**, the method raises an exception. #### FancyArray.prototype.iset( idx, v ) Sets an array element located at a specified linear index. ```javascript // Specify the array configuration: var buffer = [ 1.0, 2.0, 3.0, 4.0 ]; var shape = [ 2, 2 ]; var order = 'row-major'; var strides = [ 2, 1 ]; var offset = 0; // Create a new array: var arr = new FancyArray( 'generic', buffer, shape, strides, offset, order ); // Set the element located at index 3: arr.iset( 3, 40.0 ); var v = arr.iget( 3 ); // returns 40.0 // Get the underlying buffer: var d = arr.data; // returns [ 1.0, 2.0, 3.0, 40.0 ] ``` For zero-dimensional arrays, the first, and **only**, argument should be the value `v` to set. The method returns the `FancyArray` instance. If an array is **read-only**, the method raises an exception. #### FancyArray.prototype.toString() Serializes a `FancyArray` as a string. ```javascript // Specify the array configuration: var buffer = [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ]; var shape = [ 3, 2 ]; var order = 'row-major'; var strides = [ 2, 1 ]; var offset = 2; // Create a new array: var arr = new FancyArray( 'generic', buffer, shape, strides, offset, order ); // Serialize to a string: var str = arr.toString(); // returns "ndarray( 'generic', [ 3, 4, 5, 6, 7, 8 ], [ 3, 2 ], [ 2, 1 ], 0, 'row-major' )" ``` The method does **not** serialize data outside of the buffer region defined by the array configuration. #### FancyArray.prototype.toJSON() Serializes a `FancyArray` as a [JSON][json] object. `JSON.stringify()` implicitly calls this method when stringifying a `FancyArray` instance. ```javascript // Specify the array configuration: var buffer = [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ]; var shape = [ 3, 2 ]; var order = 'row-major'; var strides = [ 2, 1 ]; var offset = 2; // Create a new array: var arr = new FancyArray( 'generic', buffer, shape, strides, offset, order ); // Serialize to JSON: var o = arr.toJSON(); // returns { 'type': 'ndarray', 'dtype': 'generic', 'flags': {...}, 'offset': 0, 'order': 'row-major', 'shape': [ 3, 2 ], 'strides': [ 2, 1 ], 'data': [ 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] } ``` The method does **not** serialize data outside of the buffer region defined by the array configuration.
* * * ## Notes - To create a zero-dimensional array, provide an empty `shape` and a single `strides` element equal to `0`. The `order` can be either `row-major` or `column-major` and has no effect on data storage or access. ```javascript var buffer = [ 1 ]; var shape = []; var order = 'row-major'; var strides = [ 0 ]; var offset = 0; // Create a new zero-dimensional array: var arr = new FancyArray( 'generic', buffer, shape, strides, offset, order ); // returns ``` - A `FancyArray` is an [`ndarray`][@stdlib/ndarray/ctor] instance and supports all [`ndarray`][@stdlib/ndarray/ctor] options, attributes, and methods. A `FancyArray` can be consumed by any API which supports [`ndarray`][@stdlib/ndarray/ctor] instances. - Indexing expressions provide a convenient and powerful means for creating and operating on [`ndarray`][@stdlib/ndarray/ctor] views; however, their use does entail a performance cost. Indexing expressions are best suited for interactive use (e.g., in the [REPL][@stdlib/repl]) and scripting. For performance critical applications, prefer equivalent functional APIs supporting [`ndarray`][@stdlib/ndarray/ctor] instances. - In older JavaScript environments which do **not** support [`Proxy`][@stdlib/proxy/ctor] objects, the use of indexing expressions is **not** supported.
* * * ## Examples ```javascript var S = require( '@stdlib/slice-ctor' ); var E = require( '@stdlib/slice-multi' ); var toArray = require( '@stdlib/ndarray-to-array' ); var FancyArray = require( '@stdlib/ndarray-fancy' ); var buffer = [ 1, 2, 3, 4, // 0 5, 6, // 1 7, 8, // 2 9, 10 ]; var shape = [ 3, 2 ]; var strides = [ 2, 1 ]; var offset = 2; var x = new FancyArray( 'generic', buffer, shape, strides, offset, 'row-major' ); // returns // Access an ndarray property: var ndims = x.ndims; // returns 2 // Retrieve an ndarray element: var v = x.get( 2, 1 ); // returns 8 // Set an ndarray element: x.set( 2, 1, 20 ); v = x.get( 2, 1 ); // returns 20 // Create an alias for `undefined` for more concise slicing expressions: var _ = void 0; // Create a multi-dimensional slice: var s = E( S(0,_,2), _ ); // returns // Use the slice to create a view on the original ndarray: var y1 = x[ s ]; console.log( toArray( y1 ) ); // => [ [ 3, 4 ], [ 7, 20 ] ] // Use alternative syntax: var y2 = x[ [ S(0,_,2), _ ] ]; console.log( toArray( y2 ) ); // => [ [ 3, 4 ], [ 7, 20 ] ] // Use alternative syntax: var y3 = x[ '0::2,:' ]; console.log( toArray( y3 ) ); // => [ [ 3, 4 ], [ 7, 20 ] ] // Flip dimensions: var y4 = x[ [ S(_,_,-2), S(_,_,-1) ] ]; console.log( toArray( y4 ) ); // => [ [ 20, 7 ], [ 4, 3 ] ] ```
* * * ## Notice This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. #### Community [![Chat][chat-image]][chat-url] --- ## License See [LICENSE][stdlib-license]. ## Copyright Copyright © 2016-2025. The Stdlib [Authors][stdlib-authors].

Owner

  • Name: stdlib
  • Login: stdlib-js
  • Kind: organization

Standard library for JavaScript.

Citation (CITATION.cff)

cff-version: 1.2.0
title: stdlib
message: >-
  If you use this software, please cite it using the
  metadata from this file.

type: software

authors:
  - name: The Stdlib Authors
    url: https://github.com/stdlib-js/stdlib/graphs/contributors

repository-code: https://github.com/stdlib-js/stdlib
url: https://stdlib.io

abstract: |
  Standard library for JavaScript and Node.js.

keywords:
  - JavaScript
  - Node.js
  - TypeScript
  - standard library
  - scientific computing
  - numerical computing
  - statistical computing

license: Apache-2.0 AND BSL-1.0

date-released: 2016

GitHub Events

Total
  • Push event: 36
Last Year
  • Push event: 36

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • npm 5 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 3
  • Total maintainers: 4
npmjs.org: @stdlib/ndarray-fancy

Fancy multidimensional array constructor.

  • Homepage: https://stdlib.io
  • License: Apache-2.0
  • Latest release: 0.2.1
    published almost 2 years ago
  • Versions: 3
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 5 Last month
Rankings
Dependent repos count: 37.4%
Average: 45.4%
Dependent packages count: 53.5%
Funding
  • type: opencollective
  • url: https://opencollective.com/stdlib
Last synced: 6 months ago

Dependencies

.github/workflows/benchmark.yml actions
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
.github/workflows/cancel.yml actions
  • styfle/cancel-workflow-action 0.11.0 composite
.github/workflows/close_pull_requests.yml actions
  • superbrothers/close-pull-request v3 composite
.github/workflows/examples.yml actions
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
.github/workflows/npm_downloads.yml actions
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
  • actions/upload-artifact v3 composite
  • distributhor/workflow-webhook v3 composite
.github/workflows/productionize.yml actions
  • act10ns/slack v2 composite
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
  • stdlib-js/bundle-action main composite
  • stdlib-js/transform-errors-action main composite
.github/workflows/publish.yml actions
  • JS-DevTools/npm-publish v2 composite
  • act10ns/slack v2 composite
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
  • styfle/cancel-workflow-action 0.11.0 composite
.github/workflows/test.yml actions
  • act10ns/slack v2 composite
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
.github/workflows/test_bundles.yml actions
  • act10ns/slack v2 composite
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
  • denoland/setup-deno v1 composite
.github/workflows/test_coverage.yml actions
  • act10ns/slack v2 composite
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
  • codecov/codecov-action v3 composite
  • distributhor/workflow-webhook v3 composite
.github/workflows/test_install.yml actions
  • act10ns/slack v2 composite
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
package.json npm
  • @stdlib/array-complex64 ^0.0.6 development
  • @stdlib/array-float64 ^0.0.6 development
  • @stdlib/assert-has-proxy-support ^0.0.8 development
  • @stdlib/assert-instance-of ^0.0.8 development
  • @stdlib/assert-is-ndarray-like ^0.0.6 development
  • @stdlib/bench ^0.0.12 development
  • @stdlib/ndarray-to-array ^0.0.1 development
  • @stdlib/slice-ctor github:stdlib-js/slice-ctor#main development
  • @stdlib/slice-multi github:stdlib-js/slice-multi#main development
  • istanbul ^0.4.1 development
  • tap-min git+https://github.com/Planeshifter/tap-min.git development
  • tape git+https://github.com/kgryte/tape.git#fix/globby development
  • @stdlib/array-base-assert-contains ^0.0.1
  • @stdlib/array-base-take ^0.0.1
  • @stdlib/array-base-zeros ^0.0.2
  • @stdlib/assert-is-function ^0.0.8
  • @stdlib/ndarray-base-buffer ^0.0.6
  • @stdlib/ndarray-base-numel ^0.0.8
  • @stdlib/ndarray-base-sub2ind ^0.0.8
  • @stdlib/ndarray-base-vind2bind ^0.0.8
  • @stdlib/ndarray-ctor ^0.0.10
  • @stdlib/ndarray-defaults github:stdlib-js/ndarray-defaults#main
  • @stdlib/proxy-ctor ^0.0.7
  • @stdlib/slice-base-length github:stdlib-js/slice-base-length#main
  • @stdlib/slice-base-normalize-multi-slice github:stdlib-js/slice-base-normalize-multi-slice#main
  • @stdlib/slice-base-normalize-slice github:stdlib-js/slice-base-normalize-slice#main
  • @stdlib/slice-base-seq2multislice github:stdlib-js/slice-base-seq2multislice#main
  • @stdlib/slice-base-seq2slice github:stdlib-js/slice-base-seq2slice#main
  • @stdlib/slice-base-shape github:stdlib-js/slice-base-shape#main
  • @stdlib/slice-base-str2multislice github:stdlib-js/slice-base-str2multislice#main
  • @stdlib/slice-base-str2slice github:stdlib-js/slice-base-str2slice#main
  • @stdlib/string-base-replace ^0.0.2
  • @stdlib/string-base-trim ^0.0.2
  • @stdlib/string-format ^0.0.3
  • @stdlib/types ^0.0.14
  • @stdlib/utils-define-nonenumerable-read-only-property ^0.0.7
  • @stdlib/utils-inherit ^0.0.8
  • @stdlib/utils-properties-in ^0.0.7