Mentions légales du service

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

Correct Vect::equality prototype, the precision is always real.

parent 3bfcccec
Branches
Tags
No related merge requests found
......@@ -191,7 +191,7 @@ namespace Faust
void set_coeff(faust_unsigned_int i, const FPP& val) { (*this)[i] = val;};
const FPP& operator()(faust_unsigned_int i)const{return vec(i);}
bool equality(Vect<FPP,Cpu> const &x, FPP precision) const;
bool equality(Vect<FPP,Cpu> const &x, const Real<FPP> precision) const;
FPP mean();
static Vect<FPP, Cpu>* rand(faust_unsigned_int size);
......
......@@ -75,7 +75,7 @@ Faust::Vect<FPP,Cpu>::Vect(Faust::Vect<FPP,Cpu>&& v)
}
template<typename FPP>
bool Faust::Vect<FPP,Cpu>::equality(Faust::Vect<FPP,Cpu> const &x, FPP precision) const
bool Faust::Vect<FPP,Cpu>::equality(Faust::Vect<FPP,Cpu> const &x, const Real<FPP> precision) const
{
if (size() != x.size())
handleError(m_className," equality : different dimension");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment