Mentions légales du service

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

Add MatDense::print_mat utility function

parent ba963ef0
No related branches found
No related tags found
No related merge requests found
...@@ -377,6 +377,12 @@ namespace Faust ...@@ -377,6 +377,12 @@ namespace Faust
//! \brief Displays the MatDense //! \brief Displays the MatDense
void Display() const; void Display() const;
/**
* \brief Prints matrix with an optional header/title.
*/
void print_mat(std::string header="") const { if (header != "") std::cout << header << std::endl; std::cout << mat << std::endl;}
//! \brief Returns all the features of the MatDense. //! \brief Returns all the features of the MatDense.
std::string to_string(const bool transpose=false, const bool displaying_small_mat_elts=false) const; std::string to_string(const bool transpose=false, const bool displaying_small_mat_elts=false) const;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment