dot-product-ndarray
v1.0.4
Published
Returns dot product of two 2D ndarrays
Downloads
1
Readme
dot-product-ndarray
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.