public void IsEqualTest2()
{
double[,] a =
{
{ 0.2, 0.1, 0.0 },
{ 0.2, -0.5, Double.NaN },
{ 0.2, -0.1, Double.NegativeInfinity },
};
double[,] b =
{
{ 0.23, 0.1, 0.0 },
{ 0.21, -0.5, Double.NaN },
{ 0.19, -0.11, Double.NegativeInfinity },
};
double threshold = 0.03;
bool expected = true;
bool actual = Matrix.IsEqual(a, b, atol: threshold);
Assert.AreEqual(expected, actual);
}