![]() |
LINE Solver (C++)
Templated C++ port of the LINE queueing solver
|
Block-tridiagonal LU of M = -Q_kk: S on the diagonal, G below, U above. More...
#include <line/api/mam/ldqbd_censor.h>
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 |
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.
|
inline |
Definition at line 186 of file ldqbd_censor.h.
References line::mam::ldqbd_censor_detail::block(), line::mam::ldqbd_censor_detail::checked_lu(), line::Matrix< T >::cols(), G, lu, line::mam::ldqbd_censor_detail::lu_solve_trans(), line::matmul(), line::Matrix< T >::Matrix(), off, P, piv, line::Matrix< T >::rows(), S, U, and line::mam::ldqbd_censor_detail::zero().
|
inline |
X = M^{-1} Y.
Definition at line 236 of file ldqbd_censor.h.
References line::mam::ldqbd_censor_detail::block(), line::Matrix< T >::cols(), G, left_solve(), levels(), line::matmul(), off, P, line::Matrix< T >::rows(), U, and line::mam::ldqbd_censor_detail::zero().
|
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().
|
inline |
Definition at line 233 of file ldqbd_censor.h.
References P.
Referenced by colsolve(), and rowsolve().
|
inline |
x = y M^{-1}.
Definition at line 262 of file ldqbd_censor.h.
References G, levels(), lu, line::mam::ldqbd_censor_detail::lu_solve_trans(), off, P, piv, U, line::vecmul(), and line::mam::ldqbd_censor_detail::zero().
| 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().
| 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().
| 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().
| 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().
| 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().
| std::vector<Matrix<T> > line::mam::ldqbd_censor_detail::Factor< T >::S |
Definition at line 183 of file ldqbd_censor.h.
Referenced by Factor().
| 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().