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

Banded matrix storage and solvers. More...

#include "core/policy.hpp"
#include "core/types.hpp"
#include "core/vector.hpp"
#include <memory>

Go to the source code of this file.

Classes

class  num::BandedMatrix
 LAPACK-style band storage. More...
 
struct  num::BandedSolverResult
 

Namespaces

namespace  num
 

Functions

BandedSolverResult num::banded_lu (BandedMatrix &A, idx *ipiv)
 In-place banded \(PA=LU\) factorization.
 
void num::banded_lu_solve (const BandedMatrix &A, const idx *ipiv, Vector &b)
 Solve \(Ax=b\) using a precomputed banded LU factorization.
 
void num::banded_lu_solve_multi (const BandedMatrix &A, const idx *ipiv, real *B, idx nrhs)
 Solve \(AX=B\) using a precomputed banded LU factorization.
 
BandedSolverResult num::banded_solve (const BandedMatrix &A, const Vector &b, Vector &x)
 Factor and solve \(Ax=b\).
 
void num::banded_matvec (const BandedMatrix &A, const Vector &x, Vector &y, Backend backend=default_backend)
 Compute \(y=Ax\).
 
void num::banded_gemv (real alpha, const BandedMatrix &A, const Vector &x, real beta, Vector &y, Backend backend=default_backend)
 Compute \(y=\alpha Ax+\beta y\).
 
real num::banded_rcond (const BandedMatrix &A, const idx *ipiv, real anorm)
 Estimate \(1/\kappa_1(A)\).
 
real num::banded_norm1 (const BandedMatrix &A)
 Compute \(\|A\|_1\).
 

Detailed Description

Banded matrix storage and solvers.

Definition in file banded.hpp.