[Rd] eigen of matrix of Inf hangs (PR#5406)

Patrick Burns pburns at pburns.seanet.com
Sun Nov 30 18:35:11 MET 2003


I agree an error makes sense.

Pat

Prof Brian Ripley wrote:

>Yes, and it applies to svd() too (and the previous fix for NaNs was
>applied to eigen but not to La.eigen).
>
>I think this should be an error (with Inf or NaN): it was in the days 
>of LIN/EISPACK-based code, and I don't understand why it has been chnaged 
>to returning NAs in the case of NaN inputs.
>
>Now all of eigen, La.eigen, svd and La.svd give an error on matrix(Inf,2,2).
>
>On Sat, 29 Nov 2003 pburns at pburns.seanet.com wrote:
>
>  
>
>>Full_Name: Patrick Burns
>>Version: 1.8.1
>>OS: Windows 2000
>>Submission from: (NULL) (81.129.3.151)
>>
>>
>>The command:
>>
>>eigen(matrix(Inf, 2, 2))
>>
>>causes version 1.8.1 to hang in both Windows 2000 and SuSe 8.2.
>>(Hang defined as apparently needing to kill the process in order
>>to get a prompt back.)
>>
>>
>>This is similar to bug #4366 where the same command used NaN
>>instead of Inf.
>>
>>______________________________________________
>>R-devel at stat.math.ethz.ch mailing list
>>https://www.stat.math.ethz.ch/mailman/listinfo/r-devel
>>
>>
>>    
>>
>
>  
>



More information about the R-devel mailing list