Backends/SiaNet.Backend.TensorSharp/NDArray.cs
/// <summary>
/// Determines whether the specified <see cref="System.Object" /> is equal to this instance.
/// </summary>
/// <param name="obj">The object to compare with the current object.</param>
/// <returns><c>true</c> if the specified <see cref="System.Object" /> is equal to this instance; otherwise, <c>false</c>.</returns>
Determines whether the specified  is equal to this instance.
Determines whether the specified is equal to this instance .
public override bool Equals(object obj)
        {
            var o = obj as NDArray;
            if (o == null) return false;
            return
                Object.ReferenceEquals(this.storage, o.storage) &&
                this.storageOffset == o.storageOffset &&
                TensorResultBuilder.ArrayEqual(this.shape, o.shape) &&
                TensorResultBuilder.ArrayEqual(this.strides, o.strides);
        }
public override bool Equals ( object obj ) { var o = obj as NDArray ; if ( o == null ) return false ; return Object . ReferenceEquals ( this . storage , o . storage ) && this . storageOffset == o . storageOffset && TensorResultBuilder . ArrayEqual ( this . shape , o . shape ) && TensorResultBuilder . ArrayEqual ( this . strides , o . strides ) ; }
Determines whether the specified  is equal to this instance.
Determines whether the specified is equal to this instance .
true is equal to this instance; otherwise, false
true is equal to this instance ; otherwise false
obj
object
The object to compare with the current object.
The object to compare with the current object .