finesse.cmatrix.KLUMatrix.solve¶
- KLUMatrix.solve(self, int transpose=False, bool conjugate=False, unsigned int rhs_index=0) const double complex[::1] ¶
Solve the matrix with options for transposing and conjugating.
If transpose is False, solves the linear system \(Ax = b\) using the
Symbolic
andNumeric
objects stored by this class.Otherwise, solves the linear system \(A^T x = b\) or \(A^H x = b\). The conjugate option is zero for \(A^T x = b\) or non-zero for \(A^H x = b\).
- Parameters:
- transposebool
Flag determining whether to solve the transpose of the matrix.
- conjugatebool
Flag determining whether to solve \(A^T x =b\) or \(A^H x = b\) for the transposed linear system.
- rhs_indexunsigned, optional
Which rhs vector to solve for. If unset, the default rhs vector is used.
- Returns:
- outnp.ndarray
The (negative) solution vector.