📄 matrix_binary.h
字号:
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 = OpOr// 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>, OpOr <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 OpOr <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 = FctPow// operator = pow// ----------------------------------------------------------------------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>, FctPow <typename T_expr::value_t, T_value> > > pow (MatrixExpr<T_expr> SL_TEXPR_ARG e, Matrix<T_value, T_structure, T_storage> SL_TEXPR_ARG m) { typedef FctPow <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 = FctATan2// operator = atan2// ----------------------------------------------------------------------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>, FctATan2 <typename T_expr::value_t, T_value> > > atan2 (MatrixExpr<T_expr> SL_TEXPR_ARG e, Matrix<T_value, T_structure, T_storage> SL_TEXPR_ARG m) { typedef FctATan2 <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 = FctHypot// operator = hypot// ----------------------------------------------------------------------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>, FctHypot <typename T_expr::value_t, T_value> > > hypot (MatrixExpr<T_expr> SL_TEXPR_ARG e, Matrix<T_value, T_structure, T_storage> SL_TEXPR_ARG m) { typedef FctHypot <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 = FctJN// operator = jn// ----------------------------------------------------------------------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>, FctJN <typename T_expr::value_t, T_value> > > jn (MatrixExpr<T_expr> SL_TEXPR_ARG e, Matrix<T_value, T_structure, T_storage> SL_TEXPR_ARG m) { typedef FctJN <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 = FctYN// operator = yn// ----------------------------------------------------------------------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>, FctYN <typename T_expr::value_t, T_value> > > yn (MatrixExpr<T_expr> SL_TEXPR_ARG e, Matrix<T_value, T_structure, T_storage> SL_TEXPR_ARG m) { typedef FctYN <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 = CopySign// operator = copysign// ----------------------------------------------------------------------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>, CopySign <typename T_expr::value_t, T_value> > > copysign (MatrixExpr<T_expr> SL_TEXPR_ARG e, Matrix<T_value, T_structure, T_storage> SL_TEXPR_ARG m) { typedef CopySign <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++ -*-// Matrix Operator Expression// ----------------------------------------------------------------------// file = matrix_binary_me.hxx// name = OpAdd// operator = operator+// ----------------------------------------------------------------------template <typename T_value, typename T_structure, typename T_storage, typename T_expr> inline MatrixExpr<MatrixBinaryOp<Matrix<T_value, T_structure, T_storage>, MatrixExpr<T_expr>, OpAdd <T_value, typename T_expr::value_t> > > operator+ (Matrix<T_value, T_structure, T_storage> SL_TEXPR_ARG m, MatrixExpr<T_expr> SL_TEXPR_ARG e) { typedef OpAdd <T_value, typename T_expr::value_t> op_t; typedef Matrix<T_value, T_structure, T_storage> expr_t1; typedef MatrixExpr<T_expr> expr_t2; typedef MatrixBinaryOp<expr_t1, expr_t2, op_t> expr_t; return MatrixExpr<expr_t> ( expr_t(m, e) );}// ---------------------------------------------------------- -*- c++ -*-// Matrix Operator Expression// ----------------------------------------------------------------------// file = matrix_binary_me.hxx// name = OpSub// operator = operator-// ----------------------------------------------------------------------template <typename T_value, typename T_structure, typename T_storage, typename T_expr> inline MatrixExpr<MatrixBinaryOp<Matrix<T_value, T_structure, T_storage>, MatrixExpr<T_expr>, OpSub <T_value, typename T_expr::value_t> > > operator- (Matrix<T_value, T_structure, T_storage> SL_TEXPR_ARG m, MatrixExpr<T_expr> SL_TEXPR_ARG e) { typedef OpSub <T_value, typename T_expr::value_t> op_t; typedef Matrix<T_value, T_structure, T_storage> expr_t1; typedef MatrixExpr<T_expr> expr_t2; typedef MatrixBinaryOp<expr_t1, expr_t2, op_t> expr_t; return MatrixExpr<expr_t> ( expr_t(m, e) );}// ---------------------------------------------------------- -*- c++ -*-// Matrix Operator Expression// ----------------------------------------------------------------------// file = matrix_binary_me.hxx// name = OpMul// operator = operator^
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -