pub struct ConstantAdjoint<N, T> {
pub node: N,
pub target: T,
}Expand description
Source node for the adjoint of constants.
Fields§
§node: NThe original source Node.
target: TThe Identifier associated with the adjoint target.
Trait Implementations§
Source§impl<N: Clone, T: Clone> Clone for ConstantAdjoint<N, T>
impl<N: Clone, T: Clone> Clone for ConstantAdjoint<N, T>
Source§fn clone(&self) -> ConstantAdjoint<N, T>
fn clone(&self) -> ConstantAdjoint<N, T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<N, T, A> Contains<A> for ConstantAdjoint<N, T>
impl<N, T, A> Contains<A> for ConstantAdjoint<N, T>
Source§impl<N, T> Display for ConstantAdjoint<N, T>
impl<N, T> Display for ConstantAdjoint<N, T>
Source§impl<N, T, C, F, SN, CN, ST, CT, SA, CA> Function<C> for ConstantAdjoint<N, T>where
F: Scalar,
SN: Concat<ST, Shape = SA>,
ST: Shape,
SA: Shape,
CN: Class<SN>,
CT: Class<ST>,
CA: Class<SA>,
Prec: Precedence<CN, CT, Class = CA>,
N: Function<C>,
N::Value: Buffer<Field = F, Shape = SN, Class = CN>,
T: Identifier,
C: Read<T>,
C::Buffer: Buffer<Field = F, Shape = ST, Class = CT>,
<CA as Class<SA>>::Buffer<F>: Buffer<Shape = SA>,
impl<N, T, C, F, SN, CN, ST, CT, SA, CA> Function<C> for ConstantAdjoint<N, T>where
F: Scalar,
SN: Concat<ST, Shape = SA>,
ST: Shape,
SA: Shape,
CN: Class<SN>,
CT: Class<ST>,
CA: Class<SA>,
Prec: Precedence<CN, CT, Class = CA>,
N: Function<C>,
N::Value: Buffer<Field = F, Shape = SN, Class = CN>,
T: Identifier,
C: Read<T>,
C::Buffer: Buffer<Field = F, Shape = ST, Class = CT>,
<CA as Class<SA>>::Buffer<F>: Buffer<Shape = SA>,
Source§impl<N: Node, T> Node for ConstantAdjoint<N, T>
impl<N: Node, T> Node for ConstantAdjoint<N, T>
fn add<N: Node>(self, other: N) -> Add<Self, N>where
Self: Sized,
fn sub<N: Node>(self, other: N) -> Sub<Self, N>where
Self: Sized,
fn mul<N: Node>(self, other: N) -> Mul<Self, N>where
Self: Sized,
fn div<N: Node>(self, other: N) -> Div<Self, N>where
Self: Sized,
fn dot<N: Node>(self, other: N) -> TensorDot<Self, N>where
Self: Sized,
fn abs(self) -> Abs<Self>where
Self: Sized,
fn neg(self) -> Negate<Self>where
Self: Sized,
fn pow<P>(self, power: P) -> Power<Self, P>where
Self: Sized,
fn ln(self) -> Ln<Self>where
Self: Sized,
fn squared(self) -> Square<Self>where
Self: Sized,
fn sum(self) -> Sum<Self>where
Self: Sized,
fn sigmoid(self) -> Sigmoid<Self>where
Self: Sized,
Source§impl<N: Node, T> ToExpr for ConstantAdjoint<N, T>
impl<N: Node, T> ToExpr for ConstantAdjoint<N, T>
impl<N: Copy, T: Copy> Copy for ConstantAdjoint<N, T>
impl<N: Eq, T: Eq> Eq for ConstantAdjoint<N, T>
impl<N, T> StructuralPartialEq for ConstantAdjoint<N, T>
Auto Trait Implementations§
impl<N, T> Freeze for ConstantAdjoint<N, T>
impl<N, T> RefUnwindSafe for ConstantAdjoint<N, T>where
N: RefUnwindSafe,
T: RefUnwindSafe,
impl<N, T> Send for ConstantAdjoint<N, T>
impl<N, T> Sync for ConstantAdjoint<N, T>
impl<N, T> Unpin for ConstantAdjoint<N, T>
impl<N, T> UnwindSafe for ConstantAdjoint<N, T>where
N: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more