diff options
Diffstat (limited to 'packages/base')
-rw-r--r-- | packages/base/src/Internal/Vector.hs | 2 |
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 |
63 | dim :: (Storable t) => Vector t -> Int | 63 | dim :: (Storable t) => Vector t -> Int |
64 | dim = Vector.length | 64 | dim = 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 |
141 | subVector = Vector.slice | 142 | subVector = Vector.slice |
143 | {-# INLINE subVector #-} | ||
142 | 144 | ||
143 | 145 | ||
144 | 146 | ||