Mentions légales du service

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

Fix pruneout bug due to use of not copying ctor.

The variadic template constructor added by 3aba9465 has overshadowed the constructor Faust::TransformHelper(std::vector, FPP, bool, bool, bool) that was used before by pruneout hence the bug (because the factors weren't copied anymore).

It closes issue #132.
parent 085554a7
No related branches found
No related tags found
No related merge requests found
......@@ -389,7 +389,7 @@ namespace Faust {
TransformHelper<FPP,Cpu>* TransformHelper<FPP,Cpu>::pruneout(const int nnz_tres, const int npasses, const bool only_forward)
{
int _npasses = 0;
TransformHelper<FPP,Cpu> *pth = new TransformHelper<FPP,Cpu>(this->transform->data);
TransformHelper<FPP,Cpu> *pth = new TransformHelper<FPP,Cpu>(this->transform->data, 1.0);
MatGeneric<FPP,Cpu>* S_i, *S_j;
MatDense<FPP,Cpu>* tmp_ds;
MatSparse<FPP,Cpu>* tmp_sp;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment