LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
line::mam::ldqbd_censor_detail::Factor< T > Struct Template Reference

Block-tridiagonal LU of M = -Q_kk: S on the diagonal, G below, U above. More...

#include <line/api/mam/ldqbd_censor.h>

Collaboration diagram for line::mam::ldqbd_censor_detail::Factor< T >:

Public Member Functions

 Factor (const Matrix< T > &M, const std::vector< std::size_t > &P_, std::size_t set, bool last_singular)
Matrix< T > left_solve (std::size_t l, const Matrix< T > &Z) const
 X = S_l^{-1} Z, column by column.
std::size_t levels () const
Matrix< T > colsolve (const Matrix< T > &Y) const
 X = M^{-1} Y.
std::vector< T > rowsolve (const std::vector< T > &y) const
 x = y M^{-1}.

Public Attributes

std::vector< std::size_t > P
std::vector< std::size_t > off
std::vector< Matrix< T > > S
std::vector< Matrix< T > > lu
std::vector< Matrix< T > > G
std::vector< Matrix< T > > U
std::vector< std::vector< std::size_t > > piv

Detailed Description

template<class T>
struct line::mam::ldqbd_censor_detail::Factor< T >

Block-tridiagonal LU of M = -Q_kk: S on the diagonal, G below, U above.

Each S_l is held as its LU with partial pivoting (lu, piv); products with S_l^{-1} are triangular solves, never an explicit inverse.

Definition at line 181 of file ldqbd_censor.h.

Constructor & Destructor Documentation

◆ Factor()

Member Function Documentation

◆ colsolve()

◆ left_solve()

template<class T>
Matrix< T > line::mam::ldqbd_censor_detail::Factor< T >::left_solve ( std::size_t l,
const Matrix< T > & Z ) const
inline

X = S_l^{-1} Z, column by column.

Definition at line 221 of file ldqbd_censor.h.

References line::Matrix< T >::cols(), lu, line::lu_solve(), P, piv, and line::mam::ldqbd_censor_detail::zero().

Referenced by colsolve().

◆ levels()

template<class T>
std::size_t line::mam::ldqbd_censor_detail::Factor< T >::levels ( ) const
inline

Definition at line 233 of file ldqbd_censor.h.

References P.

Referenced by colsolve(), and rowsolve().

◆ rowsolve()

template<class T>
std::vector< T > line::mam::ldqbd_censor_detail::Factor< T >::rowsolve ( const std::vector< T > & y) const
inline

Member Data Documentation

◆ G

template<class T>
std::vector<Matrix<T> > line::mam::ldqbd_censor_detail::Factor< T >::G

Definition at line 183 of file ldqbd_censor.h.

Referenced by colsolve(), Factor(), and rowsolve().

◆ lu

template<class T>
std::vector<Matrix<T> > line::mam::ldqbd_censor_detail::Factor< T >::lu

Definition at line 183 of file ldqbd_censor.h.

Referenced by Factor(), left_solve(), and rowsolve().

◆ off

template<class T>
std::vector<std::size_t> line::mam::ldqbd_censor_detail::Factor< T >::off

Definition at line 182 of file ldqbd_censor.h.

Referenced by colsolve(), Factor(), and rowsolve().

◆ P

template<class T>
std::vector<std::size_t> line::mam::ldqbd_censor_detail::Factor< T >::P

Definition at line 182 of file ldqbd_censor.h.

Referenced by colsolve(), Factor(), left_solve(), levels(), and rowsolve().

◆ piv

template<class T>
std::vector<std::vector<std::size_t> > line::mam::ldqbd_censor_detail::Factor< T >::piv

Definition at line 184 of file ldqbd_censor.h.

Referenced by Factor(), left_solve(), and rowsolve().

◆ S

template<class T>
std::vector<Matrix<T> > line::mam::ldqbd_censor_detail::Factor< T >::S

Definition at line 183 of file ldqbd_censor.h.

Referenced by Factor().

◆ U

template<class T>
std::vector<Matrix<T> > line::mam::ldqbd_censor_detail::Factor< T >::U

Definition at line 183 of file ldqbd_censor.h.

Referenced by colsolve(), Factor(), and rowsolve().


The documentation for this struct was generated from the following file: