hmatrix-0.5.2.2: Linear algebra and numerical computationsSource codeContentsIndex
Numeric.GSL.Vector
Portabilityportable (uses FFI)
Stabilityprovisional
MaintainerAlberto Ruiz <aruiz@um.es>
Description
Low level interface to vector operations.
Synopsis
data FunCodeS
= Norm2
| AbsSum
| MaxIdx
| Max
| MinIdx
| Min
toScalarR :: FunCodeS -> Vector Double -> Double
data FunCodeV
= Sin
| Cos
| Tan
| Abs
| ASin
| ACos
| ATan
| Sinh
| Cosh
| Tanh
| ASinh
| ACosh
| ATanh
| Exp
| Log
| Sign
| Sqrt
vectorMapR :: FunCodeV -> Vector Double -> Vector Double
vectorMapC :: FunCodeV -> Vector (Complex Double) -> Vector (Complex Double)
data FunCodeSV
= Scale
| Recip
| AddConstant
| Negate
| PowSV
| PowVS
vectorMapValR :: FunCodeSV -> Double -> Vector Double -> Vector Double
vectorMapValC :: FunCodeSV -> Complex Double -> Vector (Complex Double) -> Vector (Complex Double)
data FunCodeVV
= Add
| Sub
| Mul
| Div
| Pow
| ATan2
vectorZipR :: FunCodeVV -> Vector Double -> Vector Double -> Vector Double
vectorZipC :: FunCodeVV -> Vector (Complex Double) -> Vector (Complex Double) -> Vector (Complex Double)
Documentation
data FunCodeS Source
Constructors
Norm2
AbsSum
MaxIdx
Max
MinIdx
Min
show/hide Instances
toScalarR :: FunCodeS -> Vector Double -> DoubleSource
obtains different functions of a vector: norm1, norm2, max, min, posmax, posmin, etc.
data FunCodeV Source
Constructors
Sin
Cos
Tan
Abs
ASin
ACos
ATan
Sinh
Cosh
Tanh
ASinh
ACosh
ATanh
Exp
Log
Sign
Sqrt
show/hide Instances
vectorMapR :: FunCodeV -> Vector Double -> Vector DoubleSource
map of real vectors with given function
vectorMapC :: FunCodeV -> Vector (Complex Double) -> Vector (Complex Double)Source
map of complex vectors with given function
data FunCodeSV Source
Constructors
Scale
Recip
AddConstant
Negate
PowSV
PowVS
show/hide Instances
vectorMapValR :: FunCodeSV -> Double -> Vector Double -> Vector DoubleSource
map of real vectors with given function
vectorMapValC :: FunCodeSV -> Complex Double -> Vector (Complex Double) -> Vector (Complex Double)Source
map of complex vectors with given function
data FunCodeVV Source
Constructors
Add
Sub
Mul
Div
Pow
ATan2
show/hide Instances
vectorZipR :: FunCodeVV -> Vector Double -> Vector Double -> Vector DoubleSource
elementwise operation on real vectors
vectorZipC :: FunCodeVV -> Vector (Complex Double) -> Vector (Complex Double) -> Vector (Complex Double)Source
elementwise operation on complex vectors
Produced by Haddock version 2.6.0