# naginterfaces.library.lapacklin.zgetrs¶

naginterfaces.library.lapacklin.zgetrs(trans, a, ipiv, b)[source]

zgetrs solves a complex system of linear equations with multiple right-hand sides,

where has been factorized by zgetrf().

For full information please refer to the NAG Library document for f07as

https://www.nag.com/numeric/nl/nagdoc_27.3/flhtml/f07/f07asf.html

Parameters
transstr, length 1

Indicates the form of the equations.

is solved for .

is solved for .

is solved for .

acomplex, array-like, shape

The factorization of , as returned by zgetrf().

ipivint, array-like, shape

The pivot indices, as returned by zgetrf().

bcomplex, array-like, shape

The right-hand side matrix .

Returns
bcomplex, ndarray, shape

The solution matrix .

Raises
NagValueError
(errno )

On entry, error in parameter .

Constraint: , or .

(errno )

On entry, error in parameter .

Constraint: .

(errno )

On entry, error in parameter .

Constraint: .

Notes

zgetrs is used to solve a complex system of linear equations , or , the function must be preceded by a call to zgetrf() which computes the factorization of as . The solution is computed by forward and backward substitution.

If , the solution is computed by solving and then .

If , the solution is computed by solving and then .

If , the solution is computed by solving and then .

References

Golub, G H and Van Loan, C F, 1996, Matrix Computations, (3rd Edition), Johns Hopkins University Press, Baltimore