summaryrefslogtreecommitdiff
path: root/packages/base
diff options
context:
space:
mode:
Diffstat (limited to 'packages/base')
-rw-r--r--packages/base/src/Internal/Vector.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/base/src/Internal/Vector.hs b/packages/base/src/Internal/Vector.hs
index c4a310d..67d0416 100644
--- a/packages/base/src/Internal/Vector.hs
+++ b/packages/base/src/Internal/Vector.hs
@@ -62,6 +62,7 @@ ti = fromIntegral
62-- | Number of elements 62-- | Number of elements
63dim :: (Storable t) => Vector t -> Int 63dim :: (Storable t) => Vector t -> Int
64dim = Vector.length 64dim = Vector.length
65{-# INLINE dim #-}
65 66
66 67
67-- C-Haskell vector adapter 68-- C-Haskell vector adapter
@@ -139,6 +140,7 @@ subVector :: Storable t => Int -- ^ index of the starting element
139 -> Vector t -- ^ source 140 -> Vector t -- ^ source
140 -> Vector t -- ^ result 141 -> Vector t -- ^ result
141subVector = Vector.slice 142subVector = Vector.slice
143{-# INLINE subVector #-}
142 144
143 145
144 146