[Haskell-cafe] Re: How do I avoid stack overflows?
dpiponi at gmail.com
Sat Mar 17 12:46:57 EDT 2007
You could always make the matrix type itself strict by marking its
components with '!'. That way, any time a matrix is touched, all of
its components will be evaluated. That, for example, is how the
Complex type is implemented.
On 3/17/07, DavidA <polyomino at f2s.com> wrote:
> Thanks for the suggestions. A few more questions.
> The (<<*>>) function is just one of a number of lazy matrix arithmetic
> functions that I have. If I need them to be evaluated strictly, is it best to
> modify the matrix code, or the code that's calling it?
More information about the Haskell-Cafe