classPii::AbsPow
#include <PiiMathFunctional.h>
An adaptable binary function that raises the absolute value of its first argument to the power of the second argument.
Inherits Pii::BinaryFunction< T, U, R >
Description
PiiMatrix<double> mat(...); // Initialize as you want // For each element, set m(i,j) = |m(i,j)|^n mat.binaryOp(Pii::AbsPow<double>(), n);
Public member functions
|
R
|
(
|
Function details
-
R operator()
(- const T & value
- const U & power
[inline]
Add a note
Not a single note added yet. Be the first, add yours.