Mentions légales du service

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

Fix TransformHelperGen::factors transpose case bug.

Bug introduced by recent 53ac95b4.
parent 6c21c9b6
No related branches found
No related tags found
No related merge requests found
...@@ -367,6 +367,8 @@ namespace Faust ...@@ -367,6 +367,8 @@ namespace Faust
ids_ = new faust_unsigned_int[n_ids]; ids_ = new faust_unsigned_int[n_ids];
for(auto i = 0;i < n_ids;i++) for(auto i = 0;i < n_ids;i++)
{ {
if(is_transposed)
ids_[i] = size() - ids[i] - 1;
auto id = ids_[i]; auto id = ids_[i];
if(id >= size()) throw out_of_range("factor id is greater or equal to the size of Transform."); if(id >= size()) throw out_of_range("factor id is greater or equal to the size of Transform.");
if(id == 0 || id == size()-1) if(id == 0 || id == size()-1)
...@@ -374,8 +376,6 @@ namespace Faust ...@@ -374,8 +376,6 @@ namespace Faust
const_cast<Faust::TransformHelperGen<FPP, DEV>*>(this)->eval_sliced_Transform(); const_cast<Faust::TransformHelperGen<FPP, DEV>*>(this)->eval_sliced_Transform();
const_cast<Faust::TransformHelperGen<FPP, DEV>*>(this)->eval_fancy_idx_Transform(); const_cast<Faust::TransformHelperGen<FPP, DEV>*>(this)->eval_fancy_idx_Transform();
} }
if(is_transposed)
ids_[i] = size() - id - 1;
} }
std::vector<Faust::MatGeneric<FPP,DEV>*> factors; std::vector<Faust::MatGeneric<FPP,DEV>*> factors;
for(auto i=0; i < n_ids; i++) for(auto i=0; i < n_ids; i++)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment