TensorLayout.Equals Method

Definition

Namespace: Numerics.NET.Tensors
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.0

Overload List

Equals(Object)Indicates whether this instance and a specified object are equal.
Equals(TensorLayout) Compares this layout to another layout.

Equals(Object)

Indicates whether this instance and a specified object are equal.
C#
public override bool Equals(
	Object? obj
)

Parameters

obj  Object
The object to compare with the current instance.

Return Value

Boolean
true if obj and this instance are the same type and represent the same value; otherwise, false.

Equals(TensorLayout)

Compares this layout to another layout.
C#
public bool Equals(
	TensorLayout other
)

Parameters

other  TensorLayout
The layout to compare this layout to.

Return Value

Boolean
true if this layout and other have the same rank and the same strides; otherwise false.

Implements

IEquatable<T>.Equals(T)

See Also