Expand description
An owned D-dimensional column vector.
Implementations§
source§impl<T, R> OVector<T, R>where
R: ToTypenum + DimName,
T: Scalar + Zero + One,
DefaultAllocator: Allocator<T, R>,
impl<T, R> OVector<T, R>where
R: ToTypenum + DimName,
T: Scalar + Zero + One,
DefaultAllocator: Allocator<T, R>,
sourcepub fn ith_axis(i: usize) -> Unit<Self>
pub fn ith_axis(i: usize) -> Unit<Self>
The column unit vector with T::one()
as its i-th component.
sourcepub fn x() -> Selfwhere
R::Typenum: Cmp<U0, Output = Greater>,
pub fn x() -> Selfwhere
R::Typenum: Cmp<U0, Output = Greater>,
The column vector with a 1 as its first component, and zero elsewhere.
sourcepub fn y() -> Selfwhere
R::Typenum: Cmp<U1, Output = Greater>,
pub fn y() -> Selfwhere
R::Typenum: Cmp<U1, Output = Greater>,
The column vector with a 1 as its second component, and zero elsewhere.
sourcepub fn z() -> Selfwhere
R::Typenum: Cmp<U2, Output = Greater>,
pub fn z() -> Selfwhere
R::Typenum: Cmp<U2, Output = Greater>,
The column vector with a 1 as its third component, and zero elsewhere.
sourcepub fn w() -> Selfwhere
R::Typenum: Cmp<U3, Output = Greater>,
pub fn w() -> Selfwhere
R::Typenum: Cmp<U3, Output = Greater>,
The column vector with a 1 as its fourth component, and zero elsewhere.
sourcepub fn a() -> Selfwhere
R::Typenum: Cmp<U4, Output = Greater>,
pub fn a() -> Selfwhere
R::Typenum: Cmp<U4, Output = Greater>,
The column vector with a 1 as its fifth component, and zero elsewhere.
sourcepub fn b() -> Selfwhere
R::Typenum: Cmp<U5, Output = Greater>,
pub fn b() -> Selfwhere
R::Typenum: Cmp<U5, Output = Greater>,
The column vector with a 1 as its sixth component, and zero elsewhere.
sourcepub fn x_axis() -> Unit<Self>where
R::Typenum: Cmp<U0, Output = Greater>,
pub fn x_axis() -> Unit<Self>where
R::Typenum: Cmp<U0, Output = Greater>,
The unit column vector with a 1 as its first component, and zero elsewhere.
sourcepub fn y_axis() -> Unit<Self>where
R::Typenum: Cmp<U1, Output = Greater>,
pub fn y_axis() -> Unit<Self>where
R::Typenum: Cmp<U1, Output = Greater>,
The unit column vector with a 1 as its second component, and zero elsewhere.
sourcepub fn z_axis() -> Unit<Self>where
R::Typenum: Cmp<U2, Output = Greater>,
pub fn z_axis() -> Unit<Self>where
R::Typenum: Cmp<U2, Output = Greater>,
The unit column vector with a 1 as its third component, and zero elsewhere.
sourcepub fn w_axis() -> Unit<Self>where
R::Typenum: Cmp<U3, Output = Greater>,
pub fn w_axis() -> Unit<Self>where
R::Typenum: Cmp<U3, Output = Greater>,
The unit column vector with a 1 as its fourth component, and zero elsewhere.
source§impl<T: ComplexField, D: DimName> OVector<T, D>where
DefaultAllocator: Allocator<T, D>,
impl<T: ComplexField, D: DimName> OVector<T, D>where
DefaultAllocator: Allocator<T, D>,
sourcepub fn orthonormalize(vs: &mut [Self]) -> usize
pub fn orthonormalize(vs: &mut [Self]) -> usize
Orthonormalizes the given family of vectors. The largest free family of vectors is moved at the beginning of the array and its size is returned. Vectors at an indices larger or equal to this length can be modified to an arbitrary value.