code: function inner(A, B) {
      if (A.shape.length !== 1) {
          throw new Error('A is not a 1D array');
      }
      if (B.shape.length !== 1) {
          throw new Error('B is not a 1D array');
      }
      if (A.data.length > B.data.length) {
          throw new Error("A.data.length should be <= B.data.length");
      }
      var dot = 0.0;
      for (var i = 0; i < A.data.length; i++) {
          dot += A.data[i] * B.data[i];
      }
      return dot;
  }
docs: Computes inner product of two 1D vectors (same as dot product).
  Both inputs are supposed to be 1 dimensional arrays of same length.
  If they are not same length, A.data.length must be <= B.data.length
  Only first A.data.length elements of array B are used in case it's
  longer than A
  @param A 1D Vector
  @param B 1D Vector