nalgebra/src/traits/basis.rs

8 lines
236 B
Rust
Raw Normal View History

2013-05-19 01:04:03 +08:00
pub trait Basis
{
/// Computes the canonical basis of the space in which this object lives.
// FIXME: need type-associated values
fn canonical_basis() -> ~[Self];
2013-05-19 01:04:03 +08:00
fn orthogonal_subspace_basis(&self) -> ~[Self];
}