public override bool Equals(Object other) { if (other is Matrix) return equals((Matrix) other, 10); else return false; }
public void Copy() { double[][] data = { new[] {1.0, 2.0}, new[] {3.0, 4.0} }; var source = new Matrix(data); var target = new Matrix(2, 2); MatrixMath.Copy(source, target); Assert.IsTrue(source.Equals(target)); }