function dot (a, b) {
  return NdArray.new(a).dot(b);
}
Dot product of two arrays.

WARNING: supported products are:
 - matrix dot matrix
 - vector dot vector
 - matrix dot vector
 - vector dot matrix
@param {(Array|NdArray)} a
@param {(Array|NdArray)} b
@returns {NdArray}