Mentions légales du service

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

Make MatGeneric::getNbRow/NbCol virtual in order to override them in MatButterfly.

parent 320f11bb
No related branches found
No related tags found
No related merge requests found
...@@ -51,6 +51,9 @@ namespace Faust ...@@ -51,6 +51,9 @@ namespace Faust
void init_transpose(); void init_transpose();
void Display() const; void Display() const;
faust_unsigned_int getNbRow() const { return D1.rows();};
faust_unsigned_int getNbCol() const { return D1.cols();};
void multiply(const FPP* x, FPP* y, size_t size, bool transpose = false); void multiply(const FPP* x, FPP* y, size_t size, bool transpose = false);
void multiply(const FPP* A, int A_ncols, FPP* C, size_t size, bool transpose = false); void multiply(const FPP* A, int A_ncols, FPP* C, size_t size, bool transpose = false);
......
...@@ -90,10 +90,10 @@ namespace Faust ...@@ -90,10 +90,10 @@ namespace Faust
void setOp(const char op, faust_unsigned_int& nbRowOp, faust_unsigned_int& nbColOp)const; void setOp(const char op, faust_unsigned_int& nbRowOp, faust_unsigned_int& nbColOp)const;
//! \brief return the number of rows of (*this) //! \brief return the number of rows of (*this)
faust_unsigned_int getNbRow() const {return dim1;} virtual faust_unsigned_int getNbRow() const {return dim1;}
//! \brief return the number of column of (*this) //! \brief return the number of column of (*this)
faust_unsigned_int getNbCol() const {return dim2;} virtual faust_unsigned_int getNbCol() const {return dim2;}
//! \brief resize (*this) //! \brief resize (*this)
//! \param dim1_ : new number of rows //! \param dim1_ : new number of rows
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment