From dbbe16fc30f2f435906cbba26d2be3ef5336a612 Mon Sep 17 00:00:00 2001 From: Jiri Pittner Date: Fri, 8 Jul 2022 11:34:50 +0200 Subject: [PATCH] optional vr vl pointers for gdiagonalize --- nonclass.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nonclass.h b/nonclass.h index 494da68..9e9e707 100644 --- a/nonclass.h +++ b/nonclass.h @@ -106,18 +106,18 @@ declare_la(std::complex) //general nonsymmetric matrix and generalized diagonalization //corder =0 ... C rows are eigenvectors, =1 ... C columns are eigenvectors extern void gdiagonalize(NRMat &a, NRVec &wr, NRVec &wi, - NRMat *vl, NRMat *vr, const bool corder=1, int n=0, const int sorttype=0, const int biorthonormalize=0, + NRMat *vl=NULL, NRMat *vr=NULL, const bool corder=1, int n=0, const int sorttype=0, const int biorthonormalize=0, NRMat *b=NULL, NRVec *beta=NULL); //this used real storage of eigenvectors like dgeev template extern void gdiagonalize(NRMat &a, NRVec< std::complex > &w, - NRMat< std::complex >*vl, NRMat< std::complex > *vr, + NRMat< std::complex >*vl=NULL, NRMat< std::complex > *vr=NULL, const bool corder=1, int n=0, const int sorttype=0, const int biorthonormalize=0, NRMat *b=NULL, NRVec *beta=NULL); //eigenvectors are stored in complex matrices for T both double and complex //for compatibility in davidson extern void gdiagonalize(NRMat > &a, NRVec &wr, NRVec &wi, - NRMat > *vl, NRMat > *vr, const bool corder=1, int n=0, const int sorttype=0, const int biorthonormalize=0, + NRMat > *vl=NULL, NRMat > *vr=NULL, const bool corder=1, int n=0, const int sorttype=0, const int biorthonormalize=0, NRMat > *b=NULL, NRVec > *beta=NULL); //complex,real,imaginary parts of various entities