Struct glucose::Matrix [−][src]
Fields
data: [Vector<T, { M }>; N]
Implementations
impl<T, const M: usize, const N: usize> Matrix<T, { M }, { N }>
[src]
pub const fn new(data: [Vector<T, { M }>; N]) -> Self
[src]
pub const fn len(&self) -> usize
[src]
pub fn layout() -> Layout
[src]
pub fn as_slice(&self) -> &[T]
[src]
pub fn as_slice_mut(&mut self) -> &mut [T]
[src]
pub const fn as_ptr(&self) -> *const T
[src]
pub fn as_mut_ptr(&mut self) -> *mut T
[src]
pub fn as_bytes(&self) -> &[u8]
[src]
impl<T: Default + Copy, const M: usize, const N: usize> Matrix<T, { M }, { N }>
[src]
pub fn to_vectors(&self) -> [Vector<T, { M }>; N]
[src]
impl<T: Scalar, const M: usize, const N: usize> Matrix<T, { M }, { N }>
[src]
impl<T: Scalar, const N: usize> Matrix<T, { N }, { N }>
[src]
pub fn new_identity() -> Self
[src]
Trait Implementations
impl<T: Scalar, const M: usize, const N: usize> Add<Matrix<T, M, N>> for Matrix<T, { M }, { N }>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Self::Output
[src]
impl<T: Clone, const M: usize, const N: usize> Clone for Matrix<T, M, N>
[src]
impl<T: Copy, const M: usize, const N: usize> Copy for Matrix<T, M, N>
[src]
impl<T: Debug, const M: usize, const N: usize> Debug for Matrix<T, M, N>
[src]
impl<T: Default + Copy, const M: usize, const N: usize> Default for Matrix<T, { M }, { N }>
[src]
impl<T: Display, const M: usize, const N: usize> Display for Matrix<T, { M }, { N }>
[src]
impl<T: Default + Copy, const M: usize, const N: usize> From<[[T; M]; N]> for Matrix<T, { M }, { N }>
[src]
impl<T: Default + Copy, const M: usize> From<(Vec<(T, T), Global>, Vec<T, Global>, Vec<(T, T), Global>)> for Matrix<T, { M }, { 5 }>
[src]
impl<T: Copy, const N: usize> From<Matrix<T, N, 1_usize>> for Vector<T, { N }>
[src]
impl<T, const M: usize> From<Vector<T, M>> for Matrix<T, { M }, 1>
[src]
impl<T: Scalar, const M: usize, const N: usize, const P: usize> Mul<Matrix<T, N, P>> for Matrix<T, { M }, { N }>
[src]
type Output = Matrix<T, { M }, { P }>
The resulting type after applying the *
operator.
fn mul(self, rhs: Matrix<T, { N }, { P }>) -> Self::Output
[src]
impl<T: Scalar, const N: usize, const M: usize> Mul<Vector<T, N>> for Matrix<T, { M }, { N }>
[src]
type Output = Vector<T, { M }>
The resulting type after applying the *
operator.
fn mul(self, rhs: Vector<T, { N }>) -> Self::Output
[src]
impl<T: Scalar, const M: usize, const N: usize> Sub<Matrix<T, M, N>> for Matrix<T, { M }, { N }>
[src]
Auto Trait Implementations
impl<T, const M: usize, const N: usize> RefUnwindSafe for Matrix<T, M, N> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, const M: usize, const N: usize> Send for Matrix<T, M, N> where
T: Send,
T: Send,
impl<T, const M: usize, const N: usize> Sync for Matrix<T, M, N> where
T: Sync,
T: Sync,
impl<T, const M: usize, const N: usize> Unpin for Matrix<T, M, N> where
T: Unpin,
T: Unpin,
impl<T, const M: usize, const N: usize> UnwindSafe for Matrix<T, M, N> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Configure for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,