diff options
author | Peter Dobsan <pdobsan@gmail.com> | 2018-04-27 00:08:15 +0200 |
---|---|---|
committer | Peter Dobsan <pdobsan@gmail.com> | 2018-04-27 00:08:15 +0200 |
commit | 3ffea9114b573eb11e2e41ddfc6a8b69fdd6baed (patch) | |
tree | 71aaf81c11befe87189598d305330637599a80c3 /packages/base/src/Internal/Sparse.hs | |
parent | d83b17190029c11e3ab8b504e5cdc917f5863120 (diff) |
Fixed vector show instance and related haddock entries.
Diffstat (limited to 'packages/base/src/Internal/Sparse.hs')
-rw-r--r-- | packages/base/src/Internal/Sparse.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/base/src/Internal/Sparse.hs b/packages/base/src/Internal/Sparse.hs index 1ff3f57..a8a5fe0 100644 --- a/packages/base/src/Internal/Sparse.hs +++ b/packages/base/src/Internal/Sparse.hs | |||
@@ -170,8 +170,10 @@ gmXv Dense{..} v | |||
170 | {- | general matrix - vector product | 170 | {- | general matrix - vector product |
171 | 171 | ||
172 | >>> let m = mkSparse [((0,999),1.0),((1,1999),2.0)] | 172 | >>> let m = mkSparse [((0,999),1.0),((1,1999),2.0)] |
173 | m :: GMatrix | ||
173 | >>> m !#> vector [1..2000] | 174 | >>> m !#> vector [1..2000] |
174 | fromList [1000.0,4000.0] | 175 | [1000.0,4000.0] |
176 | it :: Vector Double | ||
175 | 177 | ||
176 | -} | 178 | -} |
177 | infixr 8 !#> | 179 | infixr 8 !#> |