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

Classes

struct  mtl::itl::eigenpair< T >
 A single computed eigenpair. More...

Namespaces

namespace  mtl
namespace  mtl::itl

Functions

template<typename Accumulator = void, typename LinearOp, typename T>
eigenpair< T > mtl::itl::power_iteration (const LinearOp &A, vec::dense_vector< T > v0, int max_iter=1000, std::type_identity_t< T > tol=T(1e-10))
 Power iteration for the eigenvalue of largest magnitude (assumed real and dominant, as for symmetric / SPD operators or any operator with a real dominant eigenvalue).