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

📄 elt.h

📁 强大的矩阵模版类
💻 H
字号:
#ifndef MTL_ELT_H#define MTL_ELT_Htemplate <class Tnum, class Index>class elt {  typedef elt<Tnum,Index> self;public:  inline elt(const self& x)     : value_(x.value_), row_(x.row_), column_(x.column_) { }  inline elt(Tnum& v, const Index& i, const Index& j)    : value_(v), row_(i), column_(j) { }  inline self& operator=(const self& x) {    value_ = x.value_; row_ = x.row_; column_ = x.column_;    return *this;  }  inline self& operator=(const Tnum& v) { value_ = v; return *this; }  inline operator Tnum&() { return value_; }  inline Index row() { return row_; }  inline Index column() { return column_; }protected:  Tnum& value_;  Index row_;  Index column_;};#endif

⌨️ 快捷键说明

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