|
MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
|
#include <algorithm>#include <type_traits>#include <mtl/concepts/matrix.hpp>#include <mtl/math/identity.hpp>#include <mtl/math/accumulator_traits.hpp>Namespaces | |
| namespace | mtl |
Functions | |
| template<typename Accumulator = void, Matrix M> | |
| auto | mtl::trace (const M &A) |
| trace(A) = sum(A(i,i)) for i = 0..min(nrows,ncols)-1 | |