[Haskell-cafe] Memory Leak - Artificial Neural Network
shelby at coolpage.com
Fri Nov 6 10:39:21 EST 2009
wren ng thornton wrote:
>...use matrices/arrays rather than lists...
>...even just using an unboxed array for the matrices
> will make it much faster to traverse through...
Matrix multiplication is the sequential order inner or outer product of
the columns/rows of one matrix and rows/columns of 2nd matrix:
Afaics, optimize matrix multiplication with lists. Random arrays incurs a
huge performance penality in Haskell, unless you revert to non-lazy
implementation, in which case you have voided multi-core speed ups for
very large arrays (aren't ANNs huge matrices?).
More information about the Haskell-Cafe