Safe Haskell | None |
---|
Utility code used for matrix/vector manipulation
- norm :: Floating a => Vector a -> a
- difference :: Floating a => Vector a -> Vector a -> a
- dotProduct :: Num b => Vector b -> Vector b -> b
- innerProduct :: Num a => Matrix a -> Vector a -> a
Documentation
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}.