⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fmat.h

📁 ears-0.32, linux下有用的语音信号处理工具包
💻 H
字号:
#ifndef Fmat_h#define Fmat_hclass fmat{public:  fmat() : values_(0), nrows_(0), ncols_(0) {}  fmat (int r, int c) : nrows_(r), ncols_(c)  {    values_ = new float* [nrows_];    for (int k=0; k<nrows_; k++)      values_[k] = new float [ncols_];  }    ~fmat()   {    for (int k=0; k<nrows_; k++)      delete [] values_[k];    delete [] values_;  }      void init (int r, int c)  {    values_ = new float* [nrows_=r];    for (int k=0; k<nrows_; k++)      values_[k] = new float [ncols_=c];  }    float* operator[] (int k) const { return values_[k]; }  float** buf() const             { return values_; }  int rows() const                { return nrows_; }  int cols() const                { return ncols_; }private:  float **values_;  int nrows_, ncols_;};#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -