Documentation ¶
Index ¶
- func Add(m, n mat.Matrix) (*mat.Dense, error)
- func Apply(fn func(i, j int, v float64) float64, m mat.Matrix) (d *mat.Dense, err error)
- func Dot(m, n mat.Matrix) (d *mat.Dense, err error)
- func FillArray(size int, fill float64) []float64
- func FromVector(v []float64) (*mat.Dense, error)
- func MulElem(m, n mat.Matrix) (*mat.Dense, error)
- func New(r, c int, data []float64) (*mat.Dense, error)
- func OptRandomArraySource(src rand.Source) func(*RandomArrayCfg)
- func RandomArray(size int, v float64, opts ...func(*RandomArrayCfg)) []float64
- func Scale(s float64, m mat.Matrix) (*mat.Dense, error)
- func Sub(m, n mat.Matrix) (*mat.Dense, error)
- func ToVector(m mat.Matrix) (v []float64, err error)
- type RandomArrayCfg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromVector ¶
FromVector creates a single-column matrix from a vector.
func OptRandomArraySource ¶
func OptRandomArraySource(src rand.Source) func(*RandomArrayCfg)
OptRandomArraySource sets the source
func RandomArray ¶
func RandomArray(size int, v float64, opts ...func(*RandomArrayCfg)) []float64
RandomArray returns a random array of size.
Types ¶
type RandomArrayCfg ¶
RandomArrayCfg settings for random array generation.
Click to show internal directories.
Click to hide internal directories.