LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
line::mam::ldqbd_censor_detail Namespace Reference

Classes

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

Functions

template<class T>
T zero ()
template<class T>
double norm1 (const Matrix< T > &A)
template<class T>
std::vector< T > lu_solve_trans (const Matrix< T > &LU, const std::vector< std::size_t > &piv, std::vector< T > x)
 x with x A = y (A' x' = y'), from the factors of lu_factor.
template<class T>
double inv_norm1 (const Matrix< T > &LU, const std::vector< std::size_t > &piv)
 1-norm of A^{-1} from the LU factors of A, by Hager's estimator (the one behind LAPACK's condition estimate and MATLAB's rcond), so the singularity test does not need the inverse it exists to avoid.
template<class T>
std::vector< std::size_t > checked_lu (Matrix< T > &F, std::size_t level, std::size_t set)
 LU with partial pivoting of a Schur complement (in place), refusing a singular one.
template<class T>
Matrix< T > block (const Matrix< T > &M, std::size_t r0, std::size_t nr, std::size_t c0, std::size_t nc)
template<class T>
void check (const Matrix< T > &M, const std::vector< std::size_t > &P, std::size_t set)
 Throws LINE:unsupported:Structure if M is not block tridiagonal by level.

Function Documentation

◆ block()

template<class T>
Matrix< T > line::mam::ldqbd_censor_detail::block ( const Matrix< T > & M,
std::size_t r0,
std::size_t nr,
std::size_t c0,
std::size_t nc )

◆ check()

template<class T>
void line::mam::ldqbd_censor_detail::check ( const Matrix< T > & M,
const std::vector< std::size_t > & P,
std::size_t set )

Throws LINE:unsupported:Structure if M is not block tridiagonal by level.

Definition at line 286 of file ldqbd_censor.h.

References check(), line::Matrix< T >::cols(), line::Matrix< T >::rows(), line::UnsupportedError::UnsupportedError(), and zero().

Referenced by check().

◆ checked_lu()

template<class T>
std::vector< std::size_t > line::mam::ldqbd_censor_detail::checked_lu ( Matrix< T > & F,
std::size_t level,
std::size_t set )

LU with partial pivoting of a Schur complement (in place), refusing a singular one.

Definition at line 150 of file ldqbd_censor.h.

References checked_lu(), inv_norm1(), line::lu_factor(), norm1(), and line::NumericError::NumericError().

Referenced by checked_lu(), and line::mam::ldqbd_censor_detail::Factor< T >::Factor().

◆ inv_norm1()

template<class T>
double line::mam::ldqbd_censor_detail::inv_norm1 ( const Matrix< T > & LU,
const std::vector< std::size_t > & piv )

1-norm of A^{-1} from the LU factors of A, by Hager's estimator (the one behind LAPACK's condition estimate and MATLAB's rcond), so the singularity test does not need the inverse it exists to avoid.

Definition at line 117 of file ldqbd_censor.h.

References inv_norm1(), line::lu_solve(), lu_solve_trans(), line::num_abs(), line::Matrix< T >::rows(), and zero().

Referenced by checked_lu(), and inv_norm1().

◆ lu_solve_trans()

template<class T>
std::vector< T > line::mam::ldqbd_censor_detail::lu_solve_trans ( const Matrix< T > & LU,
const std::vector< std::size_t > & piv,
std::vector< T > x )

x with x A = y (A' x' = y'), from the factors of lu_factor.

Definition at line 93 of file ldqbd_censor.h.

References lu_solve_trans(), and line::Matrix< T >::rows().

Referenced by line::mam::ldqbd_censor_detail::Factor< T >::Factor(), inv_norm1(), lu_solve_trans(), and line::mam::ldqbd_censor_detail::Factor< T >::rowsolve().

◆ norm1()

template<class T>
double line::mam::ldqbd_censor_detail::norm1 ( const Matrix< T > & A)

Definition at line 81 of file ldqbd_censor.h.

References line::Matrix< T >::cols(), norm1(), line::num_abs(), and line::Matrix< T >::rows().

Referenced by checked_lu(), and norm1().

◆ zero()