MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
negate.hpp File Reference

Namespaces

namespace  mtl

Functions

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