Example #1
0
        private static void TestDdot()
        {
            Skip.IfNot(TestSettings.TestMkl, TestSettings.MessageWhenSkippingMKL);

            int n = 5;

            double[] a           = { 1, 2, 3, 4, 5 };
            double[] b           = { 10, 20, 30, 40, 50 };
            double   dotExpected = MatrixOperations.DotProduct(a, b);
            double   dotComputed = CBlas.Ddot(n, ref a[0], 1, ref b[0], 1);

            comparer.AssertEqual(dotExpected, dotComputed);
        }