matlab-0.2.0.0: Matlab bindings and interface

Safe HaskellNone
LanguageHaskell2010

Foreign.Matlab.Array.Auto

Description

MXArray ForeignPtr wrapper.

A MXArray that is automatically freed. These arrays must never be put inside other arrays or used as function results.

Synopsis

Documentation

data MXAuto a Source

A MXArray that is automatically freed with freeMXArray

mxAuto :: MXArray a -> MIO (MXAuto a) Source

Turn an MXArray into an MXAuto. The original MXArray should not be used after this operation.

withMXAuto :: MXAuto a -> (MXArray a -> IO b) -> IO b Source

Use a MXAuto

type MAnyAuto = MXAuto MAny Source