diff options
author | torset | 2009-02-17 13:15:21 +0000 |
---|---|---|
committer | torset | 2009-02-17 13:15:21 +0000 |
commit | fde5f7914c9b74fad2c8208e93995d1d19611142 (patch) | |
tree | 87422643ba979dc399228d720357cda014481efc /src/matrixOperations/includes/spec.h | |
parent | 106b738f4e54417e5e51ff93ea4b509e5676895d (diff) | |
download | scilab2c-fde5f7914c9b74fad2c8208e93995d1d19611142.tar.gz scilab2c-fde5f7914c9b74fad2c8208e93995d1d19611142.tar.bz2 scilab2c-fde5f7914c9b74fad2c8208e93995d1d19611142.zip |
Fixed errors in spec2
Diffstat (limited to 'src/matrixOperations/includes/spec.h')
-rw-r--r-- | src/matrixOperations/includes/spec.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/matrixOperations/includes/spec.h b/src/matrixOperations/includes/spec.h index 0ab5e4b6..d00978e3 100644 --- a/src/matrixOperations/includes/spec.h +++ b/src/matrixOperations/includes/spec.h @@ -21,8 +21,8 @@ If you want the eigenvalues and the eigenvectors, use spec2 */ /* spec */ -#define sspecs(in) in -#define dspecs(in) in +#define sspecs(in) FloatComplex(in,0) +#define dspecs(in) DoubleComplex(in,0) #define cspecs(in) in #define zspecs(in) in @@ -34,10 +34,10 @@ void zspeca(doubleComplex* in, int rows,doubleComplex* out); /* spec2 */ -#define sspec2s(in,out) {out=in;return 1;} -#define dspec2s(in,out) {out=in;return 1;} -#define cspec2s(in,out) {out=in;return FloatComplex(1,0);} -#define zspec2s(in,out) {out=in;return DoubleCompelx(1,0);} +#define sspec2s(in,out) sspecs(1);*out=FloatComplex(in,0); +#define dspec2s(in,out) dspecs(1);*out=DoubleComplex(in,0); +#define cspec2s(in,out) cspecs(FloatComplex(1,0));*out=FloatComplex(creals(in),cimags(in)); +#define zspec2s(in,out) zspecs(DoubleComplex(1,0));*out=DoubleComplex(zreals(in),zimags(in)); void sspec2a(float* in, int rows, floatComplex* eigenvalues,floatComplex* eigenvectors); void dspec2a(double* in, int rows, doubleComplex* eigenvalues,doubleComplex* eigenvectors); |