
Hello! Is there a math library for Haskell, using which one can calculate eigenvalues of matrices? Thanks in advance Dmitri Pissarenko -- Dmitri Pissarenko Software Engineer http://dapissarenko.com

On Tue, 18 Jan 2005 20:25:46 +0100, Dmitri Pissarenko
Hello!
Is there a math library for Haskell, using which one can calculate eigenvalues of matrices?
Thanks in advance
Are you interested in seeing Haskell implementation of these algorithms, or are you interested in using eignevalues in some Haskell program? This seems like a perfect candidate for using FFI if you're just looking for fast eigenvalue computations (though you'll need to write/find a C library to do it first). /S -- Sebastian Sylvan +46(0)736-818655 UIN: 44640862

Are you interested in seeing Haskell implementation of these algorithms, or are you interested in using eignevalues in some Haskell program?
I am interested in using eigenvalues in a Haskell program.
This seems like a perfect candidate for using FFI if you're just looking for fast eigenvalue computations (though you'll need to write/find a C library to do it first).
You mean that I have to write a program in C (or other language), which calculates the eigenvalues, and then let the C program co-operate with the Haskell program via FFI? TIA Dmitri Pissarenko -- Dmitri Pissarenko Software Engineer http://dapissarenko.com

On Tue, 18 Jan 2005 20:41:28 +0100, Dmitri Pissarenko
Are you interested in seeing Haskell implementation of these algorithms, or are you interested in using eignevalues in some Haskell program?
I am interested in using eigenvalues in a Haskell program.
This seems like a perfect candidate for using FFI if you're just looking for fast eigenvalue computations (though you'll need to write/find a C library to do it first).
You mean that I have to write a program in C (or other language), which calculates the eigenvalues, and then let the C program co-operate with the Haskell program via FFI?
No you don't "have to" (see the other replies), it just seems to me that these types of things is probably widely available already as C libraries, and by simply interfacing to one of those you'll likely get better speed (if that is indeed important to you) than just writing it in Haskell directly. -- Sebastian Sylvan +46(0)736-818655 UIN: 44640862

On Tue, Jan 18, 2005 at 08:25:46PM +0100, Dmitri Pissarenko wrote:
Hello!
Is there a math library for Haskell, using which one can calculate eigenvalues of matrices?
There is a binding to BLAS/LAPACK at http://www.isi.edu/~hdaume/HBlas/ but it might be too heavyweight for just calculating eigenvalues. however, it should be fast :) A standard matrix representation in the libraries would be nice. (not necessarily all matrix operations, but a representation/type so different peoples matrix libraries can play nice with each other) I was thinking something like a general matrix type, which a class for things that can be converted too it, and another class with a partial function for converting the general matricies to specific implementation versions. (so that one can write a library only for square matricies for instance and still use the general conversion routines) But I am sure others have given this more thought... John -- John Meacham - ⑆repetae.net⑆john⑈

Can I request 2 types, one for dense (complete) matricies and another for sparse matricies? This suggests to me that a library of matrix operations should be a set of classes that allow instances to be declared for different implementations. Keean. John Meacham wrote:
A standard matrix representation in the libraries would be nice. (not necessarily all matrix operations, but a representation/type so different peoples matrix libraries can play nice with each other) I was thinking something like a general matrix type, which a class for things that can be converted too it, and another class with a partial function for converting the general matricies to specific implementation versions. (so that one can write a library only for square matricies for instance and still use the general conversion routines) But I am sure others have given this more thought... John

Keean Schupke
Can I request 2 types, one for dense (complete) matricies and another for sparse matricies?
...and maybe also put (!) in a class, so that it can be used as a general indexing operator for all indexed data structures? (Or is this already possible? I must admit I'm slightly lost in IArray, Ix, HasBounds etc.) -kzm -- If I haven't seen further, it is by standing in the footprints of giants

On Tue, 18 Jan 2005, Dmitri Pissarenko wrote:
Hello!
Is there a math library for Haskell, using which one can calculate eigenvalues of matrices?
http://haskell.org/libraries/#numerics Indexless linear algebra algorithms They contain Eigensystem functions, but I remember that they were not very reliable.
participants (6)
-
Dmitri Pissarenko
-
Henning Thielemann
-
John Meacham
-
Keean Schupke
-
Ketil Malde
-
Sebastian Sylvan