dot-product-ndarray

1.0.4 • Public • Published

dot-product-ndarray

Build Status Given two 2D ndarrays, returns a 2D ndarray that is a dot product of the two.

Usage

var dotProduct = require('dot-product-ndarray');
 
var left = ndarray( [1,2,3,4,5,6], [3,2], [2,1] );
var right = ndarray( [1,2,3,4,5,6], [2,3], [3,1] );
 
dotProduct(left, right, function(err, data) {
  // do something with returned data
});

Limitations

2D only.

Package Sidebar

Install

npm i dot-product-ndarray

Weekly Downloads

1

Version

1.0.4

License

MIT

Last publish

Collaborators

  • dchem