[prev in list] [next in list] [prev in thread] [next in thread]
List: haskell
Subject: [Haskell] Linear Equation Solver Using Arrays
From: Xiao-Yong Jin <xj2106 () columbia ! edu>
Date: 2007-09-16 5:22:03
Message-ID: 87sl5f6v7o.fsf () presario ! homelinux ! org
[Download RAW message or body]
Dear Haskellers,
My thanks to people on the irc channel, especially `int-e'.
With their help, I managed to write a linear equation solver
using STUArrays.
["MatrixOp.hs.gz" (application/octet-stream)]
It is basically a direct rewrite of a C version, which
adopts Crout's LU decomposition method with implicit
pivoting, in chapter 2.3 of the book Numerical Recipes.
I must admit that the code is in a really bad style,
somewhat ugly, because of the limit of my Haskell knowledge.
The code is attached in this email for your amusement. I
would be really thankful if you can give me any kind of
comments, idea, improvement, criticism, because I sincerely
want to make the code better.
Best regards,
Xiao-Yong
--
c/* __o/*
<\ * (__
*/\ <
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic