![]()  | 
              
                  0.5.0
                 
               | 
            
Sparse matrix whose non-zero entries are confined to a diagonal band, comprising the main diagonal and zero or more diagonals on either side. More...
Public Member Functions | |
| BandMatrix (size_t dim, size_t nUpper, size_t nLower) | |
| Constructor.   | |
| std::vector< Scalar > | lu_solve (const std::vector< Scalar > &b, bool is_lu_decomposed=false) | 
| Scalar & | operator() (size_t i, size_t j) | 
| Access operator i ∈ [i=0,...,dim()-1].   | |
| const Scalar & | operator() (size_t i, size_t j) const | 
| Access operator i ∈ [i=0,...,dim()-1].   | |
Private Member Functions | |
| size_t | dim () const | 
| Returns the matrix dimension.   | |
| size_t | dimLowerBand () const | 
| Returns the dimension of the lower band.   | |
| size_t | dimUpperBand () const | 
| Returns the dimension of the upper band.   | |
| std::vector< Scalar > | l_solve (const std::vector< Scalar > &b) const | 
| Solves the equation Lx = b for x.   | |
| void | lu_decompose () | 
| Calculate the LU decomposition.   | |
| std::vector< Scalar > | u_solve (const std::vector< Scalar > &b) const | 
| Solves the equation Ux = b for x.   | |
Private Attributes | |
| std::vector< std::vector< Scalar > > | lowerBand | 
| lower diagonal band   | |
| std::vector< std::vector< Scalar > > | upperBand | 
| upper diagonal band   | |
Sparse matrix whose non-zero entries are confined to a diagonal band, comprising the main diagonal and zero or more diagonals on either side.
Definition at line 272 of file CubicSpline.hpp.
      
  | 
  inline | 
Constructor.
| [in] | dim | Dimension of the matrix | 
| [in] | nUpper | Amount of upper diagonals | 
| [in] | nLower | Amount of lower diagonals | 
Definition at line 279 of file CubicSpline.hpp.
      
  | 
  inlinenodiscardprivate | 
Returns the matrix dimension.
Definition at line 313 of file CubicSpline.hpp.
      
  | 
  inlinenodiscardprivate | 
Returns the dimension of the lower band.
Definition at line 323 of file CubicSpline.hpp.
      
  | 
  inlinenodiscardprivate | 
Returns the dimension of the upper band.
Definition at line 318 of file CubicSpline.hpp.
      
  | 
  inlinenodiscardprivate | 
Solves the equation Lx = b for x.
Definition at line 367 of file CubicSpline.hpp.
      
  | 
  inlineprivate | 
Calculate the LU decomposition.
Definition at line 329 of file CubicSpline.hpp.
      
  | 
  inlinenodiscard | 
Solves the linear equations Ax = b for x by obtaining the LU decomposition A = LU and solving
Definition at line 298 of file CubicSpline.hpp.
      
  | 
  inline | 
Access operator i ∈ [i=0,...,dim()-1].
Definition at line 284 of file CubicSpline.hpp.
      
  | 
  inlinenodiscard | 
Access operator i ∈ [i=0,...,dim()-1].
Definition at line 289 of file CubicSpline.hpp.
      
  | 
  inlinenodiscardprivate | 
Solves the equation Ux = b for x.
Definition at line 385 of file CubicSpline.hpp.
      
  | 
  private | 
lower diagonal band
Definition at line 404 of file CubicSpline.hpp.
      
  | 
  private | 
upper diagonal band
Definition at line 403 of file CubicSpline.hpp.