common

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EPSILON = math.Nextafter(1.0, 2.0) - 1.0

Functions

func ApplyElementwise

func ApplyElementwise(v *mat.VecDense, fn func(e float64, idx int) float64)

func GetNewRand

func GetNewRand() *rand.Rand

func GetNextSeed

func GetNextSeed() int64

func GetRandomSource

func GetRandomSource() int64

func RandomDataInBounds

func RandomDataInBounds(b_low mat.Vector, b_up mat.Vector) *mat.VecDense

Types

type Derivative

type Derivative = func(x mat.Vector) mat.Matrix

type System

type System = func(x mat.Vector) mat.Vector

type Target

type Target = func(x mat.Vector) float64

Jump to

Keyboard shortcuts

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