fmod#
Division remainder
-
Op matx::fmod(Op t, Op t2)#
Modulo two operators or tensors
- Parameters:
t – LHS tensor or operator input
t2 – RHS second tensor or operator modulus
Examples#
auto tiv0 = make_tensor<TestType>({});
auto tiv1 = make_tensor<TestType>({});
auto tov0 = make_tensor<TestType>({});
tiv0() = (TestType)5.0;
tiv1() = (TestType)3.1;
(tov0 = fmod(tiv0, tiv1)).run(exec);