Versions in this module Expand all Collapse all v0 v0.0.1 Sep 10, 2024 Changes in this version + type AliasNode struct + From *Buffer[T] + To *Buffer[T] + func Alias[T any](from BufferGetter[T], name string) *AliasNode[T] + func (n *AliasNode[T]) BufferDefs() []string + func (n *AliasNode[T]) BufferInits() []string + func (n *AliasNode[T]) FwdLines() []string + func (n *AliasNode[T]) Imports() []string + func (v *AliasNode[T]) BackLines() []string + func (v *AliasNode[T]) GradBufferClears() []string + type Buffer struct + Name string + OnGraph *Graph + func (v *Buffer[T]) Buf() *Buffer[T] + func (v *Buffer[T]) BufferDef() string + func (v *Buffer[T]) GradBufferDef() string + func (v *Buffer[T]) GradUseString() string + func (v *Buffer[T]) UseString() string + type BufferGetter interface + Buf func() *Buffer[T] + type Graph struct + Name string + Nodes []Node + func NewGraph(name string) *Graph + func (g *Graph) Add(n Node) + func (g *Graph) String() string + func (g *Graph) ToDefaultFile() error + func (g *Graph) ToFile(filename string) error + type Node interface + BackLines func() []string + BufferDefs func() []string + BufferInits func() []string + FwdLines func() []string + GradBufferClears func() []string + Imports func() []string + type NumBinaryNode struct + func NumAdd[T Numerical](left BufferGetter[T], right BufferGetter[T]) *NumBinaryNode[T] + func NumDiv[T Numerical](left BufferGetter[T], right BufferGetter[T]) *NumBinaryNode[T] + func NumMul[T Numerical](left BufferGetter[T], right BufferGetter[T]) *NumBinaryNode[T] + func NumSub[T Numerical](left BufferGetter[T], right BufferGetter[T]) *NumBinaryNode[T] + func (n *NumBinaryNode[T]) Buf() *Buffer[T] + func (n *NumBinaryNode[T]) BufferDefs() []string + func (n *NumBinaryNode[T]) BufferInits() []string + func (n *NumBinaryNode[T]) FwdLines() []string + func (n *NumBinaryNode[T]) Imports() []string + func (v *NumBinaryNode[T]) BackLines() []string + func (v *NumBinaryNode[T]) GradBufferClears() []string + type NumUnaryNode struct + func NumCos[T Numerical](in BufferGetter[T]) *NumUnaryNode[T] + func NumSin[T Numerical](in BufferGetter[T]) *NumUnaryNode[T] + func (n *NumUnaryNode[T]) Buf() *Buffer[T] + func (n *NumUnaryNode[T]) BufferDefs() []string + func (n *NumUnaryNode[T]) BufferInits() []string + func (n *NumUnaryNode[T]) FwdLines() []string + func (n *NumUnaryNode[T]) Imports() []string + func (v *NumUnaryNode[T]) BackLines() []string + func (v *NumUnaryNode[T]) GradBufferClears() []string + type Numerical interface + type Value struct + Var *Buffer[T] + func Constant[T any](g *Graph, val T) *Value[T] + func Variable[T any](g *Graph, name string) *Value[T] + func (v *Value[T]) BackLines() []string + func (v *Value[T]) Buf() *Buffer[T] + func (v *Value[T]) BufferDefs() []string + func (v *Value[T]) BufferInits() []string + func (v *Value[T]) FwdLines() []string + func (v *Value[T]) GradBufferClears() []string + func (v *Value[T]) Imports() []string