Documentation
¶
Overview ¶
Package grad implement GX functions to compute the gradient of GX functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Package = builtin.PackageBuilder{ FullPath: "math/grad", Builders: []builtin.Builder{ builtin.ParseSource(&fs), builtin.RegisterMacro("Func", FuncGrad), builtin.RegisterMacro("Set", SetGrad), }, }
Package description of the GX meta/grad package.
Functions ¶
func FuncGrad ¶
func FuncGrad(call elements.CallAt, macro *cpevelements.Macro, args []ir.Element) (*cpevelements.SyntheticFunc, error)
FuncGrad computes the gradient of a function.
func SetGrad ¶ added in v0.6.0
func SetGrad(call elements.CallAt, macro *cpevelements.Macro, args []ir.Element) (*cpevelements.SyntheticFunc, error)
SetGrad sets the gradient of a function.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.