finesse.densematrix.DenseMatrix.solve

DenseMatrix.solve(self, transpose, conjugate)[source]

Solve the matrix with options for transposing and conjugating.

If transpose is False, solves the linear system Ax=bAx = b using the Symbolic and Numeric objects stored by this class.

Otherwise, solves the linear system ATx=bA^T x = b or AHx=bA^H x = b. The conjugate option is zero for ATx=bA^T x = b or non-zero for AHx=bA^H x = b.

Parameters
transposebool

Flag determining whether to solve the transpose of the matrix.

conjugatebool

Flag determining whether to solve ATx=bA^T x =b or AHx=bA^H x = b for the transposed linear system.

Returns
outnp.ndarray

The (negative) solution vector.