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

The Kronecker operator of a FIXED (A,B) pair, factorized once. More...

#include <line/util/sylvester.h>

Public Member Functions

 SylvesterFactor (const Matrix< T > &A, const Matrix< T > &B)
Matrix< T > solve_sylvester (const Matrix< T > &C) const
 Solve A X + X B = C.
Matrix< T > solve_lyap (const Matrix< T > &C) const
 Solve A X + X B + C = 0, MATLAB's lyap(A,B,C).

Detailed Description

template<class T>
class line::SylvesterFactor< T >

The Kronecker operator of a FIXED (A,B) pair, factorized once.

The MMAP[K]/PH[K]/1 queue-length recursion solves a chain of Sylvester equations that share A and B and differ only in the right-hand side, one per queue-length level. Refactorizing per level would make the recursion cubic in the level count for no reason.

AT DOUBLE WITH LAPACK IT IS BARTELS-STEWART, NOT THE KRONECKER FORM. The Kronecker operator of an n x n by m x m pair is (n m)^2 entries, and the MMAP queue recursion's A and B are both (arrival order) x (service order): a departure process ETAQA-truncated at level 8 is a 90-state MMAP, which against an Erlang-3 service made A and B 270 x 270 and the operator 72900 square, 42 GB of LU and ~10^14 flops. dec.mmap sat in that allocation indefinitely on an Erl/Erl/1 tandem the JAR (Matrix.lyap, Schur-based) solves in 0.02 s. So the double arm factors the pair once with SchurSylvesterFactor and reuses it per right-hand side; the Kronecker LU stays for the arithmetics a Schur factorization cannot reach.

Definition at line 177 of file sylvester.h.

Constructor & Destructor Documentation

◆ SylvesterFactor()

template<class T>
line::SylvesterFactor< T >::SylvesterFactor ( const Matrix< T > & A,
const Matrix< T > & B )
inline

Member Function Documentation

◆ solve_lyap()

template<class T>
Matrix< T > line::SylvesterFactor< T >::solve_lyap ( const Matrix< T > & C) const
inline

Solve A X + X B + C = 0, MATLAB's lyap(A,B,C).

Definition at line 220 of file sylvester.h.

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

Referenced by line::mam::mmapph1fcfs_ncdistr(), and line::mam::mmapph1fcfs_ncmean().

◆ solve_sylvester()

template<class T>
Matrix< T > line::SylvesterFactor< T >::solve_sylvester ( const Matrix< T > & C) const
inline

Solve A X + X B = C.

Definition at line 201 of file sylvester.h.

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

Referenced by solve_lyap().


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