Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 00fc5f98 authored by hhakim's avatar hhakim
Browse files

Fix FaustVec2mxArray complex case.

The bug dates from the move to the complex interleaved API.
parent 599c1553
No related branches found
No related tags found
No related merge requests found
......@@ -188,13 +188,12 @@ mxArray* FaustVec2mxArray(const Faust::Vect<std::complex<FPP>,Cpu>& v)
mxArray * mxMat;
int row,col;
row = v.size();
col = 1;
col = 1;
const mwSize dims[2]={(mwSize)row,(mwSize)col};
mxMat = helperCreateNumMxArray<FPP>(dims);
mxMat = helperCreateNumMxArray<std::complex<FPP>>(dims);
#ifdef MX_HAS_INTERLEAVED_COMPLEX
copyComplexDataToMxArray(v.getData(), sizeof(complex<FPP>)*row*col, mxMat);
copyComplexDataToMxArray(v.getData(), row*col, mxMat);
#else
FPP* ptr_real_data = static_cast<FPP*> (mxGetData(mxMat));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment