Commit 5a961595 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

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

parent 6c22d398
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment