Send Beginners mailing list submissions to beginners@haskell.org To subscribe or unsubscribe via the World Wide Web, visit http://www.haskell.org/mailman/listinfo/beginners or, via email, send a message with subject or body 'help' to beginners-requ...@haskell.org
You can reach the person managing the list at beginners-ow...@haskell.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Beginners digest..." Today's Topics: 1. arrays (Dennis Raddle) 2. Re: arrays (Rafael Gustavo da Cunha Pereira Pinto) 3. Re: arrays (David McBride) ---------------------------------------------------------------------- Message: 1 Date: Mon, 30 Jan 2012 10:41:17 -0800 From: Dennis Raddle <dennis.rad...@gmail.com> Subject: [Haskell-beginners] arrays To: Haskell Beginners <beginners@haskell.org> Message-ID: <CAKxLvoqiLu7EuUvsS4y9BwyjEoN3DGtNtLqMd7CoONL=oxv...@mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1" I've got a problem that is linear time with mutable arrays, and something god-awful complicated (not sure of time complexity) without them. What's the easiest way to use and understand mutable arrays? is it Data.Array that I want? Any good tutorials? Thanks, Dennis -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.haskell.org/pipermail/beginners/attachments/20120130/e03916ce/attachment-0001.htm> ------------------------------ Message: 2 Date: Mon, 30 Jan 2012 20:41:36 -0200 From: Rafael Gustavo da Cunha Pereira Pinto <rafaelgcpp.li...@gmail.com> Subject: Re: [Haskell-beginners] arrays To: Dennis Raddle <dennis.rad...@gmail.com>, Haskell Beginners <beginners@haskell.org> Message-ID: <CAKeofDy27_3hcSTxKCRmnfMiC5437FK8XSNZ=n6bnvo8jog...@mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1" My advice as a begginer myself: experiment! Do some toy array operation, such as matrix multiplication. Test, test ans test. Mutable arrays are kinda easy, and very fast! I did a LU matrix decomposition with pivoting a few years ago and it was pretty awesome. With mutable arrays it was about 5 times faster than normal arrays. Regards Rafael On Mon, Jan 30, 2012 at 16:41, Dennis Raddle <dennis.rad...@gmail.com>wrote: > I've got a problem that is linear time with mutable arrays, and something > god-awful complicated (not sure of time complexity) without them. > > What's the easiest way to use and understand mutable arrays? is it > Data.Array that I want? Any good tutorials? > > Thanks, > Dennis > > > _______________________________________________ > Beginners mailing list > Beginners@haskell.org > http://www.haskell.org/mailman/listinfo/beginners > > -- Rafael Gustavo da Cunha Pereira Pinto -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.haskell.org/pipermail/beginners/attachments/20120130/ad75a351/attachment-0001.htm> ------------------------------ Message: 3 Date: Mon, 30 Jan 2012 18:59:28 -0500 From: David McBride <toa...@gmail.com> Subject: Re: [Haskell-beginners] arrays To: Dennis Raddle <dennis.rad...@gmail.com> Cc: Haskell Beginners <beginners@haskell.org> Message-ID: <CAN+Tr41=jaVT8f=mc=otdykq33hh7jw9y5xfyhsc0d0w7io...@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Try the vector library. It has both immutable and mutable arrays and is very good. On Mon, Jan 30, 2012 at 1:41 PM, Dennis Raddle <dennis.rad...@gmail.com> wrote: > I've got a problem that is linear time with mutable arrays, and something > god-awful complicated (not sure of time complexity) without them. > > What's the easiest way to use and understand mutable arrays? is it > Data.Array that I want? Any good tutorials? > > Thanks, > Dennis > > > _______________________________________________ > Beginners mailing list > Beginners@haskell.org > http://www.haskell.org/mailman/listinfo/beginners > ------------------------------ _______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners End of Beginners Digest, Vol 43, Issue 35 *****************************************