1function G=QBD_G_ETAQA(An)
2% QBD_G_ETAQA computes the G matrix
for computation of truncated probabilities by ETAQA
5% G = QBD_G_ETAQA computes the minimal nonnegative solution to the
6% matrix equation G = A0 + A1 G + A2 G^2, where Ai are square nonnegative matrices,
7% with An = [A0,A1,A2] and A0+A1+A2 as irreducible and stochastic
10% G = QBD_G_ETAQA computes the minimal nonnegative solution to the
11% matrix equation 0 = A0 + A1 G + A2 G^2, where Ai are square nonnegative matrices,
12% with An = [A0,A1,A2] and A0+A1+A2 as irreducible and stochastic
18 error(
'The size of An is not correct. An = [A0 A1 A2] with Ai as square matrices');