Trait wee_matrix::GramSolve
[−]
[src]
pub trait GramSolve { type Rhs; type Output; fn gram_solve(&self, b: &Self::Rhs) -> Result<Self::Output, Error>; }
Trait providing a solver for the equation A'AX=B
Associated Types
type Rhs
The right-hand side type (the type of B in the equation A'AX=B)
type Output
The output (solution) type (the type of X in the equation A'AX=B)
Required Methods
fn gram_solve(&self, b: &Self::Rhs) -> Result<Self::Output, Error>
Solve the equation A'AX=B for the exact solution X
Failures
Fails if no exact solution is possible for AX=B or the equation is improperly defined.