Kronecker DLL: fix minor issue (was creating a lot of warnings under Octave)

time-shift
Sébastien Villemot 2010-11-24 19:12:03 +01:00
parent 6c22d398e6
commit 5a9615951c
1 changed files with 3 additions and 1 deletions

View File

@ -152,12 +152,14 @@ mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
int numthreads;
A = mxGetPr(prhs[0]);
B = mxGetPr(prhs[1]);
numthreads = (int) mxGetScalar(prhs[2]);
if (nrhs == 4)
{
C = mxGetPr(prhs[2]);
numthreads = (int) mxGetScalar(prhs[3]);
}
else
numthreads = (int) mxGetScalar(prhs[2]);
// Initialization of the ouput:
double *D;
if (nrhs == 4)