netlib-carray-0.0: Helper modules for CArray wrappers to BLAS and LAPACK

Safe HaskellNone
LanguageHaskell98

Numeric.Netlib.CArray.Utility

Documentation

run :: FortranIO r (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 #

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 #

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 #

unzipBounds :: ((i, j), (i, j)) -> ((i, i), (j, j)) Source #

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