Struct M32

Source
pub struct M32<T: TensorTrait>(/* private fields */);

Trait Implementations§

Source§

impl<T, U, V> Add<M32<U>> for M32<T>
where Self: Tensor<Value = T>, T: TensorTrait + Add<U, Output = V>, U: TensorTrait, V: TensorTrait,

Source§

type Output = M32<V>

The resulting type after applying the + operator.
Source§

fn add(self, other: M32<U>) -> Self::Output

Performs the + operation. Read more
Source§

impl<T, U> AddAssign<M32<U>> for M32<T>
where T: TensorTrait + AddAssign<U>, U: TensorTrait,

Source§

fn add_assign(&mut self, other: M32<U>)

Performs the += operation. Read more
Source§

impl<T: TensorTrait> Clone for M32<T>

Source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T, U, V> CwiseMul<M32<U>> for M32<T>
where T: TensorTrait + Mul<U, Output = V>, U: TensorTrait, V: TensorTrait,

Source§

type Output = M32<V>

Source§

fn cwise_mul(self, other: M32<U>) -> Self::Output

Source§

impl<T, U> CwiseMulAssign<M32<U>> for M32<T>
where T: TensorTrait + MulAssign<U>, U: TensorTrait,

Source§

fn cwise_mul_assign(&mut self, other: M32<U>)

Source§

impl<T: TensorTrait> Debug for M32<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T: TensorTrait> Default for M32<T>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<T: TensorTrait> From<T> for M32<T>

Source§

fn from(t: T) -> Self

Converts to this type from the input type.
Source§

impl<T: TensorTrait> Index<(usize, usize)> for M32<T>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, (i, i): (usize, usize)) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
Source§

impl<T: TensorTrait> Index<usize> for M32<T>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, i: usize) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
Source§

impl<T: TensorTrait> IndexMut<(usize, usize)> for M32<T>

Source§

fn index_mut(&mut self, (i, i): (usize, usize)) -> &mut T

Performs the mutable indexing (container[index]) operation. Read more
Source§

impl<T: TensorTrait> IndexMut<usize> for M32<T>

Source§

fn index_mut(&mut self, i: usize) -> &mut T

Performs the mutable indexing (container[index]) operation. Read more
Source§

impl<T, U, V> Mul<M22<U>> for M32<T>
where T: TensorTrait + Mul<U, Output = V>, U: TensorTrait, V: TensorTrait,

Source§

type Output = M32<V>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: M22<U>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T, U, V> Mul<M23<U>> for M32<T>
where T: TensorTrait + Mul<U, Output = V>, U: TensorTrait, V: TensorTrait,

Source§

type Output = M33<V>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: M23<U>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T, U, V> Mul<M24<U>> for M32<T>
where T: TensorTrait + Mul<U, Output = V>, U: TensorTrait, V: TensorTrait,

Source§

type Output = M34<V>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: M24<U>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T, U, V> Mul<M32<U>> for M23<T>
where T: TensorTrait + Mul<U, Output = V>, U: TensorTrait, V: TensorTrait,

Source§

type Output = M22<V>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: M32<U>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T, U, V> Mul<M32<U>> for M33<T>
where T: TensorTrait + Mul<U, Output = V>, U: TensorTrait, V: TensorTrait,

Source§

type Output = M32<V>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: M32<U>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T, U, V> Mul<M32<U>> for M43<T>
where T: TensorTrait + Mul<U, Output = V>, U: TensorTrait, V: TensorTrait,

Source§

type Output = M32<V>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: M32<U>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T, U, V> Mul<V2<U>> for M32<T>
where T: TensorTrait + Mul<U, Output = V>, U: TensorTrait, V: TensorTrait,

Source§

type Output = V3<V>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: V2<U>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T, U> MulAssign<U> for M32<T>
where T: TensorTrait + MulAssign<U>, U: Clone,

Source§

fn mul_assign(&mut self, other: U)

Performs the *= operation. Read more
Source§

impl<T: TensorTrait> PartialEq for M32<T>

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<T> Tensor for M32<T>
where T: TensorTrait,

Source§

const SIZE: usize = 6usize

Source§

const NDIM: usize = 2usize

Source§

type Value = T

Source§

fn dims() -> Vec<usize>

Source§

fn get_dims(&self) -> Vec<usize>

Source§

impl<T> TensorTranspose<M23<T>, T> for M32<T>
where T: TensorTrait,

Source§

fn transpose(self) -> M23<T>

Source§

impl<T> TensorTranspose<M32<T>, T> for M23<T>
where T: TensorTrait,

Source§

fn transpose(self) -> M32<T>

Source§

impl<T: TensorTrait> TryFrom<&[T]> for M32<T>

Source§

type Error = TensorError

The type returned in the event of a conversion error.
Source§

fn try_from(v: &[T]) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<T: TensorTrait> TryFrom<Vec<T>> for M32<T>

Source§

type Error = TensorError

The type returned in the event of a conversion error.
Source§

fn try_from(v: Vec<T>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<T: TensorTrait> Copy for M32<T>

Auto Trait Implementations§

§

impl<T> Freeze for M32<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for M32<T>
where T: RefUnwindSafe,

§

impl<T> Send for M32<T>
where T: Send,

§

impl<T> Sync for M32<T>
where T: Sync,

§

impl<T> Unpin for M32<T>
where T: Unpin,

§

impl<T> UnwindSafe for M32<T>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.