diff options
Diffstat (limited to 'lib/Data/Packed.hs')
-rw-r--r-- | lib/Data/Packed.hs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/Data/Packed.hs b/lib/Data/Packed.hs index 7ffdd0b..7d6d200 100644 --- a/lib/Data/Packed.hs +++ b/lib/Data/Packed.hs | |||
@@ -34,7 +34,6 @@ class (Element e) => Container c e where | |||
34 | conj :: RealFloat e => c (Complex e) -> c (Complex e) | 34 | conj :: RealFloat e => c (Complex e) -> c (Complex e) |
35 | real :: c Double -> c e | 35 | real :: c Double -> c e |
36 | complex :: c e -> c (Complex Double) | 36 | complex :: c e -> c (Complex Double) |
37 | scalar :: e -> c e | ||
38 | 37 | ||
39 | instance Container Vector Double where | 38 | instance Container Vector Double where |
40 | toComplex = Data.Packed.Internal.toComplex | 39 | toComplex = Data.Packed.Internal.toComplex |
@@ -43,7 +42,6 @@ instance Container Vector Double where | |||
43 | conj = Data.Packed.Internal.conj | 42 | conj = Data.Packed.Internal.conj |
44 | real = id | 43 | real = id |
45 | complex = Data.Packed.comp | 44 | complex = Data.Packed.comp |
46 | scalar x = fromList [x] | ||
47 | 45 | ||
48 | instance Container Vector (Complex Double) where | 46 | instance Container Vector (Complex Double) where |
49 | toComplex = undefined -- can't match | 47 | toComplex = undefined -- can't match |
@@ -52,7 +50,6 @@ instance Container Vector (Complex Double) where | |||
52 | conj = undefined | 50 | conj = undefined |
53 | real = Data.Packed.comp | 51 | real = Data.Packed.comp |
54 | complex = id | 52 | complex = id |
55 | scalar x = fromList [x] | ||
56 | 53 | ||
57 | instance Container Matrix Double where | 54 | instance Container Matrix Double where |
58 | toComplex = uncurry $ liftMatrix2 $ curry Data.Packed.toComplex | 55 | toComplex = uncurry $ liftMatrix2 $ curry Data.Packed.toComplex |
@@ -63,7 +60,6 @@ instance Container Matrix Double where | |||
63 | conj = liftMatrix Data.Packed.Internal.conj | 60 | conj = liftMatrix Data.Packed.Internal.conj |
64 | real = id | 61 | real = id |
65 | complex = Data.Packed.comp | 62 | complex = Data.Packed.comp |
66 | scalar x = (1><1) [x] | ||
67 | 63 | ||
68 | instance Container Matrix (Complex Double) where | 64 | instance Container Matrix (Complex Double) where |
69 | toComplex = undefined | 65 | toComplex = undefined |
@@ -72,7 +68,6 @@ instance Container Matrix (Complex Double) where | |||
72 | conj = undefined | 68 | conj = undefined |
73 | real = Data.Packed.comp | 69 | real = Data.Packed.comp |
74 | complex = id | 70 | complex = id |
75 | scalar x = (1><1) [x] | ||
76 | 71 | ||
77 | 72 | ||
78 | -- | converts a real vector into a complex representation (with zero imaginary parts) | 73 | -- | converts a real vector into a complex representation (with zero imaginary parts) |