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.

Built With

Share this project:

Updates