hopfield-networks- Hopfield Networks for unsupervised learning in Haskell

Safe HaskellNone



Utility code used for matrix/vector manipulation



norm :: Floating a => Vector a -> aSource

The L^2 norm of a vector in R^n.

difference :: Floating a => Vector a -> Vector a -> aSource

Distance between vectors in the Hilbert space induced by the L^2 norm on R^n.

dotProduct :: Num b => Vector b -> Vector b -> bSource

The inner product in R^n.

innerProduct :: Num a => Matrix a -> Vector a -> aSource

The inner product on R^n induced by a PSD matrix M. Computes the mapping x |-> x^T M x with x in R^n, M in R^{n x n}.