Mentions légales du service

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

Change the return type of TransformHelperButterfly<FPP,Cpu>::fourierFaust to...

Change the return type of TransformHelperButterfly<FPP,Cpu>::fourierFaust to parent TransformHelper (does'nt change anything).
parent ecc3f47a
No related branches found
No related tags found
No related merge requests found
......@@ -45,13 +45,13 @@ namespace Faust
public:
static TransformHelperButterfly<FPP,Cpu>* fourierFaust(unsigned int n, const bool norma=true);
Vect<FPP, Cpu> multiply(const Vect<FPP, Cpu>& x);
void multiply(const FPP* x, FPP* y);
Vect<FPP,Cpu> multiply(const FPP* x);
void multiply(const FPP* A, int A_ncols, FPP* C);
MatDense<FPP, Cpu> multiply(const MatDense<FPP,Cpu> &A);
MatDense<FPP, Cpu> multiply(const MatSparse<FPP,Cpu> &A);
static TransformHelper<FPP,Cpu>* fourierFaust(unsigned int n, const bool norma=true);
};
......
......@@ -29,16 +29,17 @@ namespace Faust
}
template<typename FPP>
TransformHelperButterfly<FPP,Cpu>* TransformHelperButterfly<FPP,Cpu>::fourierFaust(unsigned int n, const bool norma)
TransformHelper<FPP,Cpu>* TransformHelperButterfly<FPP,Cpu>::fourierFaust(unsigned int n, const bool norma)
{
std::vector<MatGeneric<FPP,Cpu>*> factors(n+1);
TransformHelperButterfly<FPP,Cpu>* fourierFaust = nullptr;
TransformHelper<FPP,Cpu>* fourierFaust = nullptr;
try
{
fft_factors(n, factors);
FPP alpha = norma?FPP(1/sqrt((double)(1 << n))):FPP(1.0);
fourierFaust = new TransformHelperButterfly<FPP, Cpu>(factors, alpha, false, false, /* internal call */ true);
}
catch(std::bad_alloc e)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment