From ripley at stats.ox.ac.uk  Sun Mar 18 07:51:58 2007
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Sun, 18 Mar 2007 06:51:58 +0000 (GMT)
Subject: [Rd] eigen returns NAs from a real matrix
In-Reply-To: <45FCCCC5.3060806@pdf.com>
References: <45FCCCC5.3060806@pdf.com>
Message-ID: <Pine.LNX.4.64.0703180651080.24029@gannet.stats.ox.ac.uk>

On Sat, 17 Mar 2007, Spencer Graves wrote:

> Hi, All:
>     Attached please find a symmetric, indefinite matrix for which 
> 'eigen(...)$vectors' included NAs: 
>> load("eigenBug.Rdata")
>> sum(is.na(eigen(eigenBug)$vectors))
> [1] 5670
>> sessioninfo()
> Error: could not find function "sessioninfo"
>> sessionInfo()
> R version 2.4.1 (2006-12-18)
> i386-pc-mingw32
>
> locale:
> LC_COLLATE=English_United States.1252;LC_CTYPE=English_United 
> States.1252;LC_MONETARY=English_United 
> States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252
>
> attached base packages:
> [1] "stats"     "graphics"  "grDevices" "utils"     "datasets"  "methods" [7] 
> "base"
>     Using EISPACK does NOT return NAs: > sum(is.na(eigen(eigenBug, 
> EISPACK=TRUE)$vectors))
> [1] 0
>
>
>     I traced the problem to the following line in 'eigen':
>           z <- if (!complex.x)
>               .Call("La_rs", x, only.values, PACKAGE = "base")
>
>
>     Comments?

Nothing appeared as an attachment.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] eigen returns NAs from a real matrix
Prof Brian Ripley