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

Namespaces

namespace  mtl
namespace  mtl::generators

Functions

template<typename T = double>
auto mtl::generators::kahan (std::size_t n, T theta=T(1.2), T pert=T(25))
 Kahan matrix, as MATLAB's gallery('kahan', n, theta, pert):