dot-product-ndarray

Returns dot product of two 2D ndarrays

Usage no npm install needed!

<script type="module">
  import dotProductNdarray from 'https://cdn.skypack.dev/dot-product-ndarray';
</script>

README

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.