Beispiel #1
0
        public void FProductWithTransposed_UseMatrix()
        {
            var res = new Common.Float.Matrix(DEFAULT_SIZE);

            matFA.ProductWithTransposed_UseMatrix(matFB, res);

            AssertArrayEqual(expectedFRes.array, res.array, FLOAT_PRECISION);
        }
Beispiel #2
0
        public void FProductWithTransposed_Unsafe()
        {
            var res = new Common.Float.Matrix(DEFAULT_SIZE);

            matFA.ProductWithTransposed_Unsafe(matFB, res);

            AssertArrayEqual(expectedFRes.array, res.array);
        }
Beispiel #3
0
        public UnitTest()
        {
            var random = new Random(0);

            matA        = Matrix.CreateRandomMatrix(random, DEFAULT_SIZE);
            matB        = Matrix.CreateRandomMatrix(random, DEFAULT_SIZE);
            expectedRes = new Matrix(DEFAULT_SIZE);

            matA.ProductWithTransposed(matB, expectedRes);

            matFA        = Common.Float.Matrix.CreateRandomMatrix(random, DEFAULT_SIZE);
            matFB        = Common.Float.Matrix.CreateRandomMatrix(random, DEFAULT_SIZE);
            expectedFRes = new Common.Float.Matrix(DEFAULT_SIZE);

            matFA.ProductWithTransposed(matFB, expectedFRes);
        }