ndarray-vector-int32

Create a signed 32-bit integer vector (i.e., a one-dimensional ndarray).

https://github.com/adanje3620/ndarray-vector-int32

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 (16.6%) to scientific vocabulary

Keywords

constructor ctor data int32 javascript ndarray nodejs stdlib structure types vec vector
Last synced: 6 months ago · JSON representation ·

Repository

Create a signed 32-bit integer vector (i.e., a one-dimensional ndarray).

Basic Info
  • Host: GitHub
  • Owner: Adanje3620
  • License: apache-2.0
  • Language: JavaScript
  • Default Branch: main
  • Size: 50.8 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
constructor ctor data int32 javascript ndarray nodejs stdlib structure types vec vector
Created 9 months ago · Last pushed 6 months ago
Metadata Files
Readme Changelog Contributing License Code of conduct Citation Security

README.md

ndarray-vector-int32

Version License Build Status

Welcome to the ndarray-vector-int32 repository! This project focuses on creating a signed 32-bit integer vector, also known as a one-dimensional ndarray. This tool is useful for developers working with numerical data in JavaScript, especially in Node.js environments.

Table of Contents

Introduction

The ndarray-vector-int32 library provides a simple way to create and manipulate signed 32-bit integer vectors in JavaScript. This library is particularly useful for applications that require efficient numerical computations, such as data analysis, machine learning, and scientific computing.

Installation

To get started, you need to install the package via npm. Run the following command in your terminal:

bash npm install ndarray-vector-int32

Once installed, you can begin using the library in your Node.js applications.

Usage

To use the ndarray-vector-int32 library, you need to require it in your JavaScript file. Here's a basic example of how to create a signed 32-bit integer vector:

```javascript const Int32Vector = require('ndarray-vector-int32');

// Create a new vector const vector = new Int32Vector([1, 2, 3, 4, 5]);

console.log(vector); // Output: Int32Vector { data: [1, 2, 3, 4, 5] } ```

You can perform various operations on the vector, such as addition, subtraction, and more. Check the documentation for a complete list of available methods.

Features

  • Simple Constructor: Easily create a signed 32-bit integer vector with an array of numbers.
  • Efficient Memory Usage: Designed for performance, this library uses memory efficiently to handle large datasets.
  • Type Safety: Ensures that all elements in the vector are 32-bit signed integers.
  • Easy Integration: Works seamlessly with Node.js and other JavaScript environments.

Examples

Here are some examples of how to use the ndarray-vector-int32 library:

Creating a Vector

```javascript const Int32Vector = require('ndarray-vector-int32');

const vector = new Int32Vector([10, 20, 30]); console.log(vector); // Output: Int32Vector { data: [10, 20, 30] } ```

Accessing Elements

You can access elements in the vector using their index:

javascript console.log(vector[0]); // Output: 10 console.log(vector[1]); // Output: 20

Modifying Elements

You can modify elements in the vector as follows:

javascript vector[0] = 100; console.log(vector[0]); // Output: 100

Performing Operations

The library supports basic arithmetic operations:

```javascript const vector1 = new Int32Vector([1, 2, 3]); const vector2 = new Int32Vector([4, 5, 6]);

const result = vector1.add(vector2); console.log(result); // Output: Int32Vector { data: [5, 7, 9] } ```

Contributing

We welcome contributions to the ndarray-vector-int32 project! If you have ideas for new features or improvements, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature.
  3. Make your changes and commit them.
  4. Push your branch to your forked repository.
  5. Open a pull request.

Please ensure that your code adheres to the project's coding standards and includes appropriate tests.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Contact

For questions or suggestions, feel free to reach out:

Releases

You can find the latest releases and download the necessary files from the Releases section. Be sure to check this section for updates and new features!

Conclusion

The ndarray-vector-int32 library offers a straightforward solution for working with signed 32-bit integer vectors in JavaScript. With its simple API and efficient performance, it serves as a valuable tool for developers engaged in numerical computing.

Feel free to explore the library and contribute to its growth. Happy coding!

Owner

  • Login: Adanje3620
  • Kind: user

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: 395
  • Create event: 2
Last Year
  • Push event: 395
  • Create event: 2

Dependencies

package.json npm
  • @stdlib/array-buffer ^0.2.2 development
  • @stdlib/array-float64 ^0.2.2 development
  • @stdlib/array-int32 ^0.2.2 development
  • @stdlib/assert-is-equal-int32array github:stdlib-js/assert-is-equal-int32array#main development
  • @stdlib/assert-is-ndarray-like ^0.2.2 development
  • @stdlib/assert-is-ndarray-like-with-data-type github:stdlib-js/assert-is-ndarray-like-with-data-type#main development
  • @stdlib/bench-harness ^0.2.2 development
  • @stdlib/blas-ext-sum github:stdlib-js/blas-ext-sum#main development
  • @stdlib/buffer-from-array ^0.2.2 development
  • @stdlib/math-base-special-pow ^0.3.0 development
  • @stdlib/ndarray-base-assert-is-read-only ^0.2.2 development
  • @stdlib/ndarray-data-buffer ^0.2.2 development
  • @stdlib/ndarray-map github:stdlib-js/ndarray-map#main development
  • @stdlib/random-array-discrete-uniform ^0.2.1 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/ndarray-vector-ctor github:stdlib-js/ndarray-vector-ctor#main
  • @stdlib/types ^0.4.3