array-base-symmetric-banded

Symmetric banded array utilities.

https://github.com/eltrex22/array-base-symmetric-banded

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.6%) to scientific vocabulary

Keywords

alloc allocate array banded fill generic javascript namespace nested storage strided structure utilities utils
Last synced: 6 months ago · JSON representation ·

Repository

Symmetric banded array utilities.

Basic Info
  • Host: GitHub
  • Owner: elTREX22
  • License: apache-2.0
  • Language: JavaScript
  • Default Branch: main
  • Size: 43.9 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
alloc allocate array banded fill generic javascript namespace nested storage strided structure utilities utils
Created 10 months ago · Last pushed 6 months ago
Metadata Files
Readme Changelog Contributing License Code of conduct Citation Security

README.md

Array Base Symmetric Banded 🌟

Welcome to the Array Base Symmetric Banded repository! This project provides utilities for working with symmetric banded arrays in JavaScript. These utilities simplify matrix operations, making it easier to manage and manipulate data structures in your applications.

Table of Contents

Features

  • Compact Storage: Efficiently store symmetric banded matrices.
  • Utility Functions: A range of functions to manipulate and operate on arrays.
  • Node.js Compatibility: Works seamlessly in Node.js environments.
  • Namespace Support: Organize your utilities under a clear namespace.
  • Easy Integration: Simple to integrate into existing projects.

Installation

To install the package, use npm:

bash npm install array-base-symmetric-banded

Usage

To use the utilities, import the package into your JavaScript file:

```javascript const symmetricBanded = require('array-base-symmetric-banded');

// Example of creating a symmetric banded array const matrix = symmetricBanded.create(5, 2); // Create a 5x5 matrix with a bandwidth of 2 ```

API Documentation

create(rows, bandwidth)

Creates a symmetric banded array.

  • Parameters:

    • rows: Number of rows in the matrix.
    • bandwidth: Number of non-zero diagonals.
  • Returns: A symmetric banded array.

get(matrix, row, col)

Retrieves the value at the specified position.

  • Parameters:

    • matrix: The symmetric banded array.
    • row: Row index.
    • col: Column index.
  • Returns: The value at the specified position.

set(matrix, row, col, value)

Sets the value at the specified position.

  • Parameters:
    • matrix: The symmetric banded array.
    • row: Row index.
    • col: Column index.
    • value: The value to set.

Examples

Creating a Symmetric Banded Matrix

javascript const matrix = symmetricBanded.create(5, 2); console.log(matrix);

Setting Values

javascript symmetricBanded.set(matrix, 0, 1, 10); console.log(symmetricBanded.get(matrix, 0, 1)); // Outputs: 10

Getting Values

javascript const value = symmetricBanded.get(matrix, 0, 1); console.log(value);

Contributing

We welcome contributions! If you have suggestions or improvements, please fork the repository and submit a pull request. Ensure your code follows the existing style and includes tests.

License

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

Releases

For the latest releases, visit our Releases page. You can download the latest version and execute it in your projects.

Releases

Additional Resources

For more information, check the Releases section to find detailed notes on updates and changes.

Conclusion

Thank you for checking out the Array Base Symmetric Banded repository. We hope you find these utilities helpful for your projects. Happy coding!

Owner

  • Login: elTREX22
  • 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

Dependencies

package.json npm
  • @stdlib/array-base-zeros2d ^0.2.2 development
  • @stdlib/assert-is-array-array ^0.2.2 development
  • @stdlib/bench-harness ^0.2.2 development
  • @stdlib/math-base-special-fast-max ^0.3.0 development
  • @stdlib/math-base-special-fast-min ^0.3.0 development
  • @stdlib/math-base-special-floor ^0.2.3 development
  • @stdlib/math-base-special-pow ^0.3.0 development
  • @stdlib/math-base-special-sqrt ^0.2.2 development
  • @stdlib/string-format ^0.2.2 development
  • @stdlib/utils-constant-function ^0.2.2 development
  • @stdlib/utils-keys ^0.2.2 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-symmetric-banded-filled2d-by github:stdlib-js/array-base-symmetric-banded-filled2d-by#main
  • @stdlib/array-base-symmetric-banded-to-compact github:stdlib-js/array-base-symmetric-banded-to-compact#main
  • @stdlib/utils-define-read-only-property ^0.2.2