summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordetailer2021-05-11 17:21:15 +0530
committerdetailer2021-05-11 17:21:15 +0530
commit89459fb1b9b44d9e0acb35bf256b482828055d5f (patch)
treebe69ace4ab6575f8da9d530bab8f16eaa442d087
parenta938a95dd5b903f2e1f242e70b9db368ff422f41 (diff)
downloadfossee-scilab-octave-toolbox-89459fb1b9b44d9e0acb35bf256b482828055d5f.tar.gz
fossee-scilab-octave-toolbox-89459fb1b9b44d9e0acb35bf256b482828055d5f.tar.bz2
fossee-scilab-octave-toolbox-89459fb1b9b44d9e0acb35bf256b482828055d5f.zip
O/P Real DOUBLE matrix creation fixed
-rw-r--r--sci_gateway/cpp/sci_octave.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sci_gateway/cpp/sci_octave.cpp b/sci_gateway/cpp/sci_octave.cpp
index dcc3af0..377506a 100644
--- a/sci_gateway/cpp/sci_octave.cpp
+++ b/sci_gateway/cpp/sci_octave.cpp
@@ -347,7 +347,7 @@ extern "C"
scilab_setStructMatrix2dData(env, out[i], (const wchar_t*) outStruct[j].key, 0, 0, currValue);
}
else if (outStruct[j].type == TYPE_DOUBLE){
- currValue = scilab_createDoubleMatrix2d(env, outStruct[j].rows, outStruct[j].cols, 1);
+ currValue = scilab_createDoubleMatrix2d(env, outStruct[j].rows, outStruct[j].cols, 0);
double *outReal = NULL;
scilab_getDoubleArray(env, currValue, &outReal);