numerics
Loading...
Searching...
No Matches
expv.cpp File Reference

Implementation of Krylov-Padé matrix exponential-vector product. More...

#include "linalg/expv/expv.hpp"
#include "core/matrix.hpp"
#include "linalg/factorization/lu.hpp"
#include "core/vector.hpp"
#include <cmath>
#include <algorithm>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  num
 

Functions

Vector num::expv (real t, const MatVecFn &matvec, idx n, const Vector &v, int m_max=30, real tol=1e-8)
 Compute exp(t*A)*v via Krylov-Padé approximation (matrix-free)
 
Vector num::expv (real t, const SparseMatrix &A, const Vector &v, int m_max=30, real tol=1e-8)
 Compute exp(t*A)*v via Krylov-Padé approximation (sparse matrix)
 

Detailed Description

Implementation of Krylov-Padé matrix exponential-vector product.

Definition in file expv.cpp.