Mentions légales du service

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

Setup a workaround to the 2-norm normalization bug on complex Faust...

Setup a workaround to the 2-norm normalization bug on complex Faust exclusively occurring on matfaust (pyfaust is ok).

The workaround simply consists to use the frobenius norm instead of the equal L2 norm (of vectors).
parent b6e9cca0
Branches
Tags
No related merge requests found
......@@ -519,7 +519,7 @@ void save(Faust::TransformHelper<SCALAR,Cpu>* core_ptr, int nargs, const mxArray
if(!strcmp("normalize", cmd))
{
int ord = (int) mxGetScalar(prhs[2]);
if(ord == 2) ord = -2; //tmp workaround to the bug in normalization according 2-norm on complex Faust
Faust::TransformHelper<SCALAR,Cpu>* th = core_ptr->normalize(ord);
plhs[0] = convertPtr2Mat<Faust::TransformHelper<SCALAR,Cpu> >(th);
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment