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

Functions

template<class T>
Matrix< T > kron (const Matrix< T > &A, const Matrix< T > &B)
template<class T>
Matrix< T > eye (std::size_t n)
template<class T>
Matrix< T > krons (const Matrix< T > &A, const Matrix< T > &B)
 krons(A,B) = kron(A, I) + kron(I, B).
template<class T>
void arc_process (const Environment< T > &env, std::size_t e, std::size_t h, Matrix< T > &D0, Matrix< T > &D1)
 The arc's (D0, D1), or Exp(0) when the arc is not declared.
template<class T>
Matrix< T > arc_pie (const Environment< T > &env, std::size_t f, std::size_t h, std::size_t n)
 map_pie of the arc as a row, or ones(1, n) when it is NaN (an Exp(0) arc).

Function Documentation

◆ arc_pie()

template<class T>
Matrix< T > line::env::gen_detail::arc_pie ( const Environment< T > & env,
std::size_t f,
std::size_t h,
std::size_t n )

map_pie of the arc as a row, or ones(1, n) when it is NaN (an Exp(0) arc).

Definition at line 114 of file env_generator.h.

References arc_pie(), arc_process(), line::Matrix< T >::cols(), line::mam::Map< T >::D0, line::mam::Map< T >::D1, line::mam::map_pie(), line::Matrix< T >::Matrix(), and line::Matrix< T >::rows().

Referenced by arc_pie().

◆ arc_process()

template<class T>
void line::env::gen_detail::arc_process ( const Environment< T > & env,
std::size_t e,
std::size_t h,
Matrix< T > & D0,
Matrix< T > & D1 )

The arc's (D0, D1), or Exp(0) when the arc is not declared.

Definition at line 96 of file env_generator.h.

References arc_process(), line::env::EnvArc< T >::dist, line::env::EnvArc< T >::enabled, line::Matrix< T >::Matrix(), and line::UnsupportedError::UnsupportedError().

Referenced by arc_pie(), and arc_process().

◆ eye()

template<class T>
Matrix< T > line::env::gen_detail::eye ( std::size_t n)

Definition at line 78 of file env_generator.h.

References eye().

Referenced by eye(), and krons().

◆ kron()

template<class T>
Matrix< T > line::env::gen_detail::kron ( const Matrix< T > & A,
const Matrix< T > & B )

Definition at line 64 of file env_generator.h.

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

Referenced by kron(), and krons().

◆ krons()

template<class T>
Matrix< T > line::env::gen_detail::krons ( const Matrix< T > & A,
const Matrix< T > & B )

krons(A,B) = kron(A, I) + kron(I, B).

Definition at line 86 of file env_generator.h.

References line::Matrix< T >::cols(), eye(), kron(), krons(), and line::Matrix< T >::rows().

Referenced by krons().