From 681fe5c15be0a3a29dc9fdfa30142916a2ce6675 Mon Sep 17 00:00:00 2001 From: Sandeep Gupta Date: Tue, 20 Jun 2017 17:18:04 +0530 Subject: 20-06-17 --- src/c/linearAlgebra/spec/dspec1a.c | 151 +++++++++++++++++++++++++++++++++++-- 1 file changed, 143 insertions(+), 8 deletions(-) (limited to 'src/c/linearAlgebra/spec') diff --git a/src/c/linearAlgebra/spec/dspec1a.c b/src/c/linearAlgebra/spec/dspec1a.c index 069454d..28440be 100644 --- a/src/c/linearAlgebra/spec/dspec1a.c +++ b/src/c/linearAlgebra/spec/dspec1a.c @@ -12,30 +12,165 @@ /*This function finds the hessenberg form of a matrix A.*/ -#include "hess.h" +#include "spec.h" #include #include "string.h" #include "stdlib.h" #include "lapack.h" #include "matrixTranspose.h" #include "matrixMultiplication.h" +#include "doubleComplex.h" -void dspec1a(double *in1,double *in2,int size,int nout,double *out1,double *out2,double *out3,double *out4){ +extern int dggev_(char *,char *,int *,double *,int *,double *,int *,double *,double *,double *,double *,int *,double *,int *,double *,int *,int *); + +void assembleEigenvectorsInPlace(int N,double *ALPHAI,double *EVreal,double *EVimg){ + int j,i; + j=0; + while(j