public void GetMinorException1() { MatrixD m = new MatrixD(1, 1); m.GetMinor(1, 1); }
public void GetMinorException3() { MatrixD m = new MatrixD(4, 3); m.GetMinor(0, 3); }
public void GetMinor() { MatrixD m = new MatrixD(3, 4, rowMajor, MatrixOrder.RowMajor); Assert.AreEqual(new MatrixD(new double[,] { { 6, 7, 8 }, { 10, 11, 12 } }), m.GetMinor(0, 0)); Assert.AreEqual(new MatrixD(new double[,] { { 5, 7, 8 }, { 9, 11, 12 } }), m.GetMinor(0, 1)); Assert.AreEqual(new MatrixD(new double[,] { { 1, 2, 3 }, { 5, 6, 7 } }), m.GetMinor(2, 3)); Assert.AreEqual(new MatrixD(new double[,] { { 1, 3, 4 }, { 5, 7, 8 } }), m.GetMinor(2, 1)); }