grad

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

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.

Directories

Path Synopsis
Package testgrad provides function to test autograd.
Package testgrad provides function to test autograd.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL