Mentions légales du service

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

Bind pyfaust.opt_butterfly_faust to TransformHelper::optButterflyFaust and add...

Bind pyfaust.opt_butterfly_faust to TransformHelper::optButterflyFaust and add a (not yet implemented yet) GPU2 version of this function.
parent a7f0a56b
No related branches found
No related tags found
No related merge requests found
......@@ -133,6 +133,7 @@ namespace Faust
virtual ~TransformHelper() {};
static TransformHelper<FPP,GPU2>* hadamardFaust(unsigned int n, const bool norma=true);
static TransformHelper<FPP,GPU2>* fourierFaust(unsigned int n, const bool norma=true);
static TransformHelper<FPP,GPU2>* optButterflyFaust(const TransformHelper<FPP, GPU2>* F);
static TransformHelper<FPP,GPU2>* eyeFaust(unsigned int n, unsigned int m);
TransformHelper<FPP,GPU2>* pruneout(const int nnz_tres, const int npasses=-1, const bool only_forward=false);
......
......@@ -1003,6 +1003,13 @@ namespace Faust
return cpu_out;
}
template<typename FPP>
TransformHelper<FPP, Cpu>* TransformHelper<FPP,Cpu>::optButterflyFaust(const TransformHelper<FPP, GPU2>* F)
{
return TransformHelperButterfly<FPP, GPU2>::optFaust(F);
}
}
#include "faust_TransformHelper_cat_gpu.hpp"
......@@ -571,7 +571,7 @@ template<typename FPP, FDevice DEV>
template<typename FPP, FDevice DEV>
FaustCoreCpp<FPP,DEV>* FaustCoreCpp<FPP,DEV>::optimizeButterfly() const
{
Faust::TransformHelper<FPP,DEV>* th = Faust::TransformHelperButterfly<FPP,DEV>::optFaust(this->transform);
Faust::TransformHelper<FPP,DEV>* th = Faust::TransformHelper<FPP,DEV>::optButterflyFaust(this->transform);
if(!th) return NULL;
FaustCoreCpp<FPP,DEV>* core = new FaustCoreCpp<FPP,DEV>(th);
return core;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment