Kronecker DLL: fix minor issue (was creating a lot of warnings under Octave)
parent
6c22d398e6
commit
5a9615951c
|
@ -152,12 +152,14 @@ mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
|
||||||
int numthreads;
|
int numthreads;
|
||||||
A = mxGetPr(prhs[0]);
|
A = mxGetPr(prhs[0]);
|
||||||
B = mxGetPr(prhs[1]);
|
B = mxGetPr(prhs[1]);
|
||||||
numthreads = (int) mxGetScalar(prhs[2]);
|
|
||||||
if (nrhs == 4)
|
if (nrhs == 4)
|
||||||
{
|
{
|
||||||
C = mxGetPr(prhs[2]);
|
C = mxGetPr(prhs[2]);
|
||||||
numthreads = (int) mxGetScalar(prhs[3]);
|
numthreads = (int) mxGetScalar(prhs[3]);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
numthreads = (int) mxGetScalar(prhs[2]);
|
||||||
|
|
||||||
// Initialization of the ouput:
|
// Initialization of the ouput:
|
||||||
double *D;
|
double *D;
|
||||||
if (nrhs == 4)
|
if (nrhs == 4)
|
||||||
|
|
Loading…
Reference in New Issue