Element-wise flooring remainder of division. The sign of the result equals
the sign of rhs, matching base R's %% operator.
Arguments
- lhs, rhs
(
arrayish)
Left and right operand. Operands are promoted to a common data type. Scalars are broadcast to the shape of the other operand.
Value
arrayish
Has the same shape and the promoted common data type of the inputs.
See also
nv_remainder() for truncating remainder, prim_remainder() for
the underlying primitive.