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

Namespaces

namespace  mtl

Functions

template<Vector V>
auto mtl::abs (const V &v)
 Element-wise abs for vectors -> dense_vector<magnitude_t<T>>.
template<Matrix M>
auto mtl::abs (const M &m)
 Element-wise abs for matrices -> dense2D<magnitude_t<T>>.