netlib-comfort-array-0.0: Helper modules for comfort-array wrappers to BLAS and LAPACK

Safe HaskellNone
LanguageHaskell98

Numeric.Netlib.ComfortArray.Utility

Documentation

type FortranIO r = ContT r IO #

run :: FortranIO r (IO a) -> FortranIO r a #

check :: String -> IO CInt -> IO () #

assert :: String -> Bool -> IO () #

ignore :: String -> Int -> IO () #

alloca :: Storable a => FortranIO r (Ptr a) #

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) #

newArray :: (C sh, Storable e) => sh -> IO (IOArray sh e) Source #

freezeArray :: (C sh, Storable e) => IOArray sh e -> IO (Array sh e) Source #

sizes1 :: C sh0 => sh0 -> Int Source #

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 #

(^!) :: Num a => a -> Int -> a Source #