[][src]Struct tract_core::dim::TDim

pub struct TDim(_);

Methods

impl TDim[src]

pub fn is_one(&self) -> bool[src]

pub fn s() -> TDim[src]

pub fn stream() -> TDim[src]

pub fn as_const(&self) -> Option<i32>[src]

pub fn eval(&self, s: i32) -> Option<i32>[src]

pub fn is_stream(&self) -> bool[src]

pub fn to_integer(&self) -> TractResult<i32>[src]

pub fn div_ceil(&self, other: TDim) -> TDim[src]

Trait Implementations

impl Output for TDim[src]

fn wrap(self) -> Wrapped[src]

Wraps self in the Wrapped type.

impl IntoExp<GenericFact<TDim>> for TDim[src]

impl Datum for TDim[src]

impl DimLike for TDim[src]

fn div_ceil(&self, other: usize) -> Self[src]

impl Copy for TDim[src]

impl PartialEq<TDim> for TDim[src]

impl Default for TDim[src]

impl From<TDim> for Tensor[src]

impl From<i64> for TDim[src]

impl From<i32> for TDim[src]

impl From<isize> for TDim[src]

impl From<usize> for TDim[src]

impl<'a> From<&'a usize> for TDim[src]

impl Clone for TDim[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for TDim[src]

impl Display for TDim[src]

impl Debug for TDim[src]

impl Sub<TDim> for TDim[src]

type Output = Self

The resulting type after applying the - operator.

impl<I: AsPrimitive<i32>> Sub<I> for TDim[src]

type Output = Self

The resulting type after applying the - operator.

impl Add<TDim> for TDim[src]

type Output = Self

The resulting type after applying the + operator.

impl<I: AsPrimitive<i32>> Add<I> for TDim[src]

type Output = Self

The resulting type after applying the + operator.

impl Mul<TDim> for TDim[src]

type Output = Self

The resulting type after applying the * operator.

impl<I: AsPrimitive<i32>> Mul<I> for TDim[src]

type Output = Self

The resulting type after applying the * operator.

impl Div<TDim> for TDim[src]

type Output = Self

The resulting type after applying the / operator.

impl<I: AsPrimitive<i32>> Div<I> for TDim[src]

type Output = Self

The resulting type after applying the / operator.

impl Rem<TDim> for TDim[src]

type Output = Self

The resulting type after applying the % operator.

impl<I: AsPrimitive<i32>> Rem<I> for TDim[src]

type Output = Self

The resulting type after applying the % operator.

impl Neg for TDim[src]

type Output = Self

The resulting type after applying the - operator.

impl AddAssign<TDim> for TDim[src]

impl SubAssign<TDim> for TDim[src]

impl MulAssign<TDim> for TDim[src]

impl DivAssign<TDim> for TDim[src]

impl RemAssign<TDim> for TDim[src]

impl FromIterator<TDim> for ShapeFact[src]

fn from_iter<I: IntoIterator<Item = TDim>>(iter: I) -> ShapeFact[src]

Converts an iterator over usize into a closed shape.

impl Zero for TDim[src]

impl One for TDim[src]

fn is_one(&self) -> bool where
    Self: PartialEq<Self>, 
[src]

Returns true if self is equal to the multiplicative identity. Read more

Auto Trait Implementations

impl Send for TDim

impl Sync for TDim

Blanket Implementations

impl<T, E> IntoExp for E where
    E: 'static + TExp<T>, 
[src]

impl<I> ToDim for I where
    I: Into<TDim>, 
[src]

impl<PB, Tract> ToTract for PB where
    Tract: Tractify<PB>, 
[src]

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

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

type Owned = T

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.

impl<T> Downcast for T where
    T: Any
[src]

impl<T> LinalgScalar for T where
    T: One<Output = T> + Add<T, Output = T> + Sub<T, Output = T> + 'static + Mul<T> + Copy + Div<T, Output = T> + Zero
[src]

impl<T, Rhs, Output> NumOps for T where
    T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>, 
[src]

impl<T, Rhs> NumAssignOps for T where
    T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>, 
[src]

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