[−][src]Struct tract_core::dim::TDim
Methods
impl TDim
[src]
impl TDim
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]
impl Output for TDim
fn into_wrapped(source: TDim) -> Wrapped | [src] |
fn from_wrapped(wrapped: Wrapped) -> TractResult<TDim> | [src] |
fn wrap(self) -> Wrapped | [src] |
Wraps self in the Wrapped type.
impl IntoExp<GenericFact<TDim>> for TDim
[src]
impl IntoExp<GenericFact<TDim>> for TDim
impl Datum for TDim
[src]
impl Datum for TDim
fn name() -> &'static str | [src] |
fn datum_type() -> DatumType | [src] |
fn packed_mat_mul(m: usize, k: usize, n: usize) -> Option<Box<dyn MatMul<Self>>> | [src] |
impl DimLike for TDim
[src]
impl DimLike for TDim
fn to_integer(&self) -> TractResult<i32> | [src] |
fn div_ceil(&self, other: usize) -> Self | [src] |
impl From<TDim> for Tensor
[src]
impl From<TDim> for Tensor
impl From<i64> for TDim
[src]
impl From<i64> for TDim
impl From<i32> for TDim
[src]
impl From<i32> for TDim
impl From<isize> for TDim
[src]
impl From<isize> for TDim
impl From<usize> for TDim
[src]
impl From<usize> for TDim
impl<'a> From<&'a usize> for TDim
[src]
impl<'a> From<&'a usize> for TDim
impl Eq for TDim
[src]
impl Eq for TDim
impl Copy for TDim
[src]
impl Copy for TDim
impl Default for TDim
[src]
impl Default for TDim
impl PartialEq<TDim> for TDim
[src]
impl PartialEq<TDim> for TDim
impl Clone for TDim
[src]
impl Clone for TDim
fn clone(&self) -> TDim | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl Debug for TDim
[src]
impl Debug for TDim
impl Display for TDim
[src]
impl Display for TDim
impl Add<TDim> for TDim
[src]
impl Add<TDim> for TDim
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: TDim) -> Self | [src] |
impl<I: AsPrimitive<i32>> Add<I> for TDim
[src]
impl<I: AsPrimitive<i32>> Add<I> for TDim
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: I) -> Self | [src] |
impl Sub<TDim> for TDim
[src]
impl Sub<TDim> for TDim
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: TDim) -> Self | [src] |
impl<I: AsPrimitive<i32>> Sub<I> for TDim
[src]
impl<I: AsPrimitive<i32>> Sub<I> for TDim
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: I) -> Self | [src] |
impl Mul<TDim> for TDim
[src]
impl Mul<TDim> for TDim
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: TDim) -> Self | [src] |
impl<I: AsPrimitive<i32>> Mul<I> for TDim
[src]
impl<I: AsPrimitive<i32>> Mul<I> for TDim
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: I) -> Self | [src] |
impl Div<TDim> for TDim
[src]
impl Div<TDim> for TDim
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: TDim) -> TDim | [src] |
impl<I: AsPrimitive<i32>> Div<I> for TDim
[src]
impl<I: AsPrimitive<i32>> Div<I> for TDim
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: I) -> Self | [src] |
impl Rem<TDim> for TDim
[src]
impl Rem<TDim> for TDim
type Output = Self
The resulting type after applying the %
operator.
fn rem(self, rhs: TDim) -> TDim | [src] |
impl<I: AsPrimitive<i32>> Rem<I> for TDim
[src]
impl<I: AsPrimitive<i32>> Rem<I> for TDim
type Output = Self
The resulting type after applying the %
operator.
fn rem(self, rhs: I) -> Self | [src] |
impl Neg for TDim
[src]
impl Neg for TDim
impl AddAssign<TDim> for TDim
[src]
impl AddAssign<TDim> for TDim
fn add_assign(&mut self, rhs: TDim) | [src] |
impl SubAssign<TDim> for TDim
[src]
impl SubAssign<TDim> for TDim
fn sub_assign(&mut self, rhs: TDim) | [src] |
impl MulAssign<TDim> for TDim
[src]
impl MulAssign<TDim> for TDim
fn mul_assign(&mut self, rhs: TDim) | [src] |
impl DivAssign<TDim> for TDim
[src]
impl DivAssign<TDim> for TDim
fn div_assign(&mut self, rhs: TDim) | [src] |
impl RemAssign<TDim> for TDim
[src]
impl RemAssign<TDim> for TDim
fn rem_assign(&mut self, rhs: TDim) | [src] |
impl FromIterator<TDim> for ShapeFact
[src]
impl FromIterator<TDim> for ShapeFact
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 Zero for TDim
impl One for TDim
[src]
impl One for TDim
Auto Trait Implementations
Blanket Implementations
impl<T, E> IntoExp for E where
E: 'static + TExp<T>,
[src]
impl<T, E> IntoExp for E where
E: 'static + TExp<T>,
impl<I> ToDim for I where
I: Into<TDim>,
[src]
impl<I> ToDim for I where
I: Into<TDim>,
impl<PB, Tract> ToTract for PB where
Tract: Tractify<PB>,
[src]
impl<PB, Tract> ToTract for PB where
Tract: Tractify<PB>,
fn tractify(&Self) -> Result<Tract, TractError> | [src] |
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
impl<T> ToString for T where
T: Display + ?Sized,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T> Downcast for T where
T: Any,
[src]
impl<T> Downcast for T where
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static> | [src] |
fn as_any(&self) -> &(dyn Any + 'static) | [src] |
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static) | [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> 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,
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, 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>,
impl<T, Rhs> NumAssignOps for T where
T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,
[src]
impl<T, Rhs> NumAssignOps for T where
T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,
impl<T> Clone for T where
T: Clone,
[src]
impl<T> Clone for T where
T: Clone,