public void GetDeterminantNotSquare() { ComplexDoubleMatrix a = new ComplexDoubleMatrix(3, 2); a[0, 0] = new Complex(2); a[0, 1] = new Complex(4); a[1, 0] = new Complex(3); a[1, 1] = new Complex(7); a[2, 0] = new Complex(5); a[2, 1] = new Complex(5); Complex b = a.GetDeterminant(); }
public void GetDeterminant() { ComplexDoubleMatrix a = new ComplexDoubleMatrix(2, 2); a[0, 0] = new Complex(2); a[0, 1] = new Complex(4); a[1, 0] = new Complex(3); a[1, 1] = new Complex(7); Complex b = a.GetDeterminant(); Complex test = new Complex(2); Assert.AreEqual(b.Real, test.Real, 2E-15); Assert.AreEqual(b.Imag, test.Imag, 2E-15); }