👩💻 Matrix library written in Go.
This code used to be in github.com/fr3fou/gone, but due to it being used in other places, I decided to extract it in its own repo.
- Randomize
- Transpose
- Scale
- AddMatrix
- Add
- SubtractMatrix
- Subtract
- Multiply
- Multiply
- Flatten
- Unflatten
- NewFromArray - makes a single row
- Map
- Fold
- Methods to support chaining
- Determinant
n.Weights[i].
Multiply(output). // weighted sum of the previous layer)
Add(n.Layers[i+1].Bias). // bias
Map(func(val float64, x, y int) float64 { // activation
return n.Layers[i+1].Activator.F(val)
})