Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
class Convert a b where Source #
Convert between two array types. If both arrays have the same flavor of boxing this is a O(1) operation. Conversion between different boxing is a O(n) operation.
convertE :: a -> Either String b Source #
Convert between two array types if possible, or return error message.
Instances
(a ~ b, Unbox a) => Convert (Array a) (Array b) Source # | |
(a ~ b, Unbox a) => Convert (Array a) (Array b) Source # | |
(a ~ b, Unbox a) => Convert (Array a) (Array b) Source # | |
(a ~ b, Unbox a) => Convert (Array a) (Array b) Source # | |
a ~ b => Convert (Array a) (Array Vector b) Source # | |
(a ~ b, Shape sh) => Convert (Array a) (Array sh b) Source # | |
(a ~ b, KnownNat n) => Convert (Array a) (Array n b) Source # | |
a ~ b => Convert (Array a) (Array Vector b) Source # | |
(a ~ b, Shape sh) => Convert (Array a) (Array sh b) Source # | |
(a ~ b, KnownNat n) => Convert (Array a) (Array n b) Source # | |
a ~ b => Convert (Array a) (Array Vector b) Source # | |
a ~ b => Convert (Array n a) (Array b) Source # | |
(a ~ b, Shape sh) => Convert (Array sh a) (Array b) Source # | |
(a ~ b, Shape sh) => Convert (Array sh a) (Array b) Source # | |
(a ~ b, Rank sh ~ n, Shape sh) => Convert (Array n a) (Array sh b) Source # | |
(a ~ b, n ~ m, Unbox a) => Convert (Array n a) (Array m b) Source # | |
(a ~ b, n ~ m, Unbox a) => Convert (Array n a) (Array m b) Source # | |
(a ~ b, Rank sh ~ n, Shape sh) => Convert (Array n a) (Array sh b) Source # | |
(a ~ b, n ~ m, Unbox a) => Convert (Array n a) (Array m b) Source # | |
(a ~ b, n ~ m, Unbox a) => Convert (Array n a) (Array m b) Source # | |
(a ~ b, Rank sh ~ n, Shape sh) => Convert (Array sh a) (Array n b) Source # | |
(a ~ b, n ~ m, Unbox a) => Convert (Array n a) (Array m b) Source # | |
(a ~ b, n ~ m, Unbox a) => Convert (Array n a) (Array m b) Source # | |
(a ~ b, n ~ m, Unbox a) => Convert (Array n a) (Array m b) Source # | |
(a ~ b, n ~ m, Unbox a) => Convert (Array n a) (Array m b) Source # | |
(a ~ b, n ~ m) => Convert (Array n a) (Array m Vector b) Source # | |
(a ~ b, n ~ m) => Convert (Array n a) (Array m Vector b) Source # | |
(a ~ b, n ~ m) => Convert (Array n a) (Array m Vector b) Source # | |
(a ~ b, s ~ t) => Convert (Array s a) (Array t Vector b) Source # | |
(a ~ b, s ~ t) => Convert (Array s a) (Array t Vector b) Source # | |
(a ~ b, s ~ t) => Convert (Array s a) (Array t Vector b) Source # | |