2013-05-21 23:25:01 +08:00
|
|
|
/**
|
|
|
|
* Trait of inversible objects. Typically used to implement matrix inverse.
|
|
|
|
*/
|
2013-05-15 08:18:13 +08:00
|
|
|
pub trait Inv
|
2013-05-14 19:35:01 +08:00
|
|
|
{
|
2013-05-17 05:59:41 +08:00
|
|
|
/// Returns the inverse of an element.
|
2013-05-17 05:30:39 +08:00
|
|
|
fn inverse(&self) -> Self;
|
2013-05-17 05:59:41 +08:00
|
|
|
/// Inplace version of `inverse`.
|
2013-05-17 05:30:39 +08:00
|
|
|
fn invert(&mut self);
|
2013-05-14 19:35:01 +08:00
|
|
|
}
|