Safe Haskell | None |
---|---|
Language | Haskell2010 |
Direct conversion between Haskell data structures and IMXData
.
In general, scalars convert to the obvious, and lists to row vectors.
- class Matlabable a where
- toMatlab :: a -> IMXData
- fromMatlab :: IMXData -> Maybe a
- withMatlabArray :: Matlabable a => a -> (MAnyArray -> IO a) -> IO a
- fromMatlabArray :: Matlabable a => MAnyArray -> IO (Maybe a)
Documentation
class Matlabable a where Source
withMatlabArray :: Matlabable a => a -> (MAnyArray -> IO a) -> IO a Source
Generate a temporary MXArray
fromMatlabArray :: Matlabable a => MAnyArray -> IO (Maybe a) Source
Convert directly from MXArray
(without freeing the original array)