dim_calc.h

来自「一个通用的数学库」· C头文件 代码 · 共 37 行

H
37
字号
#ifndef MTL_DIM_CALC_H#define MTL_DIM_CALC_H#include "mtl/fast.h"namespace mtl {//: For use in deciding whether to do static algorithm//!noindex:template <class Vector>class dim_n {public:#if USE_BLAIS  enum { N = (0 < Vector::N && Vector::N <= 15 ? Vector::N : 0) };  typedef fast::count<N> RET;#else  typedef fast::count<0> RET;#endif};//: For use in deciding whether to do static algorithm//!noindex:template <class Matrix>class dim_m {public:#if USE_BLAIS  enum { M = (0 < Matrix::M && Matrix::M <= 15 ? Matrix::M : 0) };  typedef fast::count<M> RET;#else  typedef fast::count<0> RET;#endif};} /* namespace mtl */#endif /* MTL_DIM_CALC_H */

⌨️ 快捷键说明

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