Skip to main content

solve_2x2

Function solve_2x2 

Source
pub fn solve_2x2(matrix: Matrix2, rhs: Vector2) -> Result<Vector2, LinearError>
Expand description

Solves matrix * x = rhs for x.

ยงErrors

Returns LinearError::SingularMatrix when the determinant is zero.