From ripley at stats.ox.ac.uk  Sun Feb  1 08:53:45 2015
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Sun, 01 Feb 2015 07:53:45 +0000
Subject: [Rd] error code 1 from Lapack routine 'dsyevr'
In-Reply-To: <1422713746884-4702571.post@n4.nabble.com>
References: <1422713746884-4702571.post@n4.nabble.com>
Message-ID: <54CDDB89.5090406@stats.ox.ac.uk>

On 31/01/2015 14:15, eigen wrote:
> Hi,
>
> I got an error message in my program saying
>
> "Error in eigen(gene_intersection.kernel) :
>    error code 1 from Lapack routine 'dsyevr'
> Execution halted".
>
> As you see, I was trying to compute the eigenvalues of a matrix but got this
> error. Is there anyone who knows what this error means and how I can fix it?

The help page for eigen says

Source:

      By default ?eigen? uses the LAPACK routines ?DSYEVR?, ?DGEEV?,
      ?ZHEEV? and ?ZGEEV?

      LAPACK is from <URL: http://www.netlib.org/lapack> and its guide
      is listed in the references.

You need to consult that guide and/or the source code: all I saw at a 
cursory look was

*> \param[out] INFO
*> \verbatim
*>          INFO is INTEGER
*>          = 0:  successful exit
*>          < 0:  if INFO = -i, the i-th argument had an illegal value
*>          > 0:  Internal error
*> \endverbatim

so it means 'internal error'.

> Theoretically the eigenvalues should be nonnegative, if it helps.
>
> Thank you!

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Emeritus Professor of Applied Statistics, University of Oxford
1 South Parks Road, Oxford OX1 3TG, UK



[Rd] error code 1 from Lapack routine 'dsyevr'
Prof Brian Ripley