v32

package module
v32.0.0-...-a085007 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 3 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

v32

a golang library for []float32 math operations

this repository is inspired by gorgonia.org/vecf32, which has many []float32 arithmatic operations but not enough for my usage.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type V32

type V32 []float32

func (V32) Argmax

func (my V32) Argmax() int

func (V32) Argmin

func (my V32) Argmin() int

func (V32) Clone

func (my V32) Clone() V32

func (V32) Exp

func (my V32) Exp()

func (V32) Log

func (my V32) Log()

func (V32) Pow

func (my V32) Pow(p float32)

func (V32) Reduce

func (my V32) Reduce(f func(a, b float32) float32, initial float32) (retVal float32)

func (V32) Scale

func (my V32) Scale(s float32)

func (V32) SoftMax

func (my V32) SoftMax()

SoftMax 激活函数: 将各个输出节点的输出值范围映射到[0, 1],并且约束各个输出节点的输出值的和为1

func (V32) Sum

func (my V32) Sum() float32

Jump to

Keyboard shortcuts

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