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

High-performance banded matrix solver implementation. More...

#include "linalg/banded/banded.hpp"
#include <algorithm>
#include <cmath>
#include <cstring>
#include <stdexcept>

Go to the source code of this file.

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_norm1 (const BandedMatrix &A)
 Compute \(\|A\|_1\).
 
real num::banded_rcond (const BandedMatrix &A, const idx *ipiv, real anorm)
 Estimate \(1/\kappa_1(A)\).
 

Detailed Description

High-performance banded matrix solver implementation.

Definition in file banded.cpp.