Trait nalgebra::Basis
[−]
[src]
pub trait Basis: Sized { fn canonical_basis<F: FnMut(Self) -> bool>(F); fn orthonormal_subspace_basis<F: FnMut(Self) -> bool>(&Self, F); fn canonical_basis_element(i: usize) -> Option<Self>; }
Traits of objects which can form a basis (typically vectors).
Required Methods
fn canonical_basis<F: FnMut(Self) -> bool>(F)
Iterates through the canonical basis of the space in which this object lives.
fn orthonormal_subspace_basis<F: FnMut(Self) -> bool>(&Self, F)
Iterates through a basis of the subspace orthogonal to self
.
fn canonical_basis_element(i: usize) -> Option<Self>
Gets the ith element of the canonical basis.