Skip to content

Commit

Permalink
Update solvers.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
abstractqqq authored and sarah-quinones committed Sep 7, 2024
1 parent 1a8461b commit 5eef3eb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/sparse/linalg/solvers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,24 @@ pub trait SpSolverLstsqCore<E: Entity>: SpSolverCore<E> {

/// Solver that can compute solution of a linear system.
pub trait SpSolver<E: ComplexField>: SpSolverCore<E> {
/// Solves the equation `self * X = rhs`, and stores the result in `rhs`.
/// Solves the equation `self * X = rhs` when self is square, and stores the result in `rhs`.
fn solve_in_place(&self, rhs: impl ColBatchMut<E>);
/// Solves the equation `conjugate(self) * X = rhs`, and stores the result in `rhs`.
/// Solves the equation `conjugate(self) * X = rhs` when self is square, and stores the result in `rhs`.
fn solve_conj_in_place(&self, rhs: impl ColBatchMut<E>);
/// Solves the equation `transpose(self) * X = rhs`, and stores the result in `rhs`.
/// Solves the equation `transpose(self) * X = rhs` when self is square, and stores the result in `rhs`.
fn solve_transpose_in_place(&self, rhs: impl ColBatchMut<E>);
/// Solves the equation `adjoint(self) * X = rhs`, and stores the result in `rhs`.
/// Solves the equation `adjoint(self) * X = rhs` when self is square, and stores the result in `rhs`.
fn solve_conj_transpose_in_place(&self, rhs: impl ColBatchMut<E>);
/// Solves the equation `self * X = rhs`, and returns the result.
/// Solves the equation `self * X = rhs` when self is square, and returns the result.
fn solve<ViewE: Conjugate<Canonical = E>, B: ColBatch<ViewE>>(&self, rhs: B) -> B::Owned;
/// Solves the equation `conjugate(self) * X = rhs`, and returns the result.
/// Solves the equation `conjugate(self) * X = rhs` when self is square, and returns the result.
fn solve_conj<ViewE: Conjugate<Canonical = E>, B: ColBatch<ViewE>>(&self, rhs: B) -> B::Owned;
/// Solves the equation `transpose(self) * X = rhs`, and returns the result.
/// Solves the equation `transpose(self) * X = rhs` when self is square, and returns the result.
fn solve_transpose<ViewE: Conjugate<Canonical = E>, B: ColBatch<ViewE>>(
&self,
rhs: B,
) -> B::Owned;
/// Solves the equation `adjoint(self) * X = rhs`, and returns the result.
/// Solves the equation `adjoint(self) * X = rhs` when self is square, and returns the result.
fn solve_conj_transpose<ViewE: Conjugate<Canonical = E>, B: ColBatch<ViewE>>(
&self,
rhs: B,
Expand Down

0 comments on commit 5eef3eb

Please sign in to comment.