Tensor6Shape

Struct Tensor6Shape 

Source
pub struct Tensor6Shape<T1: DimTag, T2: DimTag, T3: DimTag, T4: DimTag, T5: DimTag, T6: DimTag> { /* private fields */ }

Implementations§

Source§

impl<T1: DimTag, T2: DimTag, T3: DimTag, T4: DimTag, T5: DimTag, T6: DimTag> Tensor6Shape<T1, T2, T3, T4, T5, T6>

Source

pub fn with_static<const N: usize>( &self, ) -> Tensor7Shape<T1, T2, T3, T4, T5, T6, StaticDimTag<N>>

Source

pub fn with<T7: DimTag>( &self, dimension: Dim<T7>, ) -> Tensor7Shape<T1, T2, T3, T4, T5, T6, T7>

Source

pub fn with_first(&self) -> Tensor7Shape<T1, T2, T3, T4, T5, T6, T1>

Source

pub fn with_second(&self) -> Tensor7Shape<T1, T2, T3, T4, T5, T6, T2>

Source

pub fn with_third(&self) -> Tensor7Shape<T1, T2, T3, T4, T5, T6, T3>

Source

pub fn with_fourth(&self) -> Tensor7Shape<T1, T2, T3, T4, T5, T6, T4>

Source

pub fn with_fifth(&self) -> Tensor7Shape<T1, T2, T3, T4, T5, T6, T5>

Source

pub fn with_sixth(&self) -> Tensor7Shape<T1, T2, T3, T4, T5, T6, T6>

Source

pub fn switch_12(&self) -> Tensor6Shape<T2, T1, T3, T4, T5, T6>

Source

pub fn switch_13(&self) -> Tensor6Shape<T3, T2, T1, T4, T5, T6>

Source

pub fn switch_14(&self) -> Tensor6Shape<T4, T2, T3, T1, T5, T6>

Source

pub fn switch_15(&self) -> Tensor6Shape<T5, T2, T3, T4, T1, T6>

Source

pub fn switch_16(&self) -> Tensor6Shape<T6, T2, T3, T4, T5, T1>

Trait Implementations§

Source§

impl<T1: Clone + DimTag, T2: Clone + DimTag, T3: Clone + DimTag, T4: Clone + DimTag, T5: Clone + DimTag, T6: Clone + DimTag> Clone for Tensor6Shape<T1, T2, T3, T4, T5, T6>

Source§

fn clone(&self) -> Tensor6Shape<T1, T2, T3, T4, T5, T6>

Returns a duplicate 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<T1: DimTag, T2: DimTag, T3: DimTag, T4: DimTag, T5: DimTag, T6: DimTag> Debug for Tensor6Shape<T1, T2, T3, T4, T5, T6>

Source§

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

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

impl<L1: DimTag, L2: DimTag, L3: DimTag, L4: DimTag, L5: DimTag, L6: DimTag, R1: DimTag, R2: DimTag, R3: DimTag, R4: DimTag, R5: DimTag, R6: DimTag> PartialEq<Tensor6Shape<R1, R2, R3, R4, R5, R6>> for Tensor6Shape<L1, L2, L3, L4, L5, L6>

Source§

fn eq(&self, other: &Tensor6Shape<R1, R2, R3, R4, R5, R6>) -> 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<T1: DimTag, T2: DimTag, T3: DimTag, T4: DimTag, T5: DimTag, T6: DimTag> Shape for Tensor6Shape<T1, T2, T3, T4, T5, T6>

Source§

const RANK: u16 = 6u16

The number of dimensions, also corresponding to the number of indexes.
Source§

fn count(&self) -> usize

The total number of coordinates
Source§

impl<T1: Copy + DimTag, T2: Copy + DimTag, T3: Copy + DimTag, T4: Copy + DimTag, T5: Copy + DimTag, T6: Copy + DimTag> Copy for Tensor6Shape<T1, T2, T3, T4, T5, T6>

Source§

impl<T1: Eq + DimTag, T2: Eq + DimTag, T3: Eq + DimTag, T4: Eq + DimTag, T5: Eq + DimTag, T6: Eq + DimTag> Eq for Tensor6Shape<T1, T2, T3, T4, T5, T6>

Auto Trait Implementations§

§

impl<T1, T2, T3, T4, T5, T6> Freeze for Tensor6Shape<T1, T2, T3, T4, T5, T6>

§

impl<T1, T2, T3, T4, T5, T6> RefUnwindSafe for Tensor6Shape<T1, T2, T3, T4, T5, T6>

§

impl<T1, T2, T3, T4, T5, T6> Send for Tensor6Shape<T1, T2, T3, T4, T5, T6>
where T1: Send, T2: Send, T3: Send, T4: Send, T5: Send, T6: Send,

§

impl<T1, T2, T3, T4, T5, T6> Sync for Tensor6Shape<T1, T2, T3, T4, T5, T6>
where T1: Sync, T2: Sync, T3: Sync, T4: Sync, T5: Sync, T6: Sync,

§

impl<T1, T2, T3, T4, T5, T6> Unpin for Tensor6Shape<T1, T2, T3, T4, T5, T6>
where T1: Unpin, T2: Unpin, T3: Unpin, T4: Unpin, T5: Unpin, T6: Unpin,

§

impl<T1, T2, T3, T4, T5, T6> UnwindSafe for Tensor6Shape<T1, T2, T3, T4, T5, T6>
where T1: UnwindSafe, T2: UnwindSafe, T3: UnwindSafe, T4: UnwindSafe, T5: UnwindSafe, T6: 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.