public void Test_InfinityNorm_Vector() { double[] vector = { -1, -7 }; double expected = 7; double actual = ArrayMatrixUtils.InfinityNorm(vector); Assert.That(actual, Is.EqualTo(expected)); }
public void Test_InfinityNorm_Matrix() { double[,] matrix = { { +1, -7 }, { -2, -3 } }; double expected = 8; double actual = ArrayMatrixUtils.InfinityNorm(matrix); Assert.That(actual, Is.EqualTo(expected)); }