Auto-generated interface to Fortran LAPACK via comfort-array http://hub.darcs.net/thielema/lapack-comfort-array/
|Version on this page:||0.0|
|Stackage Nightly 2019-04-16:||0.0|
|Latest on Hackage:||0.0|
Module documentation for 0.0
LAPACK is a package for efficient numerically robust linear algebra. The original implementation is written in FORTRAN. This is a semi-automatically generated mid-level wrapper. The functions are not ready to use for high-level applications, but they are a step closer.
The functions are all in IO monad because they are auto-generated and
we cannot make sure automatically that unsafePerformIO is always safe.
Instead of raw pointers we use Arrays and Mutable.Arrays
and assign and check array bounds to LAPACK function parameters,
as far we can retrieve this information from the FORTRAN comments.
We check consistency of dimensions where consistent dimensions are required,
but we cannot do all kind of bound checks.
We use immutable Array for input and output parameters
and mutable Mutable.Array for input/output parameters.
LAPACK plays some nasty tricks of in-place array updates
on input/output arrays
even if the dimensions of input and output array differ (see e.g. GELS).
The wrappers also manage allocation of memory for function parameters.
This is necessary since FORTRAN passes all parameters by reference.
Further on, the wrappers convert from Haskell values like
to low-level values like
We provide bindings to functions of all variants
Complex Float and
We do not use TemplateHaskell nor HSC nor CHS, but instead Haskell 98 code
generated by the custom