haskell-numerics / hmatrix

Linear algebra and numerical computation
381 stars 104 forks source link

Export Precision type and constructors where they are needed #303

Closed massma closed 5 years ago

massma commented 5 years ago

It seemed to me that the Precision type and constructors should maybe be re-exported in the Numeric.GSL.Special.Ellint and Numeric.GSL.Special.Bessel modules. Some functions in those modules cannot be used without Precision type constructors. These constructors are currently re-exported in the Airy module, but given the current documentation it is difficult for new users to know that.

Apologies if I am missing something here; I am new to Haskell, but from a new user perspective it seemed desirable to export the Precision type with the functions that require it. Maybe there is a better way though; like a separate "Types" module?

idontgetoutmuch commented 5 years ago

Seems reasonable to me. May I ask what you are using hmatrix for?

massma commented 5 years ago

Of course; I'm a graduate student in environmental engineering using it for for some climate applications that involve some modeling and data analysis, but it's all really preliminary at this point.

Thanks a lot for all the work on hmatrix; I really appreciate it and don't know what I would do if this library didn't exist.