pub struct Vector<FS: OrderedRingSignature + FieldSignature, SP: Borrow<AffineSpace<FS>>> { /* private fields */ }
Implementations§
Source§impl<FS: OrderedRingSignature + FieldSignature, SP: Borrow<AffineSpace<FS>>> Vector<FS, SP>
impl<FS: OrderedRingSignature + FieldSignature, SP: Borrow<AffineSpace<FS>>> Vector<FS, SP>
pub fn new(ambient_space: SP, coordinates: Vec<FS::Set>) -> Self
pub fn construct( ambient_space: SP, coordinate_func: impl FnMut(usize) -> FS::Set, ) -> Self
pub fn zero(ambient_space: SP) -> Self
pub fn ambient_space(&self) -> &SP
pub fn coordinate(&self, i: usize) -> &FS::Set
pub fn coordinate_mut(&mut self, i: usize) -> &mut FS::Set
pub fn into_coordinates(self) -> Vec<FS::Set>
pub fn into_row(&self) -> Matrix<FS::Set>
pub fn into_col(&self) -> Matrix<FS::Set>
Source§impl<FS: OrderedRingSignature + FieldSignature, SP: Borrow<AffineSpace<FS>> + Clone> Vector<FS, SP>
impl<FS: OrderedRingSignature + FieldSignature, SP: Borrow<AffineSpace<FS>> + Clone> Vector<FS, SP>
pub fn scalar_mul(&self, other: &FS::Set) -> Vector<FS, SP>
Trait Implementations§
Source§impl<FS: OrderedRingSignature + FieldSignature, SP: Borrow<AffineSpace<FS>> + Clone> Add<&Vector<FS, SP>> for &Vector<FS, SP>
impl<FS: OrderedRingSignature + FieldSignature, SP: Borrow<AffineSpace<FS>> + Clone> Add<&Vector<FS, SP>> for &Vector<FS, SP>
Source§impl<FS: OrderedRingSignature + FieldSignature, SP: Borrow<AffineSpace<FS>> + Clone> AddAssign<&Vector<FS, SP>> for Vector<FS, SP>
impl<FS: OrderedRingSignature + FieldSignature, SP: Borrow<AffineSpace<FS>> + Clone> AddAssign<&Vector<FS, SP>> for Vector<FS, SP>
Source§fn add_assign(&mut self, other: &Vector<FS, SP>)
fn add_assign(&mut self, other: &Vector<FS, SP>)
Performs the
+=
operation. Read moreSource§impl<FS: Clone + OrderedRingSignature + FieldSignature, SP: Clone + Borrow<AffineSpace<FS>>> Clone for Vector<FS, SP>
impl<FS: Clone + OrderedRingSignature + FieldSignature, SP: Clone + Borrow<AffineSpace<FS>>> Clone for Vector<FS, SP>
Source§impl<FS: OrderedRingSignature + FieldSignature, SP: Borrow<AffineSpace<FS>>> Debug for Vector<FS, SP>
impl<FS: OrderedRingSignature + FieldSignature, SP: Borrow<AffineSpace<FS>>> Debug for Vector<FS, SP>
Source§impl<FS: OrderedRingSignature + FieldSignature, SP: Borrow<AffineSpace<FS>>> Hash for Vector<FS, SP>
impl<FS: OrderedRingSignature + FieldSignature, SP: Borrow<AffineSpace<FS>>> Hash for Vector<FS, SP>
Source§impl<FS: OrderedRingSignature + FieldSignature, SP: Borrow<AffineSpace<FS>> + Clone> Neg for &Vector<FS, SP>
impl<FS: OrderedRingSignature + FieldSignature, SP: Borrow<AffineSpace<FS>> + Clone> Neg for &Vector<FS, SP>
Source§impl<FS: OrderedRingSignature + FieldSignature, SP: Borrow<AffineSpace<FS>> + Clone> Ord for Vector<FS, SP>
impl<FS: OrderedRingSignature + FieldSignature, SP: Borrow<AffineSpace<FS>> + Clone> Ord for Vector<FS, SP>
Source§impl<FS: OrderedRingSignature + FieldSignature, SP: Borrow<AffineSpace<FS>>> PartialEq for Vector<FS, SP>
impl<FS: OrderedRingSignature + FieldSignature, SP: Borrow<AffineSpace<FS>>> PartialEq for Vector<FS, SP>
Source§impl<FS: OrderedRingSignature + FieldSignature, SP: Borrow<AffineSpace<FS>> + Clone> PartialOrd for Vector<FS, SP>
impl<FS: OrderedRingSignature + FieldSignature, SP: Borrow<AffineSpace<FS>> + Clone> PartialOrd for Vector<FS, SP>
Source§impl<FS: OrderedRingSignature + FieldSignature, SP: Borrow<AffineSpace<FS>> + Clone> Sub<&Vector<FS, SP>> for &Vector<FS, SP>
impl<FS: OrderedRingSignature + FieldSignature, SP: Borrow<AffineSpace<FS>> + Clone> Sub<&Vector<FS, SP>> for &Vector<FS, SP>
impl<FS: OrderedRingSignature + FieldSignature, SP: Borrow<AffineSpace<FS>>> Eq for Vector<FS, SP>
Auto Trait Implementations§
impl<FS, SP> Freeze for Vector<FS, SP>where
SP: Freeze,
impl<FS, SP> RefUnwindSafe for Vector<FS, SP>
impl<FS, SP> Send for Vector<FS, SP>
impl<FS, SP> Sync for Vector<FS, SP>
impl<FS, SP> Unpin for Vector<FS, SP>
impl<FS, SP> UnwindSafe for Vector<FS, SP>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more