public void FProductWithTransposed_UseMatrix() { var res = new Common.Float.Matrix(DEFAULT_SIZE); matFA.ProductWithTransposed_UseMatrix(matFB, res); AssertArrayEqual(expectedFRes.array, res.array, FLOAT_PRECISION); }
public void FProductWithTransposed_Unsafe() { var res = new Common.Float.Matrix(DEFAULT_SIZE); matFA.ProductWithTransposed_Unsafe(matFB, res); AssertArrayEqual(expectedFRes.array, res.array); }
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); }