public void SpeedMatrixOp() { CSqMatrix s = new CSqMatrix(new Complex[, ] { { new Complex(1), new Complex(1e8), new Complex(1e17) }, { new Complex(1e-14), new Complex(2, 1), new Complex(1e54) }, { new Complex(1), new Complex(1e13), new Complex(1e17) } } ); CSqMatrix d = new CSqMatrix(s); d[1, 1] = 1e42; // Stopwatch t = new Stopwatch(); // t.Restart(); // for(int i = 0; i < 10000; i++) // { // s.FastAdd(d); //} // t.ElapsedMilliseconds.Show(); Stopwatch t = new Stopwatch(); t.Restart(); s /= 100000; d /= 100000; for (int i = 0; i < 10000; i++) { s.FastAdd(d); } s *= 100000; t.ElapsedMilliseconds.Show(); }