numerics 0.1.0
Loading...
Searching...
No Matches
subspace.hpp File Reference

Subspace construction and orthogonalization kernels. More...

#include "core/matrix.hpp"
#include "core/types.hpp"
#include "core/vector.hpp"
#include <vector>

Go to the source code of this file.

Namespaces

namespace  num
 
namespace  num::kernel
 
namespace  num::kernel::subspace
 

Functions

real num::kernel::subspace::mgs_orthogonalize (const std::vector< Vector > &basis, Vector &v, std::vector< real > &h, idx k)
 Modified Gram-Schmidt against basis[0..k-1].
 
real num::kernel::subspace::mgs_orthogonalize (const Matrix &basis, idx k, Vector &v)
 Modified Gram-Schmidt against columns 0..k-1 of a row-major matrix.
 
template<class Op >
requires requires(const Op& A, const Vector& x, Vector& y) { A.apply(x, y); }
real num::kernel::subspace::arnoldi_step (const Op &A, std::vector< Vector > &basis, std::vector< real > &h, idx k, Vector &scratch, real breakdown_tol=real(1e-14))
 One Arnoldi step: expand the orthonormal basis by one vector.
 

Detailed Description

Subspace construction and orthogonalization kernels.

Definition in file subspace.hpp.