expj#
Complex exponential
-
Op matx::expj(Op t)#
Compute e^(jx) of each value in a tensor where j is sqrt(-1).
- Parameters:
t – Tensor or operator input
Examples#
// TestType is float, double, bf16, etc.
tiv0() = static_cast<TestType>(M_PI/2.0);
(tov0 = expj(tiv0)).run(exec);
// tov0 is complex with value 0 + 1j