matrix_binary_mm.hxx

来自「高效的c++科学算法库」· HXX 代码 · 共 27 行

HXX
27
字号
// ---------------------------------------------------------- -*- c++ -*-// Matrix Operator Matrix// ----------------------------------------------------------------------// file     = _filename_// name     = _name_// operator = _operator_// ----------------------------------------------------------------------template <typename T1_value,                                                          typename T1_structure,                                                      typename T1_storage,                                                        typename T2_value,                                                          typename T2_structure,                                                      typename T2_storage>                                              inline MatrixExpr<MatrixBinaryOp<Matrix<T1_value, T1_structure, T1_storage>,                                 Matrix<T2_value, T2_structure, T2_storage>,                                 _name_ <T1_value, T2_value> > >            _operator_ (Matrix<T1_value, T1_structure, T1_storage> SL_TEXPR_ARG m1,                 Matrix<T2_value, T2_structure, T2_storage> SL_TEXPR_ARG m2)     {                                                                             typedef _name_ <T1_value, T2_value> op_t;                                   typedef Matrix<T1_value, T1_structure, T1_storage> expr_t1;                 typedef Matrix<T2_value, T2_structure, T2_storage> expr_t2;                 typedef MatrixBinaryOp<expr_t1, expr_t2, op_t> expr_t;                                                                                                  return MatrixExpr<expr_t> ( expr_t(m1, m2) );                             }

⌨️ 快捷键说明

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