From 89459fb1b9b44d9e0acb35bf256b482828055d5f Mon Sep 17 00:00:00 2001 From: detailer Date: Tue, 11 May 2021 17:21:15 +0530 Subject: O/P Real DOUBLE matrix creation fixed --- sci_gateway/cpp/sci_octave.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit