sfof
Public Member Functions | Private Attributes | List of all members
Band_Matrix Class Reference

Band Martix solver for cubic spline interpolation. More...

#include <band_matrix.hpp>

Public Member Functions

 Band_Matrix ()
 
 Band_Matrix (int dim, int n_u, int n_l)
 
 ~Band_Matrix ()
 
void resize (int dim, int n_u, int n_l)
 
int dim () const
 
int num_upper () const
 
int num_lower () const
 
double & operator() (int i, int j)
 
double operator() (int i, int j) const
 
double & saved_diag (int i)
 
double saved_diag (int i) const
 
void lu_decompose ()
 
std::vector< double > r_solve (const std::vector< double > &b) const
 
std::vector< double > l_solve (const std::vector< double > &b) const
 
std::vector< double > lu_solve (const std::vector< double > &b, bool is_lu_decomposed=false)
 

Private Attributes

std::vector< std::vector< double > > m_upper
 
std::vector< std::vector< double > > m_lower
 

Detailed Description

Band Martix solver for cubic spline interpolation.

Constructor & Destructor Documentation

◆ Band_Matrix() [1/2]

Band_Matrix::Band_Matrix ( )

◆ Band_Matrix() [2/2]

Band_Matrix::Band_Matrix ( int  dim,
int  n_u,
int  n_l 
)

◆ ~Band_Matrix()

Band_Matrix::~Band_Matrix ( )

Member Function Documentation

◆ dim()

int Band_Matrix::dim ( ) const

◆ l_solve()

std::vector< double > Band_Matrix::l_solve ( const std::vector< double > &  b) const

◆ lu_decompose()

void Band_Matrix::lu_decompose ( )

◆ lu_solve()

std::vector< double > Band_Matrix::lu_solve ( const std::vector< double > &  b,
bool  is_lu_decomposed = false 
)

◆ num_lower()

int Band_Matrix::num_lower ( ) const

◆ num_upper()

int Band_Matrix::num_upper ( ) const

◆ operator()() [1/2]

double & Band_Matrix::operator() ( int  i,
int  j 
)

◆ operator()() [2/2]

double Band_Matrix::operator() ( int  i,
int  j 
) const

◆ r_solve()

std::vector< double > Band_Matrix::r_solve ( const std::vector< double > &  b) const

◆ resize()

void Band_Matrix::resize ( int  dim,
int  n_u,
int  n_l 
)

◆ saved_diag() [1/2]

double & Band_Matrix::saved_diag ( int  i)

◆ saved_diag() [2/2]

double Band_Matrix::saved_diag ( int  i) const

Member Data Documentation

◆ m_lower

std::vector< std::vector<double> > Band_Matrix::m_lower
private

◆ m_upper

std::vector< std::vector<double> > Band_Matrix::m_upper
private

The documentation for this class was generated from the following files: