pub struct KVector<T, const K: usize, const P: usize, const Q: usize, const R: usize>{ /* private fields */ }Expand description
Type-safe k-vector (homogeneous grade element)
This type guarantees at compile-time that the multivector contains only elements of grade K
Implementations§
Source§impl<T, const K: usize, const P: usize, const Q: usize, const R: usize> KVector<T, K, P, Q, R>
impl<T, const K: usize, const P: usize, const Q: usize, const R: usize> KVector<T, K, P, Q, R>
Sourcepub fn from_multivector(mv: VerifiedMultivector<T, P, Q, R>) -> Self
pub fn from_multivector(mv: VerifiedMultivector<T, P, Q, R>) -> Self
Create a k-vector from a general multivector by grade projection
Sourcepub fn inner_product(&self, other: &Self) -> T
pub fn inner_product(&self, other: &Self) -> T
Inner product with another k-vector (produces a scalar)
Trait Implementations§
Source§impl<T, const P: usize, const Q: usize, const R: usize> OuterProduct<T, 1, P, Q, R> for KVector<T, 1, P, Q, R>
impl<T, const P: usize, const Q: usize, const R: usize> OuterProduct<T, 1, P, Q, R> for KVector<T, 1, P, Q, R>
Auto Trait Implementations§
impl<T, const K: usize, const P: usize, const Q: usize, const R: usize> Freeze for KVector<T, K, P, Q, R>
impl<T, const K: usize, const P: usize, const Q: usize, const R: usize> RefUnwindSafe for KVector<T, K, P, Q, R>where
T: RefUnwindSafe,
impl<T, const K: usize, const P: usize, const Q: usize, const R: usize> Send for KVector<T, K, P, Q, R>where
T: Send,
impl<T, const K: usize, const P: usize, const Q: usize, const R: usize> Sync for KVector<T, K, P, Q, R>where
T: Sync,
impl<T, const K: usize, const P: usize, const Q: usize, const R: usize> Unpin for KVector<T, K, P, Q, R>where
T: Unpin,
impl<T, const K: usize, const P: usize, const Q: usize, const R: usize> UnwindSafe for KVector<T, K, P, Q, R>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more