autofd

package
v0.0.0-...-c168b00 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package autofd provides functions to generate derivatives.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Derivative

func Derivative(w io.Writer, f Func, d2 bool) error

Derivative generates code for derivatives from the given function declaration. If d2 is true, the generated function returns both the first and second derivatives. Otherwise, only the first derivative function is generated.

Types

type Func

type Func struct {
	Path  string // Import path of the package holding the function.
	Name  string // Function or method name.
	Deriv string // Name of the output derivative function.
}

Func describes which function will be derived.

Directories

Path Synopsis
internal
testfunc
Package testfunc holds various functions to test autofd features.
Package testfunc holds various functions to test autofd features.

Jump to

Keyboard shortcuts

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