Mentions légales du service

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

Add copy operator= in Faust::TransformHelper<FPP,GPU2>.

parent c07403f0
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,7 @@ namespace Faust
void pack_factors(faust_unsigned_int start_id, faust_unsigned_int end_id);
void pack_factors();
void update(const MatGeneric<FPP, GPU2>& M, const faust_unsigned_int id);
void operator=(TransformHelper<FPP,GPU2>& th);
typename Transform<FPP,GPU2>::iterator begin() const;
typename Transform<FPP,GPU2>::iterator end() const;
};
......
......@@ -152,8 +152,8 @@ namespace Faust
return this->transform->pop_back();
}
template<typename FPP>
void Faust::TransformHelper<FPP,GPU2>::pack_factors()
template<typename FPP>
void Faust::TransformHelper<FPP,GPU2>::pack_factors()
{
TransformHelperGen<FPP,Cpu>::pack_factors();
}
......@@ -217,4 +217,20 @@ namespace Faust
{
return this->transform->end();
}
template<typename FPP>
void TransformHelper<FPP,GPU2>::operator=(TransformHelper<FPP,GPU2>& th)
{
//TODO: factorize with TranformHelper<FPP,Cpu> into parent class TransformHelperGen.
this->transform = th.transform;
this->is_transposed = th.is_transposed;
this->is_conjugate = th.is_conjugate;
this->is_sliced = th.is_sliced;
if(th.is_sliced)
copy_slices(&th);
this->mul_order_opt_mode = th.mul_order_opt_mode;
this->Fv_mul_mode = th.Fv_mul_mode;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment