Friday, 6 September 2013

Vectorized power function in armadillo

Vectorized power function in armadillo

The armadillo library has a function pow(A, p) to raise all elements of
vector/matrix A to the power p. Is there a function in armadillo, std, or
elsewhere that performs element-wise power? That is, raises each element
in vector A to the corresponding power in vector p?

No comments:

Post a Comment