Skip to content


class BoxedForm<Value, Form>(x:Value, f:Form) < Expression<Value>

Boxed form.

  • Value: Result type.
  • Form: Expression form.

Member Variables

Name Description
x:Value Memoized result.
f:Form? Expression form.
d:Value? Accumulated upstream gradient.
gen:Integer Generation label.
genMax:Integer Maximum generation label with which constant(Integer) has been called. This is used to truncate recursions.
evalCount:Integer Number of times eval() has been called.
visitCount:Integer Number of times reval() or grad() has been called. Used to obtain pre- and post-order traversals of the expression graph.