netlib-comfort-array-0.0.0.1: Helper modules for comfort-array wrappers to BLAS and LAPACK
Numeric.Netlib.ComfortArray.Utility
type FortranIO r = ContT r IO
run :: FortranIO r (IO a) -> FortranIO r a
runChecked :: String -> FortranIO r (Ptr CInt -> IO a) -> FortranIO r a
check :: String -> IO CInt -> IO ()
assert :: String -> Bool -> IO ()
ignore :: String -> Int -> IO ()
cint :: Int -> FortranIO r (Ptr CInt)
alloca :: Storable a => FortranIO r (Ptr a)
allocaArray :: Storable a => Int -> FortranIO r (Ptr a)
bool :: Bool -> FortranIO r (Ptr Bool)
char :: Char -> FortranIO r (Ptr CChar)
string :: String -> FortranIO r (Ptr CChar)
float :: Float -> FortranIO r (Ptr Float)
double :: Double -> FortranIO r (Ptr Double)
complexFloat :: Complex Float -> FortranIO r (Ptr (Complex Float))
complexDouble :: Complex Double -> FortranIO r (Ptr (Complex Double))
real :: Real a => a -> FortranIO r (Ptr a)
complex :: Real a => Complex a -> FortranIO r (Ptr (Complex a))
number :: Floating a => a -> FortranIO r (Ptr a)
type ZeroInt = ZeroBased IntSource
newArray :: (C sh, Storable e) => sh -> IO (IOArray sh e)Source
newArray1 :: Storable e => Int -> IO (IOArray ZeroInt e)Source
newArray2 :: Storable e => Int -> Int -> IO (IOArray (ZeroInt, ZeroInt) e)Source
newArray3 :: Storable e => Int -> Int -> Int -> IO (IOArray (ZeroInt, ZeroInt, ZeroInt) e)Source
freezeArray :: (C sh, Storable e) => IOArray sh e -> IO (Array sh e)Source
sizes1 :: C sh0 => sh0 -> IntSource
sizes2 :: (C sh0, C sh1) => (sh0, sh1) -> (Int, Int)Source
sizes3 :: (C sh0, C sh1, C sh2) => (sh0, sh1, sh2) -> (Int, Int, Int)Source
shapeSize :: C sh => sh -> FortranIO r (Ptr CInt)Source
array :: Storable a => Array i a -> FortranIO r (Ptr a)Source
ioarray :: Storable a => IOArray i a -> FortranIO r (Ptr a)Source
(^!) :: Num a => a -> Int -> aSource