You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 18, 2023. It is now read-only.
luDecomp appears to have a space leak: calling it on a 100x100 matrix of Doubles requires over 5 GB of memory. Here is a simple test program
{-# LANGUAGE LambdaCase #-}
module Main where {
import Data.Matrix;
import System.Environment(getArgs);
main::IO();
main= getArgs >>= \case {
[n] -> print $ detLU $ randommatrix $ read n;
_ -> error "need matrix size";
};
randommatrix :: Int -> Matrix Double;
randommatrix size = fromList size size
-- crude random number generator
$ map (tan . fromIntegral) $ enumFromTo 1 $ size * size;
} --end
Seen in matrix-0.3.4.2 with GHC 7.8.4
and github version of matrix, with GHC 7.10 rc1
The text was updated successfully, but these errors were encountered: