orthotope 0.1.4.1 → 0.1.5.0
raw patch · 4 files changed
+6/−5 lines, 4 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Data.Array.Internal.RankedG: A :: ShapeL -> T v a -> Array (n :: Nat) v a
+ Data.Array.Internal.RankedG: A :: !ShapeL -> !T v a -> Array (n :: Nat) v a
Files
- Data/Array/Internal/RankedG.hs +3/−2
- Data/Array/Internal/ShapedG.hs +1/−1
- README.md +1/−1
- orthotope.cabal +1/−1
Data/Array/Internal/RankedG.hs view
@@ -63,7 +63,7 @@ import Data.Array.Internal -- | Arrays stored in a /v/ with values of type /a/.-data Array (n :: Nat) v a = A ShapeL (T v a)+data Array (n :: Nat) v a = A !ShapeL !(T v a) deriving (Generic, Data) instance (Vector v, Show a, VecElem v a) => Show (Array n v a) where@@ -91,6 +91,7 @@ rnf (A sh v) = rnf sh `seq` rnf v -- | The number of elements in the array.+-- O(1) time. {-# INLINE size #-} size :: Array n v a -> Int size = product . shapeL@@ -118,7 +119,7 @@ index (A [] _) _ = error "index: scalar" -- | Convert to a list with the elements in the linearization order.--- O(1) time.+-- O(n) time. {-# INLINE toList #-} toList :: (Vector v, VecElem v a) => Array n v a -> [a] toList (A sh t) = toListT sh t
Data/Array/Internal/ShapedG.hs view
@@ -123,7 +123,7 @@ where s = valueOf @s -- | Convert to a list with the elements in the linearization order.--- O(1) time.+-- O(n) time. {-# INLINE toList #-} toList :: (Vector v, VecElem v a, Shape sh) => Array sh v a -> [a] toList a@(A t) = toListT (shapeL a) t
README.md view
@@ -92,7 +92,7 @@ Arrays can be pretty printed. They are shown in the APL way: The innermost dimension on a line, the next dimension vertically,-the next dimension vertically with an empty line in betwee, and so on.+the next dimension vertically with an empty line in between, and so on. ``` > pp m
orthotope.cabal view
@@ -1,5 +1,5 @@ name: orthotope-version: 0.1.4.1+version: 0.1.5.0 synopsis: Multidimensional arrays inspired by APL license: Apache license-file: LICENSE