@stdlib/strided-base

Base strided.

https://github.com/stdlib-js/strided-base

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
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.8%) to scientific vocabulary

Keywords

array base element-wise elementwise javascript lib library ndarray node node-js nodejs standard stdlib strided vector
Last synced: 6 months ago · JSON representation ·

Repository

Base strided.

Basic Info
Statistics
  • Stars: 2
  • Watchers: 3
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
array base element-wise elementwise javascript lib library ndarray node node-js nodejs standard stdlib strided vector
Created over 4 years ago · Last pushed 11 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!

Base

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

Base strided.

## Installation ```bash npm install @stdlib/strided-base ``` 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 ns = require( '@stdlib/strided-base' ); ``` #### ns Base strided. ```javascript var o = ns; // returns {...} ``` The following functions are currently exported:
- [`binaryAddonDispatch( addon, fallback )`][@stdlib/strided/base/binary-addon-dispatch]: dispatch to a native add-on applying a binary function to two input strided arrays. - [`binaryDtypeSignatures( dtypes1, dtypes2, dtypes3[, options] )`][@stdlib/strided/base/binary-dtype-signatures]: generate a list of binary interface signatures from strided array data types. - [`binarySignatureCallbacks( table, signatures )`][@stdlib/strided/base/binary-signature-callbacks]: assign callbacks to binary interfaces according to type promotion rules. - [`binary( arrays, shape, strides, fcn )`][@stdlib/strided/base/binary]: apply a binary callback to strided input array elements and assign results to elements in a strided output array. - [`cmap( N, x, strideX, y, strideY, fcn )`][@stdlib/strided/base/cmap]: apply a unary function to a single-precision floating-point strided input array and assign results to a single-precision floating-point strided output array. - [`dmap( N, x, strideX, y, strideY, fcn )`][@stdlib/strided/base/dmap]: apply a unary function to a double-precision floating-point strided input array and assign results to a double-precision floating-point strided output array. - [`dmap2( N, x, strideX, y, strideY, z, strideZ, fcn )`][@stdlib/strided/base/dmap2]: apply a binary function to double-precision floating-point strided input arrays and assign results to a double-precision floating-point strided output array. - [`dmskmap( N, x, strideX, mask, strideMask, y, strideY, fcn )`][@stdlib/strided/base/dmskmap]: apply a unary function to a double-precision floating-point strided input array according to a strided mask array and assign results to a double-precision floating-point strided output array. - [`dmskmap2( N, x, strideX, y, strideY, mask, strideMask, z, strideZ, fcn )`][@stdlib/strided/base/dmskmap2]: apply a binary function to double-precision floating-point strided input arrays according to a strided mask array and assign results to a double-precision floating-point strided output array. - [`dtypeEnum2Str( dtype )`][@stdlib/strided/base/dtype-enum2str]: return the data type string associated with a strided array data type enumeration constant. - [`dtypeResolveEnum( dtype )`][@stdlib/strided/base/dtype-resolve-enum]: return the enumeration constant associated with a supported strided array data type value. - [`dtypeResolveStr( dtype )`][@stdlib/strided/base/dtype-resolve-str]: return the data type string associated with a supported strided array data type value. - [`dtypeStr2Enum( dtype )`][@stdlib/strided/base/dtype-str2enum]: return the enumeration constant associated with a strided array data type string. - [`mapBy( N, x, strideX, y, strideY, fcn, clbk[, thisArg] )`][@stdlib/strided/base/map-by]: apply a unary function to each element retrieved from a strided input array according to a callback function and assign results to a strided output array. - [`mapBy2( N, x, strideX, y, strideY, z, strideZ, fcn, clbk[, thisArg] )`][@stdlib/strided/base/map-by2]: apply a binary function to each pair of elements retrieved from strided input arrays according to a callback function and assign results to a strided output array. - [`maxViewBufferIndex( N, stride, offset )`][@stdlib/strided/base/max-view-buffer-index]: return the maximum accessible index based on a set of provided strided array parameters. - [`metaDataProps( meta, dtypes, obj, bool )`][@stdlib/strided/base/meta-data-props]: define non-enumerable read-only properties which expose strided array function meta data. - [`minViewBufferIndex( N, stride, offset )`][@stdlib/strided/base/min-view-buffer-index]: return the minimum accessible index based on a set of provided strided array parameters. - [`mskunaryAddonDispatch( addon, fallback )`][@stdlib/strided/base/mskunary-addon-dispatch]: dispatch to a native add-on applying a unary function to an input strided array according to a mask strided array. - [`mskunaryDtypeSignatures( dtypes1, dtypes2[, options] )`][@stdlib/strided/base/mskunary-dtype-signatures]: generate a list of masked unary interface signatures from strided array data types. - [`mskunarySignatureCallbacks( table, signatures )`][@stdlib/strided/base/mskunary-signature-callbacks]: assign callbacks to masked unary interfaces according to type promotion rules. - [`mskunary( arrays, shape, strides, fcn )`][@stdlib/strided/base/mskunary]: apply a unary callback to elements in a strided input array according to elements in a strided mask array and assign results to elements in a strided output array. - [`nullaryAddonDispatch( addon, fallback )`][@stdlib/strided/base/nullary-addon-dispatch]: dispatch to a native add-on applying a nullary function. - [`nullary( arrays, shape, strides, fcn )`][@stdlib/strided/base/nullary]: apply a nullary callback and assign results to elements in a strided output array. - [`offsetView( x, offset )`][@stdlib/strided/base/offset-view]: return a typed array view having the same data type as a provided input typed array and starting at a specified index offset. - [`quaternary( arrays, shape, strides, fcn )`][@stdlib/strided/base/quaternary]: apply a quaternary callback to strided input array elements and assign results to elements in a strided output array. - [`quinary( arrays, shape, strides, fcn )`][@stdlib/strided/base/quinary]: apply a quinary callback to strided input array elements and assign results to elements in a strided output array. - [`readDataView( N, view, strideView, out, strideOut, littleEndian )`][@stdlib/strided/base/read-dataview]: copy elements from an input strided `DataView` to elements in an output strided array. - [`reinterpretBoolean( x, offset )`][@stdlib/strided/base/reinterpret-boolean]: reinterpret a `BooleanArray` as a `Uint8Array`. - [`reinterpretComplex( x, offset )`][@stdlib/strided/base/reinterpret-complex]: reinterpret a complex-valued floating-point array as a real-valued floating-point array having the same precision. - [`reinterpretComplex128( x, offset )`][@stdlib/strided/base/reinterpret-complex128]: reinterpret a `Complex128Array` as a `Float64Array`. - [`reinterpretComplex64( x, offset )`][@stdlib/strided/base/reinterpret-complex64]: reinterpret a `Complex64Array` as a `Float32Array`. - [`smap( N, x, strideX, y, strideY, fcn )`][@stdlib/strided/base/smap]: apply a unary function to a single-precision floating-point strided input array and assign results to a single-precision floating-point strided output array. - [`smap2( N, x, strideX, y, strideY, z, strideZ, fcn )`][@stdlib/strided/base/smap2]: apply a binary function to single-precision floating-point strided input arrays and assign results to a single-precision floating-point strided output array. - [`smskmap( N, x, strideX, mask, strideMask, y, strideY, fcn )`][@stdlib/strided/base/smskmap]: apply a unary function to a single-precision floating-point strided input array according to a strided mask array and assign results to a single-precision floating-point strided output array. - [`smskmap2( N, x, strideX, y, strideY, mask, strideMask, z, strideZ, fcn )`][@stdlib/strided/base/smskmap2]: apply a binary function to single-precision floating-point strided input arrays according to a strided mask array and assign results to a single-precision floating-point strided output array. - [`stride2offset( N, stride )`][@stdlib/strided/base/stride2offset]: determine the index offset which specifies the location of the first indexed value in a strided array. - [`strided2object( N, x, stride, offset )`][@stdlib/strided/base/strided2object]: convert a strided array and associated metadata to an object likely to have the same "shape". - [`ternary( arrays, shape, strides, fcn )`][@stdlib/strided/base/ternary]: apply a ternary callback to strided input array elements and assign results to elements in a strided output array. - [`unaryAddonDispatch( addon, fallback )`][@stdlib/strided/base/unary-addon-dispatch]: dispatch to a native add-on applying a unary function to an input strided array. - [`unaryBy( arrays, shape, strides, fcn, clbk[, thisArg] )`][@stdlib/strided/base/unary-by]: apply a unary function to each element retrieved from a strided input array according to a callback function and assign results to a strided output array. - [`unaryDtypeSignatures( dtypes1, dtypes2[, options] )`][@stdlib/strided/base/unary-dtype-signatures]: generate a list of unary interface signatures from strided array data types. - [`unarySignatureCallbacks( table, signatures )`][@stdlib/strided/base/unary-signature-callbacks]: assign callbacks to unary interfaces according to type promotion rules. - [`unary( arrays, shape, strides, fcn )`][@stdlib/strided/base/unary]: apply a unary callback to elements in a strided input array and assign results to elements in a strided output array. - [`writeDataView( N, x, strideX, view, strideView, littleEndian )`][@stdlib/strided/base/write-dataview]: copy elements from an input strided array to elements in a strided `DataView`. - [`zmap( N, x, strideX, y, strideY, fcn )`][@stdlib/strided/base/zmap]: apply a unary function to a double-precision floating-point strided input array and assign results to a double-precision floating-point strided output array.
## Examples ```javascript var objectKeys = require( '@stdlib/utils-keys' ); var ns = require( '@stdlib/strided-base' ); console.log( objectKeys( ns ) ); ```
* * * ## 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: 19
Last Year
  • Push event: 19

