Node

Trait Node 

Source
pub trait Node {
    // Provided methods
    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 { ... }
}
Expand description

Base trait for operator nodes.

Provided Methods§

Source

fn add<N: Node>(self, other: N) -> Add<Self, N>
where Self: Sized,

Source

fn sub<N: Node>(self, other: N) -> Sub<Self, N>
where Self: Sized,

Source

fn mul<N: Node>(self, other: N) -> Mul<Self, N>
where Self: Sized,

Source

fn div<N: Node>(self, other: N) -> Div<Self, N>
where Self: Sized,

Source

fn dot<N: Node>(self, other: N) -> TensorDot<Self, N>
where Self: Sized,

Source

fn abs(self) -> Abs<Self>
where Self: Sized,

Source

fn neg(self) -> Negate<Self>
where Self: Sized,

Source

fn pow<P>(self, power: P) -> Power<Self, P>
where Self: Sized,

Source

fn ln(self) -> Ln<Self>
where Self: Sized,

Source

fn squared(self) -> Square<Self>
where Self: Sized,

Source

fn sum(self) -> Sum<Self>
where Self: Sized,

Source

fn sigmoid(self) -> Sigmoid<Self>
where Self: Sized,

Implementors§

Source§

impl<I> Node for Variable<I>

Source§

impl<I, T> Node for VariableAdjoint<I, T>

Source§

impl<L: Node, R: Node> Node for Add<L, R>

Source§

impl<L: Node, R: Node> Node for Div<L, R>

Source§

impl<L: Node, R: Node> Node for Mul<L, R>

Source§

impl<L: Node, R: Node> Node for Sub<L, R>

Source§

impl<L: Node, R: Node, const AXES: usize> Node for Contract<AXES, L, R>

Source§

impl<N: Node> Node for DiGamma<N>

Source§

impl<N: Node> Node for Erf<N>

Source§

impl<N: Node> Node for Gamma<N>

Source§

impl<N: Node> Node for LogGamma<N>

Source§

impl<N: Node> Node for Abs<N>

Source§

impl<N: Node> Node for AddOne<N>

Source§

impl<N: Node> Node for Dirac<N>

Source§

impl<N: Node> Node for Double<N>

Source§

impl<N: Node> Node for Exp<N>

Source§

impl<N: Node> Node for Ln<N>

Source§

impl<N: Node> Node for Negate<N>

Source§

impl<N: Node> Node for OneSub<N>

Source§

impl<N: Node> Node for Rabbit<N>

Source§

impl<N: Node> Node for Sigmoid<N>

Source§

impl<N: Node> Node for Sign<N>

Source§

impl<N: Node> Node for Square<N>

Source§

impl<N: Node> Node for SubOne<N>

Source§

impl<N: Node> Node for Sum<N>

Source§

impl<N: Node> Node for XLnX<N>

Source§

impl<N: Node> Node for ArcCos<N>

Source§

impl<N: Node> Node for ArcCosh<N>

Source§

impl<N: Node> Node for ArcSin<N>

Source§

impl<N: Node> Node for ArcSinh<N>

Source§

impl<N: Node> Node for ArcTan<N>

Source§

impl<N: Node> Node for ArcTanh<N>

Source§

impl<N: Node> Node for Cos<N>

Source§

impl<N: Node> Node for Cosh<N>

Source§

impl<N: Node> Node for Sin<N>

Source§

impl<N: Node> Node for Sinh<N>

Source§

impl<N: Node> Node for Tan<N>

Source§

impl<N: Node> Node for Tanh<N>

Source§

impl<N: Node, E: Node> Node for Power<N, E>

Source§

impl<N: Node, T> Node for ConstantAdjoint<N, T>

Source§

impl<S: Shaped + IntoSpec> Node for Constant<S>