Class ElementwisePow¶
Defined in File elementwise.hpp
Class Documentation¶
-
class ElementwisePow¶
The per-element kernel of
Result::pow:x -> x^efor a fixed rational exponente.The exponent is decoded once, at construction, so applying the kernel to each element costs no multiprecision arithmetic. An integer exponent is exact: repeated multiplication (by squaring), then the reciprocal for a negative exponent, so
0^-nisinfper IEEE and is not checked. Any other exponent goes throughstd::powwith the exponent converted todouble(the complex overload for complex elements).