Browse Source

tests: updated matrix multiple tests so that they pass

la-knuth
Marcus Cuda 17 years ago
parent
commit
432ef04018
  1. 4
      src/UnitTests/LinearAlgebraTests/Double/MatrixTests.Arithmetic.cs

4
src/UnitTests/LinearAlgebraTests/Double/MatrixTests.Arithmetic.cs

@ -421,7 +421,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Double
{
for (int j = 0; j < C.ColumnCount; j++)
{
Assert.AreEqual(A.GetRow(i) * B.GetColumn(j), C[i, j]);
AssertHelpers.AlmostEqual(A.GetRow(i) * B.GetColumn(j), C[i, j], 15);
}
}
}
@ -474,7 +474,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Double
{
for (int j = 0; j < C.ColumnCount; j++)
{
Assert.AreEqual(A.GetRow(i) * B.GetColumn(j), C[i, j]);
AssertHelpers.AlmostEqual(A.GetRow(i) * B.GetColumn(j), C[i, j], 15);
}
}
}

Loading…
Cancel
Save