matrix_binary.h

来自「高效的c++科学算法库」· C头文件 代码 · 共 1,171 行 · 第 1/5 页

H
1,171
字号
          typename T_structure,          typename T_storage> inline MatrixExpr<MatrixBinaryOp<MatrixExpr<T_expr>,                                                     Matrix<T_value, T_structure, T_storage>,                                               OpSub <typename T_expr::value_t, T_value> > >                       operator- (MatrixExpr<T_expr> SL_TEXPR_ARG e,                                                     Matrix<T_value, T_structure, T_storage> SL_TEXPR_ARG m)                    {                                                                                        typedef OpSub <typename T_expr::value_t, T_value> op_t;                               typedef MatrixExpr<T_expr> expr_t1;                                                    typedef Matrix<T_value, T_structure, T_storage> expr_t2;                               typedef MatrixBinaryOp<expr_t1, expr_t2, op_t> expr_t;                                                                                                                        return MatrixExpr<expr_t> ( expr_t(e, m) );                                          }// ---------------------------------------------------------- -*- c++ -*-// Expression Operator Matrix// ----------------------------------------------------------------------// file     = matrix_binary_em.hxx// name     = OpMul// operator = operator^// ----------------------------------------------------------------------template <typename T_expr,          typename T_value,          typename T_structure,          typename T_storage> inline MatrixExpr<MatrixBinaryOp<MatrixExpr<T_expr>,                                                     Matrix<T_value, T_structure, T_storage>,                                               OpMul <typename T_expr::value_t, T_value> > >                       operator^ (MatrixExpr<T_expr> SL_TEXPR_ARG e,                                                     Matrix<T_value, T_structure, T_storage> SL_TEXPR_ARG m)                    {                                                                                        typedef OpMul <typename T_expr::value_t, T_value> op_t;                               typedef MatrixExpr<T_expr> expr_t1;                                                    typedef Matrix<T_value, T_structure, T_storage> expr_t2;                               typedef MatrixBinaryOp<expr_t1, expr_t2, op_t> expr_t;                                                                                                                        return MatrixExpr<expr_t> ( expr_t(e, m) );                                          }// ---------------------------------------------------------- -*- c++ -*-// Expression Operator Matrix// ----------------------------------------------------------------------// file     = matrix_binary_em.hxx// name     = OpDiv// operator = operator%// ----------------------------------------------------------------------template <typename T_expr,          typename T_value,          typename T_structure,          typename T_storage> inline MatrixExpr<MatrixBinaryOp<MatrixExpr<T_expr>,                                                     Matrix<T_value, T_structure, T_storage>,                                               OpDiv <typename T_expr::value_t, T_value> > >                       operator% (MatrixExpr<T_expr> SL_TEXPR_ARG e,                                                     Matrix<T_value, T_structure, T_storage> SL_TEXPR_ARG m)                    {                                                                                        typedef OpDiv <typename T_expr::value_t, T_value> op_t;                               typedef MatrixExpr<T_expr> expr_t1;                                                    typedef Matrix<T_value, T_structure, T_storage> expr_t2;                               typedef MatrixBinaryOp<expr_t1, expr_t2, op_t> expr_t;                                                                                                                        return MatrixExpr<expr_t> ( expr_t(e, m) );                                          }// ---------------------------------------------------------- -*- c++ -*-// Expression Operator Matrix// ----------------------------------------------------------------------// file     = matrix_binary_em.hxx// name     = OpEqual// operator = operator==// ----------------------------------------------------------------------template <typename T_expr,          typename T_value,          typename T_structure,          typename T_storage> inline MatrixExpr<MatrixBinaryOp<MatrixExpr<T_expr>,                                                     Matrix<T_value, T_structure, T_storage>,                                               OpEqual <typename T_expr::value_t, T_value> > >                       operator== (MatrixExpr<T_expr> SL_TEXPR_ARG e,                                                     Matrix<T_value, T_structure, T_storage> SL_TEXPR_ARG m)                    {                                                                                        typedef OpEqual <typename T_expr::value_t, T_value> op_t;                               typedef MatrixExpr<T_expr> expr_t1;                                                    typedef Matrix<T_value, T_structure, T_storage> expr_t2;                               typedef MatrixBinaryOp<expr_t1, expr_t2, op_t> expr_t;                                                                                                                        return MatrixExpr<expr_t> ( expr_t(e, m) );                                          }// ---------------------------------------------------------- -*- c++ -*-// Expression Operator Matrix// ----------------------------------------------------------------------// file     = matrix_binary_em.hxx// name     = OpNotEqual// operator = operator!=// ----------------------------------------------------------------------template <typename T_expr,          typename T_value,          typename T_structure,          typename T_storage> inline MatrixExpr<MatrixBinaryOp<MatrixExpr<T_expr>,                                                     Matrix<T_value, T_structure, T_storage>,                                               OpNotEqual <typename T_expr::value_t, T_value> > >                       operator!= (MatrixExpr<T_expr> SL_TEXPR_ARG e,                                                     Matrix<T_value, T_structure, T_storage> SL_TEXPR_ARG m)                    {                                                                                        typedef OpNotEqual <typename T_expr::value_t, T_value> op_t;                               typedef MatrixExpr<T_expr> expr_t1;                                                    typedef Matrix<T_value, T_structure, T_storage> expr_t2;                               typedef MatrixBinaryOp<expr_t1, expr_t2, op_t> expr_t;                                                                                                                        return MatrixExpr<expr_t> ( expr_t(e, m) );                                          }// ---------------------------------------------------------- -*- c++ -*-// Expression Operator Matrix// ----------------------------------------------------------------------// file     = matrix_binary_em.hxx// name     = OpLess// operator = operator<// ----------------------------------------------------------------------template <typename T_expr,          typename T_value,          typename T_structure,          typename T_storage> inline MatrixExpr<MatrixBinaryOp<MatrixExpr<T_expr>,                                                     Matrix<T_value, T_structure, T_storage>,                                               OpLess <typename T_expr::value_t, T_value> > >                       operator< (MatrixExpr<T_expr> SL_TEXPR_ARG e,                                                     Matrix<T_value, T_structure, T_storage> SL_TEXPR_ARG m)                    {                                                                                        typedef OpLess <typename T_expr::value_t, T_value> op_t;                               typedef MatrixExpr<T_expr> expr_t1;                                                    typedef Matrix<T_value, T_structure, T_storage> expr_t2;                               typedef MatrixBinaryOp<expr_t1, expr_t2, op_t> expr_t;                                                                                                                        return MatrixExpr<expr_t> ( expr_t(e, m) );                                          }// ---------------------------------------------------------- -*- c++ -*-// Expression Operator Matrix// ----------------------------------------------------------------------// file     = matrix_binary_em.hxx// name     = OpGreater// operator = operator>// ----------------------------------------------------------------------template <typename T_expr,          typename T_value,          typename T_structure,          typename T_storage> inline MatrixExpr<MatrixBinaryOp<MatrixExpr<T_expr>,                                                     Matrix<T_value, T_structure, T_storage>,                                               OpGreater <typename T_expr::value_t, T_value> > >                       operator> (MatrixExpr<T_expr> SL_TEXPR_ARG e,                                                     Matrix<T_value, T_structure, T_storage> SL_TEXPR_ARG m)                    {                                                                                        typedef OpGreater <typename T_expr::value_t, T_value> op_t;                               typedef MatrixExpr<T_expr> expr_t1;                                                    typedef Matrix<T_value, T_structure, T_storage> expr_t2;                               typedef MatrixBinaryOp<expr_t1, expr_t2, op_t> expr_t;                                                                                                                        return MatrixExpr<expr_t> ( expr_t(e, m) );                                          }// ---------------------------------------------------------- -*- c++ -*-// Expression Operator Matrix// ----------------------------------------------------------------------// file     = matrix_binary_em.hxx// name     = OpLessOrEqual// operator = operator<=// ----------------------------------------------------------------------template <typename T_expr,          typename T_value,          typename T_structure,          typename T_storage> inline MatrixExpr<MatrixBinaryOp<MatrixExpr<T_expr>,                                                     Matrix<T_value, T_structure, T_storage>,                                               OpLessOrEqual <typename T_expr::value_t, T_value> > >                       operator<= (MatrixExpr<T_expr> SL_TEXPR_ARG e,                                                     Matrix<T_value, T_structure, T_storage> SL_TEXPR_ARG m)                    {                                                                                        typedef OpLessOrEqual <typename T_expr::value_t, T_value> op_t;                               typedef MatrixExpr<T_expr> expr_t1;                                                    typedef Matrix<T_value, T_structure, T_storage> expr_t2;                               typedef MatrixBinaryOp<expr_t1, expr_t2, op_t> expr_t;                                                                                                                        return MatrixExpr<expr_t> ( expr_t(e, m) );                                          }// ---------------------------------------------------------- -*- c++ -*-// Expression Operator Matrix// ----------------------------------------------------------------------// file     = matrix_binary_em.hxx// name     = OpGreaterOrEqual// operator = operator>=// ----------------------------------------------------------------------template <typename T_expr,          typename T_value,          typename T_structure,          typename T_storage> inline MatrixExpr<MatrixBinaryOp<MatrixExpr<T_expr>,                                                     Matrix<T_value, T_structure, T_storage>,                                               OpGreaterOrEqual <typename T_expr::value_t, T_value> > >                       operator>= (MatrixExpr<T_expr> SL_TEXPR_ARG e,                                                     Matrix<T_value, T_structure, T_storage> SL_TEXPR_ARG m)                    {                                                                                        typedef OpGreaterOrEqual <typename T_expr::value_t, T_value> op_t;                               typedef MatrixExpr<T_expr> expr_t1;                                                    typedef Matrix<T_value, T_structure, T_storage> expr_t2;                               typedef MatrixBinaryOp<expr_t1, expr_t2, op_t> expr_t;                                                                                                                        return MatrixExpr<expr_t> ( expr_t(e, m) );                                          }// ---------------------------------------------------------- -*- c++ -*-// Expression Operator Matrix// ----------------------------------------------------------------------// file     = matrix_binary_em.hxx// name     = OpAnd// operator = operator&&// ----------------------------------------------------------------------template <typename T_expr,          typename T_value,          typename T_structure,          typename T_storage> inline MatrixExpr<MatrixBinaryOp<MatrixExpr<T_expr>,                                                     Matrix<T_value, T_structure, T_storage>,                                               OpAnd <typename T_expr::value_t, T_value> > >                       operator&& (MatrixExpr<T_expr> SL_TEXPR_ARG e,                                                     Matrix<T_value, T_structure, T_storage> SL_TEXPR_ARG m)                    {                                                                                        typedef OpAnd <typename T_expr::value_t, T_value> op_t;                               typedef MatrixExpr<T_expr> expr_t1;                                                  

⌨️ 快捷键说明

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