Struct glucose::Matrix[][src]

#[repr(C)]pub struct Matrix<T, const M: usize, const N: usize> {
    pub data: [Vector<T, { M }>; N],
}

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]

pub fn zero() -> Self[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.

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.

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.

impl<T: Scalar, const M: usize, const N: usize> Sub<Matrix<T, M, N>> for Matrix<T, { M }, { N }>[src]

type Output = Self

The resulting type after applying the - operator.

Auto Trait Implementations

impl<T, const M: usize, const N: usize> RefUnwindSafe for Matrix<T, M, N> where
    T: RefUnwindSafe

impl<T, const M: usize, const N: usize> Send for Matrix<T, M, N> where
    T: Send

impl<T, const M: usize, const N: usize> Sync for Matrix<T, M, N> where
    T: Sync

impl<T, const M: usize, const N: usize> Unpin for Matrix<T, M, N> where
    T: Unpin

impl<T, const M: usize, const N: usize> UnwindSafe for Matrix<T, M, N> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Configure for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.