public void SolveTest1()
{
float[][] value =
{
new float[] { 2, 3, 0 },
new float[] { -1, 2, 1 },
new float[] { 0, -1, 3 }
};
float[] rhs = { 5, 0, 1 };
float[] expected =
{
1.6522f,
0.5652f,
0.5217f,
};
JaggedLuDecompositionF target = new JaggedLuDecompositionF(value);
float[] actual = target.Solve(rhs);
Assert.IsTrue(Matrix.IsEqual(expected, actual, 0.001f));
}