Trait alga::linear::FiniteDimVectorSpace[][src]

pub trait FiniteDimVectorSpace: VectorSpace + Index<usize, Output = Self::Field> + IndexMut<usize, Output = Self::Field> {
    fn dimension() -> usize;
fn canonical_basis_element(i: usize) -> Self;
fn dot(&self, other: &Self) -> Self::Field;
unsafe fn component_unchecked(&self, i: usize) -> &Self::Field;
unsafe fn component_unchecked_mut(&mut self, i: usize) -> &mut Self::Field; fn canonical_basis<F: FnMut(&Self) -> bool>(f: F) { ... } }

A finite-dimensional vector space.

Required methods

fn dimension() -> usize[src]

The vector space dimension.

fn canonical_basis_element(i: usize) -> Self[src]

The i-the canonical basis element.

fn dot(&self, other: &Self) -> Self::Field[src]

The dot product between two vectors.

unsafe fn component_unchecked(&self, i: usize) -> &Self::Field[src]

Same as &self[i] but without bound-checking.

unsafe fn component_unchecked_mut(&mut self, i: usize) -> &mut Self::Field[src]

Same as &mut self[i] but without bound-checking.

Loading content...

Provided methods

fn canonical_basis<F: FnMut(&Self) -> bool>(f: F)[src]

Applies the given closule to each element of this vector space’s canonical basis. Stops if f returns false.

Loading content...

Implementors

Loading content...