diff options
Diffstat (limited to 'packages/base/src/Internal/Util.hs')
-rw-r--r-- | packages/base/src/Internal/Util.hs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/base/src/Internal/Util.hs b/packages/base/src/Internal/Util.hs index 8c8a31e..959e58f 100644 --- a/packages/base/src/Internal/Util.hs +++ b/packages/base/src/Internal/Util.hs | |||
@@ -97,7 +97,8 @@ iC = 0:+1 | |||
97 | {- | Create a real vector. | 97 | {- | Create a real vector. |
98 | 98 | ||
99 | >>> vector [1..5] | 99 | >>> vector [1..5] |
100 | fromList [1.0,2.0,3.0,4.0,5.0] | 100 | [1.0,2.0,3.0,4.0,5.0] |
101 | it :: Vector R | ||
101 | 102 | ||
102 | -} | 103 | -} |
103 | vector :: [R] -> Vector R | 104 | vector :: [R] -> Vector R |
@@ -376,7 +377,8 @@ size = size' | |||
376 | On a matrix it gets the k-th row as a vector: | 377 | On a matrix it gets the k-th row as a vector: |
377 | 378 | ||
378 | >>> matrix 5 [1..15] ! 1 | 379 | >>> matrix 5 [1..15] ! 1 |
379 | fromList [6.0,7.0,8.0,9.0,10.0] | 380 | [6.0,7.0,8.0,9.0,10.0] |
381 | it :: Vector Double | ||
380 | 382 | ||
381 | >>> matrix 5 [1..15] ! 1 ! 3 | 383 | >>> matrix 5 [1..15] ! 1 ! 3 |
382 | 9.0 | 384 | 9.0 |