MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
lanczos.hpp File Reference
#include <algorithm>
#include <cmath>
#include <type_traits>
#include <limits>
#include <vector>
#include <mtl/vec/dense_vector.hpp>
#include <mtl/mat/dense2D.hpp>
#include <mtl/operation/dot.hpp>
#include <mtl/operation/norms.hpp>
#include <mtl/operation/eigenvalue_symmetric.hpp>
#include <mtl/itl/eigen/eigen_common.hpp>
#include <mtl/math/accumulator_traits.hpp>

Namespaces

namespace  mtl
namespace  mtl::itl

Functions

template<typename Accumulator = void, typename LinearOp, typename T>
ritz_pairs< T > mtl::itl::lanczos (const LinearOp &A, vec::dense_vector< T > v0, std::size_t k, eigen_which which=eigen_which::largest_algebraic, std::size_t subspace=0, std::type_identity_t< T > tol=T(1e-8))
 Compute k extremal eigenpairs of a symmetric operator A by the Lanczos method.