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 and Numeric 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

transpose : bool

Flag determining whether to solve the transpose of the matrix.

conjugate : bool

Flag determining whether to solve \(A^T x =b\) or \(A^H x = b\) for the transposed linear system.

rhs_index : unsigned, optional

Which rhs vector to solve for. If unset, the default rhs vector is used.

Returns

out : np.ndarray

The (negative) solution vector.