Committers

Last synced: 8 months ago

All Time
  • Total Commits: 85
  • Total Committers: 1
  • Avg Commits per committer: 85.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 13
  • Committers: 1
  • Avg Commits per committer: 13.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
stdlib-bot n****y@s****o 85
Committer Domains (Top 20 + Academic)

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 3 last-month
  • Total dependent packages: 2
  • Total dependent repositories: 0
  • Total versions: 11
  • Total maintainers: 4
npmjs.org: @stdlib/strided-base

Base strided.

  • Homepage: https://stdlib.io
  • License: Apache-2.0
  • Latest release: 0.3.0
    published over 1 year ago
  • Versions: 11
  • Dependent Packages: 2
  • Dependent Repositories: 0
  • Downloads: 3 Last month
Rankings
Dependent packages count: 9.5%
Stargazers count: 16.8%
Forks count: 17.4%
Average: 19.3%
Dependent repos count: 25.3%
Downloads: 27.7%
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 v1 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 v1 composite
  • act10ns/slack v1 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 v1 composite
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
.github/workflows/test_bundles.yml actions
  • act10ns/slack v1 composite
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
  • denoland/setup-deno v1 composite
.github/workflows/test_coverage.yml actions
  • act10ns/slack v1 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 v1 composite
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
package.json npm
  • @stdlib/array-buffer ^0.0.x development
  • @stdlib/array-complex128 ^0.0.x development
  • @stdlib/array-complex64 ^0.0.x development
  • @stdlib/array-filled ^0.0.x development
  • @stdlib/array-filled-by ^0.0.x development
  • @stdlib/array-float32 ^0.0.x development
  • @stdlib/array-float64 ^0.0.x development
  • @stdlib/array-uint8 ^0.0.x development
  • @stdlib/assert-has-own-property ^0.0.x development
  • @stdlib/assert-is-array ^0.0.x development
  • @stdlib/assert-is-browser ^0.0.x development
  • @stdlib/assert-is-complex128 ^0.0.x development
  • @stdlib/assert-is-complex64 ^0.0.x development
  • @stdlib/assert-is-complex64array ^0.0.x development
  • @stdlib/assert-is-float32array ^0.0.x development
  • @stdlib/assert-is-float64array ^0.0.x development
  • @stdlib/assert-is-function ^0.0.x development
  • @stdlib/assert-is-function-array ^0.0.x development
  • @stdlib/assert-is-integer ^0.0.x development
  • @stdlib/assert-is-integer-array ^0.0.x development
  • @stdlib/assert-is-nonnegative-integer ^0.0.x development
  • @stdlib/assert-is-string ^0.0.x development
  • @stdlib/assert-is-string-array ^0.0.x development
  • @stdlib/assert-is-typed-array ^0.0.x development
  • @stdlib/assert-is-typed-array-like ^0.0.x development
  • @stdlib/assert-is-uint8array ^0.0.x development
  • @stdlib/bench ^0.0.x development
  • @stdlib/complex-base-wrap-function ^0.0.x development
  • @stdlib/complex-float32 ^0.0.x development
  • @stdlib/complex-float64 ^0.0.x development
  • @stdlib/complex-imag ^0.0.x development
  • @stdlib/complex-real ^0.0.x development
  • @stdlib/fs-read-dir ^0.0.x development
  • @stdlib/fs-read-file ^0.0.x development
  • @stdlib/fs-read-json ^0.0.x development
  • @stdlib/fs-unlink ^0.0.x development
  • @stdlib/fs-write-file ^0.0.x development
  • @stdlib/math-base-assert-is-nan ^0.0.x development
  • @stdlib/math-base-assert-is-nanf ^0.0.x development
  • @stdlib/math-base-ops-add ^0.0.x development
  • @stdlib/math-base-ops-addf ^0.0.x development
  • @stdlib/math-base-ops-cadd ^0.0.x development
  • @stdlib/math-base-ops-caddf ^0.0.x development
  • @stdlib/math-base-special-abs ^0.0.x development
  • @stdlib/math-base-special-absf ^0.0.x development
  • @stdlib/math-base-special-cidentity ^0.0.x development
  • @stdlib/math-base-special-cidentityf ^0.0.x development
  • @stdlib/math-base-special-floor ^0.0.x development
  • @stdlib/math-base-special-identity ^0.0.x development
  • @stdlib/math-base-special-identityf ^0.0.x development
  • @stdlib/math-base-special-pow ^0.0.x development
  • @stdlib/math-base-special-round ^0.0.x development
  • @stdlib/ndarray-base-bytes-per-element ^0.0.x development
  • @stdlib/ndarray-base-char2dtype ^0.0.x development
  • @stdlib/ndarray-base-dtype-char ^0.0.x development
  • @stdlib/ndarray-base-dtype-desc ^0.0.x development
  • @stdlib/ndarray-base-dtype2c ^0.0.x development
  • @stdlib/ndarray-base-dtypes2signatures ^0.0.x development
  • @stdlib/ndarray-promotion-rules ^0.0.x development
  • @stdlib/ndarray-safe-casts ^0.0.x development
  • @stdlib/random-base-bernoulli ^0.0.x development
  • @stdlib/random-base-discrete-uniform ^0.0.x development
  • @stdlib/random-base-randu ^0.0.x development
  • @stdlib/random-base-uniform ^0.0.x development
  • @stdlib/strided-dtypes ^0.0.x development
  • @stdlib/string-format ^0.0.x development
  • @stdlib/string-replace ^0.0.x development
  • @stdlib/string-substring-after ^0.0.x development
  • @stdlib/string-substring-before ^0.0.x development
  • @stdlib/string-uppercase ^0.0.x development
  • @stdlib/utils-constant-function ^0.0.x development
  • @stdlib/utils-define-nonenumerable-read-only-accessor ^0.0.x development
  • @stdlib/utils-define-nonenumerable-read-only-property ^0.0.x development
  • @stdlib/utils-keys ^0.0.x development
  • @stdlib/utils-noop ^0.0.x development
  • @stdlib/utils-object-inverse ^0.0.x development
  • istanbul ^0.4.1 development
  • tap-spec 5.x.x development
  • tape git+https://github.com/kgryte/tape.git#fix/globby development
  • @stdlib/strided-base-binary ^0.0.x
  • @stdlib/strided-base-binary-addon-dispatch ^0.0.x
  • @stdlib/strided-base-binary-dtype-signatures ^0.0.x
  • @stdlib/strided-base-binary-signature-callbacks ^0.0.x
  • @stdlib/strided-base-cmap ^0.0.x
  • @stdlib/strided-base-dmap ^0.0.x
  • @stdlib/strided-base-dmap2 ^0.0.x
  • @stdlib/strided-base-dmskmap ^0.0.x
  • @stdlib/strided-base-dmskmap2 ^0.0.x
  • @stdlib/strided-base-dtype-enum2str ^0.0.x
  • @stdlib/strided-base-dtype-resolve-enum ^0.0.x
  • @stdlib/strided-base-dtype-resolve-str ^0.0.x
  • @stdlib/strided-base-dtype-str2enum ^0.0.x
  • @stdlib/strided-base-map-by ^0.0.x
  • @stdlib/strided-base-map-by2 ^0.0.x
  • @stdlib/strided-base-max-view-buffer-index ^0.0.x
  • @stdlib/strided-base-meta-data-props ^0.0.x
  • @stdlib/strided-base-min-view-buffer-index ^0.0.x
  • @stdlib/strided-base-mskunary ^0.0.x
  • @stdlib/strided-base-nullary ^0.0.x
  • @stdlib/strided-base-offset-view ^0.0.x
  • @stdlib/strided-base-quaternary ^0.0.x
  • @stdlib/strided-base-quinary ^0.0.x
  • @stdlib/strided-base-reinterpret-complex128 ^0.0.x
  • @stdlib/strided-base-reinterpret-complex64 ^0.0.x
  • @stdlib/strided-base-smap ^0.0.x
  • @stdlib/strided-base-smap2 ^0.0.x
  • @stdlib/strided-base-smskmap ^0.0.x
  • @stdlib/strided-base-smskmap2 ^0.0.x
  • @stdlib/strided-base-ternary ^0.0.x
  • @stdlib/strided-base-unary ^0.0.x
  • @stdlib/strided-base-unary-addon-dispatch ^0.0.x
  • @stdlib/strided-base-zmap ^0.0.x
  • @stdlib/utils-define-read-only-property ^0.0.x