Adding sypet to repo
[Benchmarks_CSolver.git] / sypet-non-incremental / benchmarks / math / 2 / TestSource.java
diff --git a/sypet-non-incremental/benchmarks/math/2/TestSource.java b/sypet-non-incremental/benchmarks/math/2/TestSource.java
new file mode 100644 (file)
index 0000000..4e4531d
--- /dev/null
@@ -0,0 +1,8 @@
+public static boolean test() throws Throwable {
+    com.opengamma.analytics.math.matrix.DoubleMatrix1D mat1 = new com.opengamma.analytics.math.matrix.DoubleMatrix1D(1, 1, 1);
+    com.opengamma.analytics.math.matrix.DoubleMatrix1D mat2 = new com.opengamma.analytics.math.matrix.DoubleMatrix1D(1, 2, 3);
+    if (Source.getInnerProduct(mat1, mat2) == 6)
+       return true;
+    else
+       return false;
+}
\ No newline at end of file