stdlib

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: 1

Documentation

Overview

Package stdlib provides the GX standard library that is independent of a backend. This includes generic GX code and function signatures computation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stdlib

type Stdlib struct {
	// contains filtered or unexported fields
}

Stdlib builds the standard library given import paths.

func Importer

func Importer(stdlibImpl *impl.Stdlib) *Stdlib

Importer returns the standard library importer.

func (*Stdlib) Import

func (l *Stdlib) Import(bld *builder.Builder, path string) (builder.Package, error)

Import a package given its path.

func (*Stdlib) Paths

func (l *Stdlib) Paths() []string

Paths returns all the paths in the standard library (alphabetically ordered).

func (*Stdlib) Support

func (l *Stdlib) Support(path string) bool

Support returns true if the path is a GX standard library.

Directories

Path Synopsis
bindings
go
Generate the bindings of the GX standard library for Go.
Generate the bindings of the GX standard library for Go.
go/control_go_gx
Package control_go_gx are Go bindings to the GX package: control.
Package control_go_gx are Go bindings to the GX package: control.
go/dtype_go_gx
Package dtype_go_gx are Go bindings to the GX package: dtype.
Package dtype_go_gx are Go bindings to the GX package: dtype.
go/genstdlib
Package genstdlib provides helpers to build the bindings of the standard library packages.
Package genstdlib provides helpers to build the bindings of the standard library packages.
go/math/grad_go_gx
Package grad_go_gx are Go bindings to the GX package: math/grad.
Package grad_go_gx are Go bindings to the GX package: math/grad.
go/math_go_gx
Package math_go_gx are Go bindings to the GX package: math.
Package math_go_gx are Go bindings to the GX package: math.
go/num_go_gx
Package num_go_gx are Go bindings to the GX package: num.
Package num_go_gx are Go bindings to the GX package: num.
go/rand_go_gx
Package rand_go_gx are Go bindings to the GX package: rand.
Package rand_go_gx are Go bindings to the GX package: rand.
go/shapes_go_gx
Package shapes_go_gx are Go bindings to the GX package: shapes.
Package shapes_go_gx are Go bindings to the GX package: shapes.
Package builtin defines interfaces and helper methods to provide builtin functions.
Package builtin defines interfaces and helper methods to provide builtin functions.
Package control provides runtime control flow via the GX `control` standard library.
Package control provides runtime control flow via the GX `control` standard library.
Package dtype provides the functions in the dtype GX standard library.
Package dtype provides the functions in the dtype GX standard library.
Package impl provides a structure pointing to standard library functions provided by a backend.
Package impl provides a structure pointing to standard library functions provided by a backend.
Package math provides math functions in GX.
Package math provides math functions in GX.
grad
Package grad implement GX functions to compute the gradient of GX functions.
Package grad implement GX functions to compute the gradient of GX functions.
grad/testgrad
Package testgrad provides function to test autograd.
Package testgrad provides function to test autograd.
Package num provides the functions in the num GX standard library.
Package num provides the functions in the num GX standard library.
Package rand provides the functions in the rand GX standard library.
Package rand provides the functions in the rand GX standard library.
Package shapes provides functions to manipulate the shape of tensors.
Package shapes provides functions to manipulate the shape of tensors.

Jump to

Keyboard shortcuts

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