Re: [R] Matrix library, CHOLMOD error: problem too large

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: Fri, 22 Jun 2007 14:04:03 -0400

On 6/22/2007 1:26 PM, Jose Quesada wrote:
> I have a pretty large sparse matrix of integers:
>> dim(tasa)
> [1] 91650 37651
>
> I need to add one to it in order to take logs, but I'm getting the
> following error:
>
>> tasa = log(tasa + 1)
> CHOLMOD error: problem too large
> Error in asMethod(object) : Cholmod error `problem too large'
>
> I have 2 Gb of RAM, and the current workspace is barely 300mb.
> Is there any workaround to this? Anyone has any experience with this error?
>

If tasa is sparse, then tasa+1 will not be sparse, so that's likely your problem. You might have better luck with

log1p(tasa)

if the authors of the Matrix package have written a method for log1p(); if not, you'll probably have to do it yourself.

Duncan Murdoch



R-help_at_stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri 22 Jun 2007 - 18:06:49 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 22 Jun 2007 - 23:32:22 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.