Blas { public static Double dot(Vector x, Vector y) { return x.dot(y); }  static void axpy(Double a, Vector x, Vector y); static Double dot(Vector x, Vector y); void copy(Vector x, Vector y); static void scal(Double a, Vector x); static void spr(Double alpha, DenseVector v, DenseVector u); static void spr(Double alpha, SparseVector v, DenseVector u); static void syr(Double alpha, SparseVector x, DenseMatrix a); static void gemm(double alpha, Matrix a, Matrix b, double beta, Matrix c); static void gemv(double alpha, Matrix a, Vector x, double beta, Vector y); static void checkCardinality(Matrix a, Vector v);  }
@Test public void testDot() { DenseVector v1 = new DenseVector(new double[] {1.0, 1.0}); DenseVector v2 = new DenseVector(new double[] {2.0, 2.0}); Assert.assertEquals(Blas.dot(v1, v2), v1.dot(v2), 0.0); }