Mentions légales du service

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

Update cpp ConstraintGeneric Display and add pos/normalized getter.

parent c0382679
No related branches found
No related tags found
No related merge requests found
......@@ -171,6 +171,8 @@ void Faust::ConstraintGeneric::Display() const
std::cout << this->get_constraint_name();
std::cout<<" nb_row: "<< this->get_rows();
std::cout<<" nb_col: "<< this->get_cols();
std::cout<<" normalized :"<< get_normalizing() << std::endl;
std::cout<<" pos :"<< get_pos() << std::endl;
}
const char * Faust::ConstraintGeneric::m_className="Faust::ConstraintGeneric::";
......@@ -122,7 +122,10 @@ namespace Faust
virtual void set_default_parameter()=0;
virtual void check_constraint_name()const=0;
void set_normalizing(const bool normalizing) {this->normalizing = normalizing;}
bool get_normalizing() const {return normalizing;}
void set_pos(const bool pos) {this->pos = pos;}
bool get_pos() const {return pos;};
faust_constraint_name get_name() const {return m_constraintName;};
template<typename FPP, FDevice DEVICE>
/*virtual*/ void project(MatDense<FPP,DEVICE> & mat)const;//=0; //template with (pure) virtual not authorized (otherwise it must be templates from class, not function)
template<typename FPP, FDevice DEVICE, typename FPP2>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment