Struct optimath::Vector [−][src]
#[repr(align(16))]pub struct Vector<T, const N: usize> { /* fields omitted */ }
Expand description
a const-sized vector of elements, supports all math operations that T does on an element-by-element basis.
can be iterated over using .into_iter() on Vector or &Vector can be constructed from iterators using collect().
is repr(align(16)) for simd
Implementations
pub fn matrix_multiply<const O: usize>(
&'a self,
other: &'b Matrix<T, N, O>
) -> Matrix<T, M, O>
Trait Implementations
Performs the +=
operation. Read more
Performs the +=
operation. Read more
Deserialize this value from the given Serde deserializer. Read more
impl<T, const N: usize> Distribution<Vector<T, N>> for Standard where
Standard: Distribution<T>,
impl<T, const N: usize> Distribution<Vector<T, N>> for Standard where
Standard: Distribution<T>,
Generate a random value of T
, using rng
as the source of randomness.
Create an iterator that generates random values of T
, using rng
as
the source of randomness. Read more
Performs the /=
operation. Read more
Performs the /=
operation. Read more
Creates a value from an iterator. Read more
Performs the *=
operation. Read more
Performs the *=
operation. Read more
Performs the -=
operation. Read more
Performs the -=
operation. Read more
Auto Trait Implementations
impl<T, const N: usize> RefUnwindSafe for Vector<T, N> where
T: RefUnwindSafe,
impl<T, const N: usize> UnwindSafe for Vector<T, N> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V