Tensor<T>.Inequality Operator

Definition

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

Overload List

Inequality(T, Tensor<T>) Compares a scalar and a tensor for inequality..
Inequality(Tensor<T>, T) Compares a tensor and a scalar for inequality..
Inequality(Tensor<T>, Tensor<T>) Determines whether two tensors are not equal.

Inequality(T, Tensor<T>) Operator

Compares a scalar and a tensor for inequality..
C#
public static Tensor<bool> operator !=(
	T left,
	Tensor<T> right
)

Parameters

left  T
A scalar that serves as the left operand.
right  Tensor<T>
A tensor that serves as the right operand.

Return Value

Tensor<Boolean>
A tensor of the same shape as right whose elements are equal to the of left and the corresponding elements of right.

Exceptions

ArgumentNullException

right is null.

Inequality(Tensor<T>, T) Operator

Compares a tensor and a scalar for inequality..
C#
public static Tensor<bool> operator !=(
	Tensor<T> left,
	T right
)

Parameters

left  Tensor<T>
A tensor that serves as the left operand.
right  T
A scalar that serves as the right operand.

Return Value

Tensor<Boolean>
A tensor of the same shape as left whose elements are equal to the of the corresponding elements of left and right.

Exceptions

Inequality(Tensor<T>, Tensor<T>) Operator

Determines whether two tensors are not equal.
C#
public static bool operator !=(
	Tensor<T> left,
	Tensor<T> right
)

Parameters

left  Tensor<T>
The first tensor to compare, or null.
right  Tensor<T>
The second tensor to compare, or null.

Return Value

Boolean
true if left and right have a different shape or different elements; otherwise false.

See Also