Safe Haskell | None |
---|---|
Language | Haskell2010 |
Interface to Matlab runtime libraries. This uses a Matlab shared library which has been built with "mcc -l", and only functions in this library may be called. Multiple libraries may be loaded simultaneously.
Note that you cannot use Foreign.Matlab.Runtime and Foreign.Matlab.Engine in the same program. This seems to be a Matlab limitation.
- data MLibrary
- openMLibrary :: String -> [String] -> IO MLibrary
- closeMLibrary :: MLibrary -> IO ()
- mLibraryFun :: MLibrary -> String -> IO MFun
- mLibraryCall :: MLibrary -> String -> MFun
- mlGenericFeval :: MLibrary -> IO (CString -> MFun)
Documentation
data MLibrary
A Matlab library handle
:: String | The name of the library, which may be a full path to the file, or simply the library name |
-> [String] | Arguments with which to initialize the application instance (e.g., "-nojvm") |
-> IO MLibrary |
Open and initialize a matlab shared library.
closeMLibrary :: MLibrary -> IO ()
Terminate and close a matlab library.
mLibraryFun :: MLibrary -> String -> IO MFun
Return a Haskell function representing the Matlab function with the given name in the given library
mLibraryCall :: MLibrary -> String -> MFun
Call the Matlab function with the given name in the given library directly
mlGenericFeval :: MLibrary -> IO (CString -> MFun)
Internal use only. See Foreign.Matlab.Runtime.Generic