public void InvertMat() { CSqMatrix mat = new CSqMatrix(new Complex[, ] { { 11, 12, 4 }, { 0, 9, 30 }, { 40, 5, 3 } }); double n1 = (mat.Invert() * mat - SqMatrix.E(3)).CubeNorm; n1.Show(); double n2 = (mat.InvertSum * mat - SqMatrix.E(3)).CubeNorm; n2.Show(); Assert.IsTrue(n1 <= 1e-6 && n2 <= 1e-6); }