Tensor<T>.Modulus Operator

Definition

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

Overload List

Modulus(T, Tensor<T>) Computes the remainder after dividing a scalar by a tensor.
Modulus(Tensor<T>, T) Computes the remainder after dividing a tensor by a scalar.
Modulus(Tensor<T>, Tensor<T>) Returns the remainder after dividing one tensor by another.

Modulus(T, Tensor<T>) Operator

Computes the remainder after dividing a scalar by a tensor.
C#
public static Tensor<T> 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<T>
A tensor of the same shape as right whose elements are equal to the modulus of left and the corresponding elements of right.

Exceptions

ArgumentNullException

right is null.

Modulus(Tensor<T>, T) Operator

Computes the remainder after dividing a tensor by a scalar.
C#
public static Tensor<T> 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<T>
A tensor of the same shape as left whose elements are equal to the modulus of the corresponding elements of left and right.

Exceptions

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

Returns the remainder after dividing one tensor by another.
C#
public static Tensor<T> operator %(
	Tensor<T> left,
	Tensor<T> right
)

Parameters

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

Return Value

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

Exceptions

ArgumentNullException

left is null.

-or-

right is null.

See Also