diff options
author | rupak | 2019-08-22 18:15:32 +0530 |
---|---|---|
committer | rupak | 2019-08-22 18:15:32 +0530 |
commit | 273f28978c7167e03784e46d60a205b1b346ca9a (patch) | |
tree | 99ff18bae221f0f951e1a8a9a30d327a4946102d /sci_gateway/cpp/sci_matrix.cpp | |
parent | 22cfee9ea7d5556c44401054c0155511fed8f179 (diff) | |
download | fossee-scilab-octave-toolbox-273f28978c7167e03784e46d60a205b1b346ca9a.tar.gz fossee-scilab-octave-toolbox-273f28978c7167e03784e46d60a205b1b346ca9a.tar.bz2 fossee-scilab-octave-toolbox-273f28978c7167e03784e46d60a205b1b346ca9a.zip |
scilab reads int from octave
Diffstat (limited to 'sci_gateway/cpp/sci_matrix.cpp')
-rw-r--r-- | sci_gateway/cpp/sci_matrix.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sci_gateway/cpp/sci_matrix.cpp b/sci_gateway/cpp/sci_matrix.cpp index 071d330..2b2c544 100644 --- a/sci_gateway/cpp/sci_matrix.cpp +++ b/sci_gateway/cpp/sci_matrix.cpp @@ -1,6 +1,8 @@ + extern "C" { #include<Scierror.h> +#include<sciprint.h> #include<api_scilab.h> #include "localization.h" #include<fun.h> @@ -23,9 +25,16 @@ if (nout != 1) return 1; } + //int x = fun(); + //typename (x); double x = fun(); + //sciprint("%f\n", fun()); + - out[0] = scilab_createDouble( env, x); + out[0] = scilab_createDouble(env, x); + + //out[0] = scilab_createDoubleMatrix(env, 20, 1, 0); + //scilab_getDoubleArray(env, out[0], &x); return 0; } |