[−][src]Struct adtensor::ADScalar
Fields
v: T
g: GenericArray<T, P>
Methods
impl<T, P1> ADScalar<T, P1> where
P1: Unsigned + ArrayLength<T>,
[src]
P1: Unsigned + ArrayLength<T>,
pub fn zip<P2, F>(
self,
rhs: ADScalar<T, P2>,
f: F
) -> ADScalar<T, <P1 as Max<P2>>::Output> where
P1: Max<P2>,
P2: Unsigned + ArrayLength<T>,
<P1 as Max<P2>>::Output: ArrayLength<T>,
ADScalar<T, <P1 as Max<P2>>::Output>: Default,
F: Fn(T, T) -> T,
T: Default + Clone,
[src]
self,
rhs: ADScalar<T, P2>,
f: F
) -> ADScalar<T, <P1 as Max<P2>>::Output> where
P1: Max<P2>,
P2: Unsigned + ArrayLength<T>,
<P1 as Max<P2>>::Output: ArrayLength<T>,
ADScalar<T, <P1 as Max<P2>>::Output>: Default,
F: Fn(T, T) -> T,
T: Default + Clone,
Trait Implementations
impl<T, P> Clone for ADScalar<T, P> where
P: ArrayLength<T>,
T: Clone,
[src]
P: ArrayLength<T>,
T: Clone,
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T, P> Copy for ADScalar<T, P> where
P: ArrayLength<T>,
T: Copy,
GenericArray<T, P>: Copy,
[src]
P: ArrayLength<T>,
T: Copy,
GenericArray<T, P>: Copy,
impl<T, P> Default for ADScalar<T, P> where
P: ArrayLength<T>,
T: Default,
[src]
P: ArrayLength<T>,
T: Default,
impl<T, P> Add<T> for ADScalar<T, P> where
P: ArrayLength<T>,
T: Add<T, Output = T>,
[src]
P: ArrayLength<T>,
T: Add<T, Output = T>,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: T) -> Self
[src]
impl<T, P1, P2> Add<ADScalar<T, P2>> for ADScalar<T, P1> where
P1: Unsigned + Max<P2> + ArrayLength<T>,
P2: Unsigned + ArrayLength<T>,
<P1 as Max<P2>>::Output: ArrayLength<T>,
ADScalar<T, <P1 as Max<P2>>::Output>: Default,
T: Add<T, Output = T> + Default + Clone,
[src]
P1: Unsigned + Max<P2> + ArrayLength<T>,
P2: Unsigned + ArrayLength<T>,
<P1 as Max<P2>>::Output: ArrayLength<T>,
ADScalar<T, <P1 as Max<P2>>::Output>: Default,
T: Add<T, Output = T> + Default + Clone,
type Output = ADScalar<T, <P1 as Max<P2>>::Output>
The resulting type after applying the +
operator.
fn add(self, rhs: ADScalar<T, P2>) -> Self::Output
[src]
impl<T, P> Sub<T> for ADScalar<T, P> where
P: ArrayLength<T>,
T: Sub<T, Output = T>,
[src]
P: ArrayLength<T>,
T: Sub<T, Output = T>,
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: T) -> Self
[src]
impl<T, P1, P2> Sub<ADScalar<T, P2>> for ADScalar<T, P1> where
P1: Unsigned + Max<P2> + ArrayLength<T>,
P2: Unsigned + ArrayLength<T>,
<P1 as Max<P2>>::Output: ArrayLength<T>,
ADScalar<T, <P1 as Max<P2>>::Output>: Default,
T: Sub<T, Output = T> + Default + Clone,
[src]
P1: Unsigned + Max<P2> + ArrayLength<T>,
P2: Unsigned + ArrayLength<T>,
<P1 as Max<P2>>::Output: ArrayLength<T>,
ADScalar<T, <P1 as Max<P2>>::Output>: Default,
T: Sub<T, Output = T> + Default + Clone,
type Output = ADScalar<T, <P1 as Max<P2>>::Output>
The resulting type after applying the -
operator.
fn sub(self, rhs: ADScalar<T, P2>) -> Self::Output
[src]
impl<T, P> Mul<T> for ADScalar<T, P> where
P: ArrayLength<T>,
T: Mul<T, Output = T> + Clone,
[src]
P: ArrayLength<T>,
T: Mul<T, Output = T> + Clone,
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: T) -> Self
[src]
impl<T, P1, P2> Mul<ADScalar<T, P2>> for ADScalar<T, P1> where
P1: Unsigned + Max<P2> + ArrayLength<T>,
P2: Unsigned + ArrayLength<T>,
<P1 as Max<P2>>::Output: ArrayLength<T>,
ADScalar<T, <P1 as Max<P2>>::Output>: Default,
T: Add<T, Output = T> + Mul<T, Output = T> + Default + Clone,
[src]
P1: Unsigned + Max<P2> + ArrayLength<T>,
P2: Unsigned + ArrayLength<T>,
<P1 as Max<P2>>::Output: ArrayLength<T>,
ADScalar<T, <P1 as Max<P2>>::Output>: Default,
T: Add<T, Output = T> + Mul<T, Output = T> + Default + Clone,
type Output = ADScalar<T, <P1 as Max<P2>>::Output>
The resulting type after applying the *
operator.
fn mul(self, rhs: ADScalar<T, P2>) -> Self::Output
[src]
impl<T, P> Div<T> for ADScalar<T, P> where
P: ArrayLength<T>,
T: Div<T, Output = T> + Clone,
[src]
P: ArrayLength<T>,
T: Div<T, Output = T> + Clone,
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: T) -> Self
[src]
impl<T, P1, P2> Div<ADScalar<T, P2>> for ADScalar<T, P1> where
P1: Unsigned + Max<P2> + ArrayLength<T>,
P2: Unsigned + ArrayLength<T>,
<P1 as Max<P2>>::Output: ArrayLength<T>,
ADScalar<T, <P1 as Max<P2>>::Output>: Default,
T: Sub<T, Output = T> + Div<T, Output = T> + Mul<T, Output = T> + Default + Clone + One,
[src]
P1: Unsigned + Max<P2> + ArrayLength<T>,
P2: Unsigned + ArrayLength<T>,
<P1 as Max<P2>>::Output: ArrayLength<T>,
ADScalar<T, <P1 as Max<P2>>::Output>: Default,
T: Sub<T, Output = T> + Div<T, Output = T> + Mul<T, Output = T> + Default + Clone + One,
type Output = ADScalar<T, <P1 as Max<P2>>::Output>
The resulting type after applying the /
operator.
fn div(self, rhs: ADScalar<T, P2>) -> Self::Output
[src]
impl<T, P> Debug for ADScalar<T, P> where
P: ArrayLength<T>,
T: Debug,
[src]
P: ArrayLength<T>,
T: Debug,
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same for T
[src]
type Output = T
Should always be Self