netlib-carray-0.0: Helper modules for CArray wrappers to BLAS and LAPACK
Numeric.Netlib.CArray.Utility
type FortranIO r = ContT r IO Source #
run :: FortranIO r (IO a) -> FortranIO r a Source #
runChecked :: String -> FortranIO r (Ptr CInt -> IO a) -> FortranIO r a Source #
check :: String -> IO CInt -> IO () Source #
assert :: String -> Bool -> IO () Source #
ignore :: String -> Int -> IO () Source #
newArray :: (Ix i, Storable e) => (i, i) -> IO (CArray i e) Source #
newArray1 :: Storable e => Int -> IO (CArray Int e) Source #
newArray2 :: Storable e => Int -> Int -> IO (CArray (Int, Int) e) Source #
newArray3 :: Storable e => Int -> Int -> Int -> IO (CArray (Int, Int, Int) e) Source #
sizes1 :: Ix i => (i, i) -> Int Source #
sizes2 :: (Ix i, Ix j) => ((i, j), (i, j)) -> (Int, Int) Source #
sizes3 :: (Ix i, Ix j, Ix k) => ((i, j, k), (i, j, k)) -> (Int, Int, Int) Source #
cint :: Int -> FortranIO r (Ptr CInt) Source #
range :: (Int, Int) -> FortranIO r (Ptr CInt) Source #
alloca :: Storable a => FortranIO r (Ptr a) Source #
allocaArray :: Storable a => Int -> FortranIO r (Ptr a) Source #
bool :: Bool -> FortranIO r (Ptr Bool) Source #
char :: Char -> FortranIO r (Ptr CChar) Source #
string :: String -> FortranIO r (Ptr CChar) Source #
float :: Float -> FortranIO r (Ptr Float) Source #
double :: Double -> FortranIO r (Ptr Double) Source #
complexFloat :: Complex Float -> FortranIO r (Ptr (Complex Float)) Source #
complexDouble :: Complex Double -> FortranIO r (Ptr (Complex Double)) Source #
array :: Storable a => CArray i a -> FortranIO r (Ptr a) Source #
arrayBounds :: (Storable a, Ix i) => CArray i a -> FortranIO r (Ptr a, (i, i)) Source #
ioarray :: Storable a => IOCArray i a -> FortranIO r (Ptr a) Source #
unzipBounds :: ((i, j), (i, j)) -> ((i, i), (j, j)) Source #
(^!) :: Num a => a -> Int -> a Source #