[−][src]Struct rin::math::core::MatrixArray
A array-based statically sized matrix data storage.
Methods from Deref<Target = GenericArray<N, <<R as DimName>::Value as Mul<<C as DimName>::Value>>::Output>>
pub fn as_slice(&self) -> &[T]
[src]
pub fn as_slice(&self) -> &[T]
Extracts a slice containing the entire array.
pub fn as_mut_slice(&mut self) -> &mut [T]
[src]
pub fn as_mut_slice(&mut self) -> &mut [T]
Extracts a mutable slice containing the entire array.
Trait Implementations
impl<N, R, C> PartialEq<MatrixArray<N, R, C>> for MatrixArray<N, R, C> where
C: DimName,
N: PartialEq<N>,
R: DimName,
<R as DimName>::Value: Mul<<C as DimName>::Value>,
<<R as DimName>::Value as Mul<<C as DimName>::Value>>::Output: ArrayLength<N>,
[src]
impl<N, R, C> PartialEq<MatrixArray<N, R, C>> for MatrixArray<N, R, C> where
C: DimName,
N: PartialEq<N>,
R: DimName,
<R as DimName>::Value: Mul<<C as DimName>::Value>,
<<R as DimName>::Value as Mul<<C as DimName>::Value>>::Output: ArrayLength<N>,
fn eq(&self, right: &MatrixArray<N, R, C>) -> bool
[src]
fn eq(&self, right: &MatrixArray<N, R, C>) -> bool
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl<N, R, C> Hash for MatrixArray<N, R, C> where
C: DimName,
N: Hash,
R: DimName,
<R as DimName>::Value: Mul<<C as DimName>::Value>,
<<R as DimName>::Value as Mul<<C as DimName>::Value>>::Output: ArrayLength<N>,
[src]
impl<N, R, C> Hash for MatrixArray<N, R, C> where
C: DimName,
N: Hash,
R: DimName,
<R as DimName>::Value: Mul<<C as DimName>::Value>,
<<R as DimName>::Value as Mul<<C as DimName>::Value>>::Output: ArrayLength<N>,
fn hash<H>(&self, state: &mut H) where
H: Hasher,
[src]
fn hash<H>(&self, state: &mut H) where
H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<N, R, C> Eq for MatrixArray<N, R, C> where
C: DimName,
N: Eq,
R: DimName,
<R as DimName>::Value: Mul<<C as DimName>::Value>,
<<R as DimName>::Value as Mul<<C as DimName>::Value>>::Output: ArrayLength<N>,
[src]
impl<N, R, C> Eq for MatrixArray<N, R, C> where
C: DimName,
N: Eq,
R: DimName,
<R as DimName>::Value: Mul<<C as DimName>::Value>,
<<R as DimName>::Value as Mul<<C as DimName>::Value>>::Output: ArrayLength<N>,
impl<N, R, C> ContiguousStorage<N, R, C> for MatrixArray<N, R, C> where
C: DimName,
N: Scalar,
R: DimName,
<R as DimName>::Value: Mul<<C as DimName>::Value>,
<<R as DimName>::Value as Mul<<C as DimName>::Value>>::Output: ArrayLength<N>,
DefaultAllocator: Allocator<N, R, C>,
<DefaultAllocator as Allocator<N, R, C>>::Buffer == MatrixArray<N, R, C>,
[src]
impl<N, R, C> ContiguousStorage<N, R, C> for MatrixArray<N, R, C> where
C: DimName,
N: Scalar,
R: DimName,
<R as DimName>::Value: Mul<<C as DimName>::Value>,
<<R as DimName>::Value as Mul<<C as DimName>::Value>>::Output: ArrayLength<N>,
DefaultAllocator: Allocator<N, R, C>,
<DefaultAllocator as Allocator<N, R, C>>::Buffer == MatrixArray<N, R, C>,
impl<N, R, C> StorageMut<N, R, C> for MatrixArray<N, R, C> where
C: DimName,
N: Scalar,
R: DimName,
<R as DimName>::Value: Mul<<C as DimName>::Value>,
<<R as DimName>::Value as Mul<<C as DimName>::Value>>::Output: ArrayLength<N>,
DefaultAllocator: Allocator<N, R, C>,
<DefaultAllocator as Allocator<N, R, C>>::Buffer == MatrixArray<N, R, C>,
[src]
impl<N, R, C> StorageMut<N, R, C> for MatrixArray<N, R, C> where
C: DimName,
N: Scalar,
R: DimName,
<R as DimName>::Value: Mul<<C as DimName>::Value>,
<<R as DimName>::Value as Mul<<C as DimName>::Value>>::Output: ArrayLength<N>,
DefaultAllocator: Allocator<N, R, C>,
<DefaultAllocator as Allocator<N, R, C>>::Buffer == MatrixArray<N, R, C>,
fn ptr_mut(&mut self) -> *mut N
[src]
fn ptr_mut(&mut self) -> *mut N
fn as_mut_slice(&mut self) -> &mut [N]
[src]
fn as_mut_slice(&mut self) -> &mut [N]
unsafe fn get_address_unchecked_linear_mut(&mut self, i: usize) -> *mut N
[src]
unsafe fn get_address_unchecked_linear_mut(&mut self, i: usize) -> *mut N
Gets the mutable address of the i-th matrix component without performing bound-checking.
unsafe fn get_address_unchecked_mut(
&mut self,
irow: usize,
icol: usize
) -> *mut N
[src]
unsafe fn get_address_unchecked_mut(
&mut self,
irow: usize,
icol: usize
) -> *mut N
Gets the mutable address of the i-th matrix component without performing bound-checking.
unsafe fn get_unchecked_linear_mut(&mut self, i: usize) -> &mut N
[src]
unsafe fn get_unchecked_linear_mut(&mut self, i: usize) -> &mut N
Retrieves a mutable reference to the i-th element without bound-checking.
unsafe fn get_unchecked_mut(&mut self, irow: usize, icol: usize) -> &mut N
[src]
unsafe fn get_unchecked_mut(&mut self, irow: usize, icol: usize) -> &mut N
Retrieves a mutable reference to the element at (irow, icol)
without bound-checking.
unsafe fn swap_unchecked_linear(&mut self, i1: usize, i2: usize)
[src]
unsafe fn swap_unchecked_linear(&mut self, i1: usize, i2: usize)
Swaps two elements using their linear index without bound-checking.
unsafe fn swap_unchecked(
&mut self,
row_col1: (usize, usize),
row_col2: (usize, usize)
)
[src]
unsafe fn swap_unchecked(
&mut self,
row_col1: (usize, usize),
row_col2: (usize, usize)
)
Swaps two elements without bound-checking.
impl<N, R, C> Storage<N, R, C> for MatrixArray<N, R, C> where
C: DimName,
N: Scalar,
R: DimName,
<R as DimName>::Value: Mul<<C as DimName>::Value>,
<<R as DimName>::Value as Mul<<C as DimName>::Value>>::Output: ArrayLength<N>,
DefaultAllocator: Allocator<N, R, C>,
<DefaultAllocator as Allocator<N, R, C>>::Buffer == MatrixArray<N, R, C>,
[src]
impl<N, R, C> Storage<N, R, C> for MatrixArray<N, R, C> where
C: DimName,
N: Scalar,
R: DimName,
<R as DimName>::Value: Mul<<C as DimName>::Value>,
<<R as DimName>::Value as Mul<<C as DimName>::Value>>::Output: ArrayLength<N>,
DefaultAllocator: Allocator<N, R, C>,
<DefaultAllocator as Allocator<N, R, C>>::Buffer == MatrixArray<N, R, C>,
type RStride = U1
The static stride of this storage's rows.
type CStride = R
The static stride of this storage's columns.
fn ptr(&self) -> *const N
[src]
fn ptr(&self) -> *const N
fn shape(&self) -> (R, C)
[src]
fn shape(&self) -> (R, C)
fn strides(
&self
) -> (<MatrixArray<N, R, C> as Storage<N, R, C>>::RStride, <MatrixArray<N, R, C> as Storage<N, R, C>>::CStride)
[src]
fn strides(
&self
) -> (<MatrixArray<N, R, C> as Storage<N, R, C>>::RStride, <MatrixArray<N, R, C> as Storage<N, R, C>>::CStride)
fn is_contiguous(&self) -> bool
[src]
fn is_contiguous(&self) -> bool
fn into_owned(self) -> <DefaultAllocator as Allocator<N, R, C>>::Buffer where
DefaultAllocator: Allocator<N, R, C>,
[src]
fn into_owned(self) -> <DefaultAllocator as Allocator<N, R, C>>::Buffer where
DefaultAllocator: Allocator<N, R, C>,
fn clone_owned(&self) -> <DefaultAllocator as Allocator<N, R, C>>::Buffer where
DefaultAllocator: Allocator<N, R, C>,
[src]
fn clone_owned(&self) -> <DefaultAllocator as Allocator<N, R, C>>::Buffer where
DefaultAllocator: Allocator<N, R, C>,
fn as_slice(&self) -> &[N]
[src]
fn as_slice(&self) -> &[N]
fn linear_index(&self, irow: usize, icol: usize) -> usize
[src]
fn linear_index(&self, irow: usize, icol: usize) -> usize
Compute the index corresponding to the irow-th row and icol-th column of this matrix. The index must be such that the following holds: Read more
unsafe fn get_address_unchecked_linear(&self, i: usize) -> *const N
[src]
unsafe fn get_address_unchecked_linear(&self, i: usize) -> *const N
Gets the address of the i-th matrix component without performing bound-checking.
unsafe fn get_address_unchecked(&self, irow: usize, icol: usize) -> *const N
[src]
unsafe fn get_address_unchecked(&self, irow: usize, icol: usize) -> *const N
Gets the address of the i-th matrix component without performing bound-checking.
unsafe fn get_unchecked_linear(&self, i: usize) -> &N
[src]
unsafe fn get_unchecked_linear(&self, i: usize) -> &N
Retrieves a reference to the i-th element without bound-checking.
unsafe fn get_unchecked(&self, irow: usize, icol: usize) -> &N
[src]
unsafe fn get_unchecked(&self, irow: usize, icol: usize) -> &N
Retrieves a reference to the i-th element without bound-checking.
impl<N, R, C> Copy for MatrixArray<N, R, C> where
C: DimName,
N: Copy,
R: DimName,
<R as DimName>::Value: Mul<<C as DimName>::Value>,
<<R as DimName>::Value as Mul<<C as DimName>::Value>>::Output: ArrayLength<N>,
GenericArray<N, <<R as DimName>::Value as Mul<<C as DimName>::Value>>::Output>: Copy,
[src]
impl<N, R, C> Copy for MatrixArray<N, R, C> where
C: DimName,
N: Copy,
R: DimName,
<R as DimName>::Value: Mul<<C as DimName>::Value>,
<<R as DimName>::Value as Mul<<C as DimName>::Value>>::Output: ArrayLength<N>,
GenericArray<N, <<R as DimName>::Value as Mul<<C as DimName>::Value>>::Output>: Copy,
impl<N, R, C> Deref for MatrixArray<N, R, C> where
C: DimName,
R: DimName,
<R as DimName>::Value: Mul<<C as DimName>::Value>,
<<R as DimName>::Value as Mul<<C as DimName>::Value>>::Output: ArrayLength<N>,
[src]
impl<N, R, C> Deref for MatrixArray<N, R, C> where
C: DimName,
R: DimName,
<R as DimName>::Value: Mul<<C as DimName>::Value>,
<<R as DimName>::Value as Mul<<C as DimName>::Value>>::Output: ArrayLength<N>,
type Target = GenericArray<N, <<R as DimName>::Value as Mul<<C as DimName>::Value>>::Output>
The resulting type after dereferencing.
fn deref(&self) -> &<MatrixArray<N, R, C> as Deref>::Target
[src]
fn deref(&self) -> &<MatrixArray<N, R, C> as Deref>::Target
impl<N, R, C> Clone for MatrixArray<N, R, C> where
C: DimName,
N: Clone,
R: DimName,
<R as DimName>::Value: Mul<<C as DimName>::Value>,
<<R as DimName>::Value as Mul<<C as DimName>::Value>>::Output: ArrayLength<N>,
[src]
impl<N, R, C> Clone for MatrixArray<N, R, C> where
C: DimName,
N: Clone,
R: DimName,
<R as DimName>::Value: Mul<<C as DimName>::Value>,
<<R as DimName>::Value as Mul<<C as DimName>::Value>>::Output: ArrayLength<N>,
fn clone(&self) -> MatrixArray<N, R, C>
[src]
fn clone(&self) -> MatrixArray<N, R, C>
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<N, R, C> ContiguousStorageMut<N, R, C> for MatrixArray<N, R, C> where
C: DimName,
N: Scalar,
R: DimName,
<R as DimName>::Value: Mul<<C as DimName>::Value>,
<<R as DimName>::Value as Mul<<C as DimName>::Value>>::Output: ArrayLength<N>,
DefaultAllocator: Allocator<N, R, C>,
<DefaultAllocator as Allocator<N, R, C>>::Buffer == MatrixArray<N, R, C>,
[src]
impl<N, R, C> ContiguousStorageMut<N, R, C> for MatrixArray<N, R, C> where
C: DimName,
N: Scalar,
R: DimName,
<R as DimName>::Value: Mul<<C as DimName>::Value>,
<<R as DimName>::Value as Mul<<C as DimName>::Value>>::Output: ArrayLength<N>,
DefaultAllocator: Allocator<N, R, C>,
<DefaultAllocator as Allocator<N, R, C>>::Buffer == MatrixArray<N, R, C>,
impl<N, R, C> DerefMut for MatrixArray<N, R, C> where
C: DimName,
R: DimName,
<R as DimName>::Value: Mul<<C as DimName>::Value>,
<<R as DimName>::Value as Mul<<C as DimName>::Value>>::Output: ArrayLength<N>,
[src]
impl<N, R, C> DerefMut for MatrixArray<N, R, C> where
C: DimName,
R: DimName,
<R as DimName>::Value: Mul<<C as DimName>::Value>,
<<R as DimName>::Value as Mul<<C as DimName>::Value>>::Output: ArrayLength<N>,
fn deref_mut(&mut self) -> &mut <MatrixArray<N, R, C> as Deref>::Target
[src]
fn deref_mut(&mut self) -> &mut <MatrixArray<N, R, C> as Deref>::Target
impl<N, R, C> Debug for MatrixArray<N, R, C> where
C: DimName,
N: Debug,
R: DimName,
<R as DimName>::Value: Mul<<C as DimName>::Value>,
<<R as DimName>::Value as Mul<<C as DimName>::Value>>::Output: ArrayLength<N>,
[src]
impl<N, R, C> Debug for MatrixArray<N, R, C> where
C: DimName,
N: Debug,
R: DimName,
<R as DimName>::Value: Mul<<C as DimName>::Value>,
<<R as DimName>::Value as Mul<<C as DimName>::Value>>::Output: ArrayLength<N>,
impl<N, R, C> Serialize for MatrixArray<N, R, C> where
C: DimName,
N: Scalar + Serialize,
R: DimName,
<R as DimName>::Value: Mul<<C as DimName>::Value>,
<<R as DimName>::Value as Mul<<C as DimName>::Value>>::Output: ArrayLength<N>,
[src]
impl<N, R, C> Serialize for MatrixArray<N, R, C> where
C: DimName,
N: Scalar + Serialize,
R: DimName,
<R as DimName>::Value: Mul<<C as DimName>::Value>,
<<R as DimName>::Value as Mul<<C as DimName>::Value>>::Output: ArrayLength<N>,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
impl<'a, N, R, C> Deserialize<'a> for MatrixArray<N, R, C> where
C: DimName,
N: Scalar + Deserialize<'a>,
R: DimName,
<R as DimName>::Value: Mul<<C as DimName>::Value>,
<<R as DimName>::Value as Mul<<C as DimName>::Value>>::Output: ArrayLength<N>,
[src]
impl<'a, N, R, C> Deserialize<'a> for MatrixArray<N, R, C> where
C: DimName,
N: Scalar + Deserialize<'a>,
R: DimName,
<R as DimName>::Value: Mul<<C as DimName>::Value>,
<<R as DimName>::Value as Mul<<C as DimName>::Value>>::Output: ArrayLength<N>,
fn deserialize<D>(
deserializer: D
) -> Result<MatrixArray<N, R, C>, <D as Deserializer<'a>>::Error> where
D: Deserializer<'a>,
[src]
fn deserialize<D>(
deserializer: D
) -> Result<MatrixArray<N, R, C>, <D as Deserializer<'a>>::Error> where
D: Deserializer<'a>,
Auto Trait Implementations
impl<N, R, C> Send for MatrixArray<N, R, C> where
N: Send,
impl<N, R, C> Send for MatrixArray<N, R, C> where
N: Send,
impl<N, R, C> Sync for MatrixArray<N, R, C> where
N: Sync,
impl<N, R, C> Sync for MatrixArray<N, R, C> where
N: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
impl<T> Any for T where
T: Any,
[src]
impl<T> Any for T where
T: Any,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
impl<T> SetParameter for T
[src]
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
[src]
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
impl<V> IntoVec for V
[src]
impl<V> IntoVec for V
impl<T> IntoPnt for T where
T: Scalar,
[src]
impl<T> IntoPnt for T where
T: Scalar,
impl<T> IntoPnt for T where
T: Scalar,
[src]
impl<T> IntoPnt for T where
T: Scalar,
impl<T> IntoPnt for T where
T: Scalar,
[src]
impl<T> IntoPnt for T where
T: Scalar,
impl<V> IntoPnt for V
[src]
impl<V> IntoPnt for V
impl<T> Scalar for T where
T: Copy + PartialEq<T> + Any + Debug,
[src]
impl<T> Scalar for T where
T: Copy + PartialEq<T> + Any + Debug,
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
[src]
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
[src]
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
[src]
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
[src]
fn from_subset(element: &SS) -> SP
impl<T> Same for T
[src]
impl<T> Same for T
type Output = T
Should always be Self