public void InverseTest()
{
float[][] value =
{
new float[] { 2, 3, 0 },
new float[] { -1, 2, 1 },
new float[] { 0, -1, 3 }
};
float[][] expectedInverse =
{
new float[] { 0.3043f, -0.3913f, 0.1304f },
new float[] { 0.1304f, 0.2609f, -0.0870f },
new float[] { 0.0435f, 0.0870f, 0.3043f },
};
JaggedLuDecompositionF target = new JaggedLuDecompositionF(value);
float[][] actualInverse = target.Inverse();
Assert.IsTrue(Matrix.IsEqual(expectedInverse, actualInverse, 0.001f));
}