MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
moler.hpp File Reference
#include <algorithm>
#include <cstddef>
#include <mtl/mat/dense2D.hpp>

Namespaces

namespace  mtl
namespace  mtl::generators

Functions

template<typename T = double>
auto mtl::generators::moler (std::size_t n, T alpha=T(-1))
 Moler matrix: M = L*L^T where L(i,i) = 1, L(i,j) = alpha for i > j.