Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ndarray-hash

Package Overview
Dependencies
Maintainers
6
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ndarray-hash

Hash table backed sparse ndarray

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-53.85%
Maintainers
6
Weekly downloads
 
Created
Source

ndarray-hash

A sparse ndarray backed by a map (implemented using either Map or an object).

build status

Example

var ndhash = require("ndarray-hash")

//Create a gigantic sparse ndarray
var x = ndhash([10000, 10000])

x.set(100, 100, 1)

console.log(x.get(100, 1000))
console.log(x.get(100, 100))
Output
0
1

Install

Install using npm:

npm install ndarray-hash

API

require("ndarray-hash")(shape)

Creates an ndarray hash map with the given shape

  • shape is the shape of the resulting sparse ndarray

Returns A sparse hash table backed ndarray

License

(c) 2013 Mikola Lysenko. MIT License

Keywords

FAQs

Package last updated on 08 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc