Tensor<T>.Inequality Operator
Definition
Namespace: Numerics.NET.Tensors
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.3
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.3
Overload List
Inequality( | Compares a scalar and a tensor for inequality.. |
Inequality( | Compares a tensor and a scalar for inequality.. |
Inequality( | Determines whether two tensors are not equal. |
Inequality(T, Tensor<T>) Operator
Compares a scalar and a tensor for inequality..
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
Argument | right is null. |
Inequality(Tensor<T>, T) Operator
Compares a tensor and a scalar for inequality..
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
Argument | left is null. |
Inequality(Tensor<T>, Tensor<T>) Operator
Determines whether two tensors are not equal.
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
Booleantrue if left and right have a different shape or different elements; otherwise false.