summaryrefslogtreecommitdiff
path: root/packages/base/src/Internal/Util.hs
diff options
context:
space:
mode:
Diffstat (limited to 'packages/base/src/Internal/Util.hs')
-rw-r--r--packages/base/src/Internal/Util.hs6
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]
100fromList [1.0,2.0,3.0,4.0,5.0] 100[1.0,2.0,3.0,4.0,5.0]
101it :: Vector R
101 102
102-} 103-}
103vector :: [R] -> Vector R 104vector :: [R] -> Vector R
@@ -376,7 +377,8 @@ size = size'
376On a matrix it gets the k-th row as a vector: 377On 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
379fromList [6.0,7.0,8.0,9.0,10.0] 380[6.0,7.0,8.0,9.0,10.0]
381it :: Vector Double
380 382
381>>> matrix 5 [1..15] ! 1 ! 3 383>>> matrix 5 [1..15] ! 1 ! 3
3829.0 3849.0