Documentation
¶
Index ¶
- Constants
- func Abs(x float32) float32
- func Dot(a, b Vector) float32
- func Floor(x float32) int
- func Length(a Vector) float32
- func Log(x float32) float32
- func Max(values ...float32) float32
- func MaxInt(values ...int) int
- func Min(values ...float32) float32
- func MinInt(values ...int) int
- func Pow(x, power float32) float32
- func RandomDistinctInts(n, max int) []int
- func RandomExponential(lambda float32) float32
- func RandomUniform() float32
- func SetNumRoutines(n int)
- func SetParallelThreshold(threshold int)
- func Sqrt(x float32) float32
- func Square(x float32) float32
- func Trunc(x float32) int
- type Vector
- func OnesVector(size int) Vector
- func RandomNormalVector(size int, mu, sigma float32) Vector
- func RandomStandardNormalVector(size int) Vector
- func RandomUniformVector(size int) Vector
- func VectorAdd(a, b Vector) Vector
- func VectorDivide(a, b Vector) Vector
- func VectorFromBytes(bytesSlice [][]byte) (Vector, error)
- func VectorMultiply(a, b Vector) Vector
- func VectorScalarAdd(a Vector, b float32) Vector
- func VectorScalarDivide(a Vector, b float32) Vector
- func VectorScalarMultiply(a Vector, b float32) Vector
- func VectorScalarSubtract(a Vector, b float32) Vector
- func VectorSubtract(a, b Vector) Vector
- func ZerosVector(size int) Vector
Constants ¶
View Source
const MaxFloat = float32(xMath.MaxFloat32)
View Source
const MaxIntVal = int((^uint(0)) >> 1)
View Source
const MinIntVal = -MaxIntVal - 1
View Source
const VECTOR_COMPONENT_BYTES_SIZE = 4
Variables ¶
This section is empty.
Functions ¶
func RandomDistinctInts ¶
func RandomExponential ¶
func RandomUniform ¶
func RandomUniform() float32
func SetNumRoutines ¶
func SetNumRoutines(n int)
func SetParallelThreshold ¶
func SetParallelThreshold(threshold int)
Types ¶
type Vector ¶
type Vector []float32
func OnesVector ¶
func RandomNormalVector ¶
func RandomUniformVector ¶
func VectorDivide ¶
func VectorFromBytes ¶
func VectorMultiply ¶
func VectorScalarAdd ¶
func VectorScalarDivide ¶
func VectorScalarMultiply ¶
func VectorScalarSubtract ¶
func VectorSubtract ¶
func ZerosVector ¶
Click to show internal directories.
Click to hide internal directories.