Encog.MathUtil.Matrices.Matrix.Equals C# (CSharp) Method

Equals() public method

Determine if this matrix is equal to another. Use a precision of 10 decimal places.
public Equals ( Object other ) : bool
other Object The other matrix to compare.
return bool
        public override bool Equals(Object other)
        {
            if (other is Matrix)
                return equals((Matrix) other, 10);
            else
                return false;
        }

Usage Example

 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));
 }
All Usage Examples Of Encog.MathUtil.Matrices.Matrix::Equals