nalgebra/src/traits/basis.rs

9 lines
290 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
// FIXME: this will make allocations… this is bad
fn canonical_basis() -> ~[Self];
2013-05-19 01:04:03 +08:00
fn orthogonal_subspace_basis(&self) -> ~[Self];
}