Expand description
An owned D-dimensional column vector.
Implementations
sourceimpl<T, R: DimName> OVector<T, R> where
R: ToTypenum,
T: Scalar + Zero + One,
DefaultAllocator: Allocator<T, R>,
impl<T, R: DimName> OVector<T, R> where
R: ToTypenum,
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() -> Self where
R::Typenum: Cmp<U0, Output = Greater>,
pub fn x() -> Self where
R::Typenum: Cmp<U0, Output = Greater>,
The column vector with a 1 as its first component, and zero elsewhere.
sourcepub fn y() -> Self where
R::Typenum: Cmp<U1, Output = Greater>,
pub fn y() -> Self where
R::Typenum: Cmp<U1, Output = Greater>,
The column vector with a 1 as its second component, and zero elsewhere.
sourcepub fn z() -> Self where
R::Typenum: Cmp<U2, Output = Greater>,
pub fn z() -> Self where
R::Typenum: Cmp<U2, Output = Greater>,
The column vector with a 1 as its third component, and zero elsewhere.
sourcepub fn w() -> Self where
R::Typenum: Cmp<U3, Output = Greater>,
pub fn w() -> Self where
R::Typenum: Cmp<U3, Output = Greater>,
The column vector with a 1 as its fourth component, and zero elsewhere.
sourcepub fn a() -> Self where
R::Typenum: Cmp<U4, Output = Greater>,
pub fn a() -> Self where
R::Typenum: Cmp<U4, Output = Greater>,
The column vector with a 1 as its fifth component, and zero elsewhere.
sourcepub fn b() -> Self where
R::Typenum: Cmp<U5, Output = Greater>,
pub fn b() -> Self where
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.
sourceimpl<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.