Documentation ¶
Overview ¶
Package lin implements basic linear algebra operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DotProduct ¶
DotProduct returns the value of the dot product for two vectors.
func SigmoidDerivative ¶
SigmoidDerivative applies the derivative of the sigmoid function to the given value.
sigmoid(x) * 1 - sigmoid(x)
Types ¶
type Frame ¶
type Frame []Vector
Frame is a 2D metrix for use in linear algebra.
func (Frame) Apply ¶
Apply takes the specified function and applies it to each element in the Frame, modifying it in-place.
func (Frame) DeepCopy ¶
DeepCopy creates a copy of the Frame with no shared memory from the original.
func (Frame) ForEachPairwise ¶
ForEachPairwise runs the specified function against each pair of elements in the two frames.
Click to show internal directories.
Click to hide internal directories.