Portability | uses ffi |
---|---|
Stability | provisional |
Maintainer | Alberto Ruiz (aruiz at um dot es) |
Basic optimized operations on vectors and matrices.
Documentation
class Container c e => Linear c e whereSource
A generic interface for vectors and matrices to a few element-by-element functions in Numeric.GSL.Vector.
scale :: e -> c e -> c eSource
addConstant :: e -> c e -> c eSource
add :: c e -> c e -> c eSource
sub :: c e -> c e -> c eSource
mul :: c e -> c e -> c eSource
element by element multiplication
divide :: c e -> c e -> c eSource
element by element division
scaleRecip :: e -> c e -> c eSource
scale the element by element reciprocal of the object: scaleRecip 2 (fromList [5,i]) == 2 |> [0.4 :+ 0.0,0.0 :+ (-2.0)]