MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
pow.hpp File Reference
#include <cmath>
#include <mtl/concepts/vector.hpp>
#include <mtl/concepts/matrix.hpp>
#include <mtl/concepts/scalar.hpp>
#include <mtl/vec/dense_vector.hpp>
#include <mtl/mat/dense2D.hpp>

Namespaces

namespace  mtl

Functions

template<Vector V, Scalar S>
auto mtl::pow (const V &v, const S &exponent)
 Element-wise pow for vectors: pow(v[i], exponent).
template<Matrix M, Scalar S>
auto mtl::pow (const M &m, const S &exponent)
 Element-wise pow for matrices: pow(m[r][c], exponent).