Tensor<T>.Equals Method

Definition

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

Overload List

Equals(Object)Determines whether the specified object is equal to the current object.
Equals(Tensor<T>)Indicates whether the current object is equal to another object of the same type.
Equals(Tensor<T>, IEqualityComparer)Determines whether an object is structurally equal to the current instance.

Equals(Object)

Determines whether the specified object is equal to the current object.
C#
public override bool Equals(
	Object? obj
)

Parameters

obj  Object
The object to compare with the current object.

Return Value

Boolean
true if the specified object is equal to the current object; otherwise, false.

Equals(Tensor<T>)

Indicates whether the current object is equal to another object of the same type.
C#
public bool Equals(
	Tensor<T>? other
)

Parameters

other  Tensor<T>
An object to compare with this object.

Return Value

Boolean
true if the current object is equal to the other parameter; otherwise, false.

Implements

IEquatable<T>.Equals(T)

Equals(Tensor<T>, IEqualityComparer)

Determines whether an object is structurally equal to the current instance.
C#
protected virtual bool Equals(
	Tensor<T>? other,
	IEqualityComparer comparer
)

Parameters

other  Tensor<T>
The object to compare with the current instance.
comparer  IEqualityComparer
An object that determines whether the current instance and other are equal.

Return Value

Boolean
true if the two objects are equal; otherwise, false.

See Also