diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 121f6573..3d84fb9e 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -31,7 +31,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: - node-version: 15 + node-version: 'lts/*' - name: Install production and development dependencies run: | npm install || npm install || npm install diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 881e2097..3bcc7ce4 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -31,7 +31,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: - node-version: 15 + node-version: 'lts/*' - name: Install production and development dependencies run: | npm install || npm install || npm install diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 01c768cd..66140cdf 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -34,7 +34,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: - node-version: 15 + node-version: 'lts/*' - name: Replace all GitHub links to individual packages with npm links run: | find . -type f -name '*.md' -print0 | xargs -0 sed -Ei 's/@stdlib\/([^:]*)\]: https:\/\/github.com\/stdlib-js/@stdlib\/\1\]: https:\/\/www.npmjs.com\/package\/@stdlib/g' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f9eb3216..5b784ccd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,7 +37,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: - node-version: 15 + node-version: 'lts/*' - name: Install production and development dependencies id: install run: | diff --git a/.github/workflows/test_coverage.yml b/.github/workflows/test_coverage.yml index dfcf1023..1610145e 100644 --- a/.github/workflows/test_coverage.yml +++ b/.github/workflows/test_coverage.yml @@ -34,7 +34,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: - node-version: 15 + node-version: 'lts/*' - name: Install production and development dependencies run: | npm install || npm install || npm install diff --git a/.github/workflows/test_install.yml b/.github/workflows/test_install.yml index ed16345d..64ea5f47 100644 --- a/.github/workflows/test_install.yml +++ b/.github/workflows/test_install.yml @@ -39,7 +39,7 @@ jobs: - uses: actions/checkout@v1 - uses: actions/setup-node@v1 with: - node-version: 15 + node-version: 'lts/*' - name: Install production dependencies via npm run: | npm install --only=prod || npm install --only=prod || npm install --only=prod diff --git a/base/README.md b/base/README.md index b9d5a959..6139cd9c 100644 --- a/base/README.md +++ b/base/README.md @@ -44,21 +44,28 @@ var o = ns;
- [`bind2vind( shape, strides, offset, order, idx, mode )`][@stdlib/ndarray/base/bind2vind]: convert a linear index in an underlying data buffer to a linear index in an array view. +- [`broadcastArray( arr, shape )`][@stdlib/ndarray/base/broadcast-array]: broadcast an ndarray to a specified shape. +- [`broadcastShapes( shapes )`][@stdlib/ndarray/base/broadcast-shapes]: broadcast array shapes to a single shape. - [`bufferCtors( dtype )`][@stdlib/ndarray/base/buffer-ctors]: ndarray data buffer constructors. +- [`bufferDataTypeEnum( buffer )`][@stdlib/ndarray/base/buffer-dtype-enum]: return the data type enumeration constant of an ndarray data buffer. - [`bufferDataType( buffer )`][@stdlib/ndarray/base/buffer-dtype]: return the data type of an ndarray data buffer. - [`buffer( dtype, size )`][@stdlib/ndarray/base/buffer]: create a zero-filled contiguous linear ndarray data buffer. - [`bytesPerElement( dtype )`][@stdlib/ndarray/base/bytes-per-element]: return the number of bytes per element provided an underlying array data type. - [`clampIndex( idx, max )`][@stdlib/ndarray/base/clamp-index]: restrict an index to the interval `[0,max]`. - [`ndarray( dtype, buffer, shape, strides, offset, order )`][@stdlib/ndarray/base/ctor]: create a multidimensional array. - [`dtypeChar( dtype )`][@stdlib/ndarray/base/dtype-char]: return the single letter abbreviation for an underlying array data type. +- [`dtypes2signatures( dtypes, nin, nout )`][@stdlib/ndarray/base/dtypes2signatures]: transform a list of array argument data types into a list of signatures. - [`ind( idx, max, mode )`][@stdlib/ndarray/base/ind]: return an index given an index mode. - [`ind2sub( shape, strides, offset, order, idx, mode )`][@stdlib/ndarray/base/ind2sub]: convert a linear index to an array of subscripts. - [`iterationOrder( strides )`][@stdlib/ndarray/base/iteration-order]: given a stride array, determine array iteration order. - [`maxViewBufferIndex( shape, strides, offset )`][@stdlib/ndarray/base/max-view-buffer-index]: compute the maximum linear index in an underlying data buffer accessible to an array view. - [`minViewBufferIndex( shape, strides, offset )`][@stdlib/ndarray/base/min-view-buffer-index]: compute the minimum linear index in an underlying data buffer accessible to an array view. - [`minmaxViewBufferIndex( shape, strides, offset )`][@stdlib/ndarray/base/minmax-view-buffer-index]: compute the minimum and maximum linear indices in an underlying data buffer which are accessible to an array view. +- [`nonsingletonDimensions( shape )`][@stdlib/ndarray/base/nonsingleton-dimensions]: return the number of non-singleton dimensions. - [`numel( shape )`][@stdlib/ndarray/base/numel]: return the number of elements in an array. +- [`serializeMetaData( x )`][@stdlib/ndarray/base/serialize-meta-data]: serialize ndarray meta data. - [`shape2strides( shape, order )`][@stdlib/ndarray/base/shape2strides]: generate a stride array from an array shape. +- [`singletonDimensions( shape )`][@stdlib/ndarray/base/singleton-dimensions]: return the number of singleton dimensions. - [`strides2offset( shape, strides )`][@stdlib/ndarray/base/strides2offset]: determine the index offset which specifies the location of the first indexed value in a multidimensional array based on a stride array. - [`strides2order( strides )`][@stdlib/ndarray/base/strides2order]: determine the order of a multidimensional array based on a provided stride array. - [`sub2ind( shape, strides, offset, ...subscripts, mode )`][@stdlib/ndarray/base/sub2ind]: convert subscripts to a linear index. @@ -113,8 +120,14 @@ console.log( objectKeys( ns ) ); [@stdlib/ndarray/base/bind2vind]: https://github.com/stdlib-js/ndarray/tree/main/base/bind2vind +[@stdlib/ndarray/base/broadcast-array]: https://github.com/stdlib-js/ndarray/tree/main/base/broadcast-array + +[@stdlib/ndarray/base/broadcast-shapes]: https://github.com/stdlib-js/ndarray/tree/main/base/broadcast-shapes + [@stdlib/ndarray/base/buffer-ctors]: https://github.com/stdlib-js/ndarray/tree/main/base/buffer-ctors +[@stdlib/ndarray/base/buffer-dtype-enum]: https://github.com/stdlib-js/ndarray/tree/main/base/buffer-dtype-enum + [@stdlib/ndarray/base/buffer-dtype]: https://github.com/stdlib-js/ndarray/tree/main/base/buffer-dtype [@stdlib/ndarray/base/buffer]: https://github.com/stdlib-js/ndarray/tree/main/base/buffer @@ -127,6 +140,8 @@ console.log( objectKeys( ns ) ); [@stdlib/ndarray/base/dtype-char]: https://github.com/stdlib-js/ndarray/tree/main/base/dtype-char +[@stdlib/ndarray/base/dtypes2signatures]: https://github.com/stdlib-js/ndarray/tree/main/base/dtypes2signatures + [@stdlib/ndarray/base/ind]: https://github.com/stdlib-js/ndarray/tree/main/base/ind [@stdlib/ndarray/base/ind2sub]: https://github.com/stdlib-js/ndarray/tree/main/base/ind2sub @@ -139,10 +154,16 @@ console.log( objectKeys( ns ) ); [@stdlib/ndarray/base/minmax-view-buffer-index]: https://github.com/stdlib-js/ndarray/tree/main/base/minmax-view-buffer-index +[@stdlib/ndarray/base/nonsingleton-dimensions]: https://github.com/stdlib-js/ndarray/tree/main/base/nonsingleton-dimensions + [@stdlib/ndarray/base/numel]: https://github.com/stdlib-js/ndarray/tree/main/base/numel +[@stdlib/ndarray/base/serialize-meta-data]: https://github.com/stdlib-js/ndarray/tree/main/base/serialize-meta-data + [@stdlib/ndarray/base/shape2strides]: https://github.com/stdlib-js/ndarray/tree/main/base/shape2strides +[@stdlib/ndarray/base/singleton-dimensions]: https://github.com/stdlib-js/ndarray/tree/main/base/singleton-dimensions + [@stdlib/ndarray/base/strides2offset]: https://github.com/stdlib-js/ndarray/tree/main/base/strides2offset [@stdlib/ndarray/base/strides2order]: https://github.com/stdlib-js/ndarray/tree/main/base/strides2order