hmatrix-0.8.2.0: Linear algebra and numerical computationSource codeContentsIndex
Data.Packed.Development
Portabilityportable
Stabilityprovisional
MaintainerAlberto Ruiz <aruiz@um.es>
Description
The implementation of the Vector and Matrix types is not exposed, but the library can be easily extended with additional foreign functions using the tools in this module. Illustrative usage examples can be found in the examples/devel folder included in the package.
Documentation
createVector :: Storable a => Int -> IO (Vector a)Source
createMatrix :: Storable a => MatrixOrder -> Int -> Int -> IO (Matrix a)Source
type Adapt f t r = t -> ((f -> r) -> IO ()) -> IO ()Source
vec :: Adapt (CInt -> Ptr t -> r) (Vector t) rSource
mat :: Adapt (CInt -> CInt -> Ptr t -> r) (Matrix t) rSource
app1 :: f -> Adapt f t (IO CInt) -> t -> String -> IO ()Source
app2 :: f -> Adapt f t1 r -> t1 -> Adapt r t2 (IO CInt) -> t2 -> String -> IO ()Source
app3 :: f -> Adapt f t1 r1 -> t1 -> Adapt r1 t2 r2 -> t2 -> Adapt r2 t3 (IO CInt) -> t3 -> String -> IO ()Source
app4 :: f -> Adapt f t1 r1 -> t1 -> Adapt r1 t2 r2 -> t2 -> Adapt r2 t3 r3 -> t3 -> Adapt r3 t4 (IO CInt) -> t4 -> String -> IO ()Source
data MatrixOrder Source
Constructors
RowMajor
ColumnMajor
show/hide Instances
orderOf :: Matrix t -> MatrixOrderSource
cmat :: Element t => Matrix t -> Matrix tSource
fmat :: Element t => Matrix t -> Matrix tSource
Produced by Haddock version 2.6.0