// // LAPACK++ 1.1 Linear Algebra Package 1.1 // University of Tennessee, Knoxvilee, TN. // Oak Ridge National Laboratory, Oak Ridge, TN. // Authors: J. J. Dongarra, E. Greaser, R. Pozo, D. Walker // (C) 1992-1996 All Rights Reserved // // NOTICE // // Permission to use, copy, modify, and distribute this software and // its documentation for any purpose and without fee is hereby granted // provided that the above copyright notice appear in all copies and // that both the copyright notice and this permission notice appear in // supporting documentation. // // Neither the Institutions (University of Tennessee, and Oak Ridge National // Laboratory) nor the Authors make any representations about the suitability // of this software for any purpose. This software is provided ``as is'' // without express or implied warranty. // // LAPACK++ was funded in part by the U.S. Department of Energy, the // National Science Foundation and the State of Tennessee. #ifdef HAVE_CONFIG_H # include #endif #include #include "lapack.h" #include "lafnames.h" #ifdef LA_COMPLEX_SUPPORT # include LA_GEN_MAT_COMPLEX_H # include LA_VECTOR_COMPLEX_H #endif #include LA_GEN_MAT_DOUBLE_H #include LA_VECTOR_DOUBLE_H #include LA_VECTOR_INT_H #include LA_SPD_MAT_DOUBLE_H #include LA_SYMM_MAT_DOUBLE_H #include LA_EXCEPTION_H #include LA_SOLVE_DOUBLE_H #include LA_UTIL_H void LaEigSolve(const LaSymmMatDouble &S, LaVectorDouble &eigvals) { //#ifndef HPPA // const char fname[] = "LaEigSolve(LaSymmMatDouble &A, &eigvals)"; //#else // char *fname = NULL; // HP C++ does not support string initalization! //#endif LaSymmMatDouble tmp(S); LaEigSolveIP(tmp, eigvals); } void LaEigSolve(const LaSymmMatDouble &S, LaVectorDouble &eigvals, LaGenMatDouble &eigvec) { //#ifndef HPPA // const char fname[] = "LaEigSolve(LaSymmMatDouble &A, &eigvals, &eigvecs)"; //#else // char *fname = NULL; // HP C++ does not support string initalization! //#endif // It is unclear whether this function implementation really is // a good thing. Was introduced in revision 1.3 on 2004-09-08, // see // http://sourceforge.net/mailarchive/message.php?msg_id=9480567 long int N = S.size(0); long int i,j; for(j=0;j