/// <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> public override bool Equals(object obj) { var o = obj as SuperArray; if (o == null) { return(false); } return (Object.ReferenceEquals(this.storage, o.storage) && this.storageOffset == o.storageOffset && ArrayResultBuilder.ArrayEqual(this.shape, o.shape) && ArrayResultBuilder.ArrayEqual(this.strides, o.strides)); }
/// <summary> /// Determines whether [is same size as] [the specified other]. /// </summary> /// <param name="other">The other.</param> /// <returns><c>true</c> if [is same size as] [the specified other]; otherwise, <c>false</c>.</returns> public bool IsSameSizeAs(SuperArray other) { return(ArrayResultBuilder.ArrayEqual(this.shape, other.shape)); }