From 999122e511f5f2cabdff0bb26908db4e57dfcee2 Mon Sep 17 00:00:00 2001 From: ttt Date: Sat, 5 Oct 2019 23:13:58 +0530 Subject: complex numbers enabled --- sci_gateway/cpp/libscilab_toolbox.so | Bin 17024 -> 17160 bytes sci_gateway/cpp/sci_matrix.cpp | 113 ++++++++++++++++++++++++++--------- thirdparty/linux/include/fun.h | 8 ++- thirdparty/linux/lib/x64/libfun.so | Bin 2755312 -> 2856224 bytes 4 files changed, 92 insertions(+), 29 deletions(-) diff --git a/sci_gateway/cpp/libscilab_toolbox.so b/sci_gateway/cpp/libscilab_toolbox.so index 3aec94f..1349c2f 100755 Binary files a/sci_gateway/cpp/libscilab_toolbox.so and b/sci_gateway/cpp/libscilab_toolbox.so differ diff --git a/sci_gateway/cpp/sci_matrix.cpp b/sci_gateway/cpp/sci_matrix.cpp index 0e2bc2c..2346bdd 100644 --- a/sci_gateway/cpp/sci_matrix.cpp +++ b/sci_gateway/cpp/sci_matrix.cpp @@ -38,41 +38,76 @@ int sci_octave_fun(scilabEnv env, int nin, scilabVar* in, int nopt, scilabOpt* o int i,j; double* d; + double* rd; + double* cd; int size; char str[20]; char* c; double* n = NULL; int row = 0; int col = 0; + double* in_real; + double* in_img; for(i=0;i