Mentions légales du service

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

Set identity flag to false in MatPerm/Butterfly<FPP,Cpu>::toMatSparse.

parent 4397ff5e
Branches
Tags
No related merge requests found
...@@ -487,6 +487,7 @@ namespace Faust ...@@ -487,6 +487,7 @@ namespace Faust
MatSparse<FPP, Cpu> sp(this->getNbRow(), this->getNbCol()); MatSparse<FPP, Cpu> sp(this->getNbRow(), this->getNbCol());
sp.setEyes(); sp.setEyes();
multiply(sp, 'N'); multiply(sp, 'N');
sp.set_id(false);
return sp; return sp;
#else #else
// strange rare bugs occurred with this version (when making a toarray of a pyfaust.Faust containing MatButterfly) // strange rare bugs occurred with this version (when making a toarray of a pyfaust.Faust containing MatButterfly)
......
...@@ -456,6 +456,7 @@ namespace Faust ...@@ -456,6 +456,7 @@ namespace Faust
tripletList.push_back(Eigen::Triplet<FPP>(i, perm_ids[i], d_ptr[i])); tripletList.push_back(Eigen::Triplet<FPP>(i, perm_ids[i], d_ptr[i]));
auto sp = MatSparse<FPP, Cpu>(tripletList, s, s); auto sp = MatSparse<FPP, Cpu>(tripletList, s, s);
sp.conservativeResize(s, s); sp.conservativeResize(s, s);
sp.set_id(false); //TODO: it might be the identity, verify (add a MatDiag::isDiag(bool verify_id=true), static function)
return sp; return sp;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment