pub struct GradStep {
pub target: String,
pub wrt: Vec<String>,
pub output: String,
pub loc: Loc,
}Expand description
§Fase 109.a — grad <letName> wrt <x> [as <name>]: differentiate the
EXPRESSION a prior rich let bound (its AST rides the IR), at compile
time, symbolically. The derivative is checked (T931/T932), simplified,
and stored in the IR — a proof-carrying artifact, re-derived at deploy.
Fields§
§target: StringThe prior rich let whose expression is differentiated.
wrt: Vec<String>The variables to differentiate against (wrt x / wrt [x, y]).
output: StringResult binding (as:). Empty ⇒ d_<target>.
loc: LocTrait Implementations§
Auto Trait Implementations§
impl Freeze for GradStep
impl RefUnwindSafe for GradStep
impl Send for GradStep
impl Sync for GradStep
impl Unpin for GradStep
impl UnsafeUnpin for GradStep
impl UnwindSafe for GradStep
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreCreates a shared type from an unshared type.