1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
{-# OPTIONS_HADDOCK hide #-}
module Numeric.Container(
module Data.Packed,
constant,
linspace,
diag,
ident,
ctrans,
Container(scaleRecip, addConstant,add, sub, mul, divide, equal),
scalar,
conj,
scale,
arctan2,
cmap,
Konst(..),
Build(..),
atIndex,
minIndex, maxIndex, minElement, maxElement,
sumElements, prodElements,
step, cond, find, assoc, accum,
Element(..),
Product(..),
optimiseMult,
mXm, mXv, vXm, (<.>),
Mul(..),
LSDiv, (<\>),
outer, kronecker,
RandDist(..),
randomVector, gaussianSample, uniformSample,
meanCov,
Convert(..),
Complexable,
RealElement,
RealOf, ComplexOf, SingleOf, DoubleOf, IndexOf,
module Data.Complex,
dispf, disps, dispcf, vecdisp, latexFormat, format,
loadMatrix, saveMatrix, readMatrix
) where
import Data.Packed.Numeric
import Data.Packed
import Data.Packed.Internal(constantD)
import Data.Complex
constant :: Element a => a -> Int -> Vector a
constant = constantD
|