📄 vecuops.cc
字号:
{ typedef _bz_VecExprOp<_bz_VecExprConstant<double>, TinyVectorIterConst<P_numtype2, N_length2>, _bz_atan2<double,P_numtype2> > T_expr; return _bz_VecExpr<T_expr>(T_expr(_bz_VecExprConstant<double>(d1), d2.begin()));}template<class P_numtype2>inline_bz_VecExpr<_bz_VecExprOp<_bz_VecExprConstant<long double>, VectorIterConst<P_numtype2>, _bz_atan2<long double,P_numtype2> > >atan2(long double d1, const Vector<P_numtype2>& d2){ typedef _bz_VecExprOp<_bz_VecExprConstant<long double>, VectorIterConst<P_numtype2>, _bz_atan2<long double,P_numtype2> > T_expr; return _bz_VecExpr<T_expr>(T_expr(_bz_VecExprConstant<long double>(d1), d2.begin()));}template<class P_expr2>inline_bz_VecExpr<_bz_VecExprOp<_bz_VecExprConstant<long double>, _bz_VecExpr<P_expr2>, _bz_atan2<long double,typename P_expr2::T_numtype> > >atan2(long double d1, _bz_VecExpr<P_expr2> d2){ typedef _bz_VecExprOp<_bz_VecExprConstant<long double>, _bz_VecExpr<P_expr2>, _bz_atan2<long double,typename P_expr2::T_numtype> > T_expr; return _bz_VecExpr<T_expr>(T_expr(_bz_VecExprConstant<long double>(d1), d2));}template<class P_numtype2>inline_bz_VecExpr<_bz_VecExprOp<_bz_VecExprConstant<long double>, VectorPickIterConst<P_numtype2>, _bz_atan2<long double,P_numtype2> > >atan2(long double d1, const VectorPick<P_numtype2>& d2){ typedef _bz_VecExprOp<_bz_VecExprConstant<long double>, VectorPickIterConst<P_numtype2>, _bz_atan2<long double,P_numtype2> > T_expr; return _bz_VecExpr<T_expr>(T_expr(_bz_VecExprConstant<long double>(d1), d2.begin()));}inline_bz_VecExpr<_bz_VecExprOp<_bz_VecExprConstant<long double>, Range, _bz_atan2<long double,int> > >atan2(long double d1, Range d2){ typedef _bz_VecExprOp<_bz_VecExprConstant<long double>, Range, _bz_atan2<long double,int> > T_expr; return _bz_VecExpr<T_expr>(T_expr(_bz_VecExprConstant<long double>(d1), d2));}template<class P_numtype2, int N_length2>inline_bz_VecExpr<_bz_VecExprOp<_bz_VecExprConstant<long double>, TinyVectorIterConst<P_numtype2, N_length2>, _bz_atan2<long double,P_numtype2> > >atan2(long double d1, const TinyVector<P_numtype2, N_length2>& d2){ typedef _bz_VecExprOp<_bz_VecExprConstant<long double>, TinyVectorIterConst<P_numtype2, N_length2>, _bz_atan2<long double,P_numtype2> > T_expr; return _bz_VecExpr<T_expr>(T_expr(_bz_VecExprConstant<long double>(d1), d2.begin()));}template<class T1, class P_numtype2>inline_bz_VecExpr<_bz_VecExprOp<_bz_VecExprConstant<complex<T1> > , VectorIterConst<P_numtype2>, _bz_atan2<complex<T1> ,P_numtype2> > >atan2(complex<T1> d1, const Vector<P_numtype2>& d2){ typedef _bz_VecExprOp<_bz_VecExprConstant<complex<T1> > , VectorIterConst<P_numtype2>, _bz_atan2<complex<T1> ,P_numtype2> > T_expr; return _bz_VecExpr<T_expr>(T_expr(_bz_VecExprConstant<complex<T1> > (d1), d2.begin()));}template<class T1, class P_expr2>inline_bz_VecExpr<_bz_VecExprOp<_bz_VecExprConstant<complex<T1> > , _bz_VecExpr<P_expr2>, _bz_atan2<complex<T1> ,typename P_expr2::T_numtype> > >atan2(complex<T1> d1, _bz_VecExpr<P_expr2> d2){ typedef _bz_VecExprOp<_bz_VecExprConstant<complex<T1> > , _bz_VecExpr<P_expr2>, _bz_atan2<complex<T1> ,typename P_expr2::T_numtype> > T_expr; return _bz_VecExpr<T_expr>(T_expr(_bz_VecExprConstant<complex<T1> > (d1), d2));}template<class T1, class P_numtype2>inline_bz_VecExpr<_bz_VecExprOp<_bz_VecExprConstant<complex<T1> > , VectorPickIterConst<P_numtype2>, _bz_atan2<complex<T1> ,P_numtype2> > >atan2(complex<T1> d1, const VectorPick<P_numtype2>& d2){ typedef _bz_VecExprOp<_bz_VecExprConstant<complex<T1> > , VectorPickIterConst<P_numtype2>, _bz_atan2<complex<T1> ,P_numtype2> > T_expr; return _bz_VecExpr<T_expr>(T_expr(_bz_VecExprConstant<complex<T1> > (d1), d2.begin()));}template<class T1>inline_bz_VecExpr<_bz_VecExprOp<_bz_VecExprConstant<complex<T1> > , Range, _bz_atan2<complex<T1> ,int> > >atan2(complex<T1> d1, Range d2){ typedef _bz_VecExprOp<_bz_VecExprConstant<complex<T1> > , Range, _bz_atan2<complex<T1> ,int> > T_expr; return _bz_VecExpr<T_expr>(T_expr(_bz_VecExprConstant<complex<T1> > (d1), d2));}template<class T1, class P_numtype2, int N_length2>inline_bz_VecExpr<_bz_VecExprOp<_bz_VecExprConstant<complex<T1> > , TinyVectorIterConst<P_numtype2, N_length2>, _bz_atan2<complex<T1> ,P_numtype2> > >atan2(complex<T1> d1, const TinyVector<P_numtype2, N_length2>& d2){ typedef _bz_VecExprOp<_bz_VecExprConstant<complex<T1> > , TinyVectorIterConst<P_numtype2, N_length2>, _bz_atan2<complex<T1> ,P_numtype2> > T_expr; return _bz_VecExpr<T_expr>(T_expr(_bz_VecExprConstant<complex<T1> > (d1), d2.begin()));}/**************************************************************************** * atanh ****************************************************************************/#ifdef BZ_HAVE_IEEE_MATHtemplate<class P_numtype1>inline_bz_VecExpr<_bz_VecExprUnaryOp<VectorIterConst<P_numtype1>, _bz_atanh<P_numtype1> > >atanh(const Vector<P_numtype1>& d1){ typedef _bz_VecExprUnaryOp<VectorIterConst<P_numtype1>, _bz_atanh<P_numtype1> > T_expr; return _bz_VecExpr<T_expr>(T_expr(d1.begin()));}template<class P_expr1>inline_bz_VecExpr<_bz_VecExprUnaryOp<_bz_VecExpr<P_expr1>, _bz_atanh<typename P_expr1::T_numtype> > >atanh(_bz_VecExpr<P_expr1> d1){ typedef _bz_VecExprUnaryOp<_bz_VecExpr<P_expr1>, _bz_atanh<typename P_expr1::T_numtype> > T_expr; return _bz_VecExpr<T_expr>(T_expr(d1));}template<class P_numtype1>inline_bz_VecExpr<_bz_VecExprUnaryOp<VectorPickIterConst<P_numtype1>, _bz_atanh<P_numtype1> > >atanh(const VectorPick<P_numtype1>& d1){ typedef _bz_VecExprUnaryOp<VectorPickIterConst<P_numtype1>, _bz_atanh<P_numtype1> > T_expr; return _bz_VecExpr<T_expr>(T_expr(d1.begin()));}inline_bz_VecExpr<_bz_VecExprUnaryOp<Range, _bz_atanh<int> > >atanh(Range d1){ typedef _bz_VecExprUnaryOp<Range, _bz_atanh<int> > T_expr; return _bz_VecExpr<T_expr>(T_expr(d1));}template<class P_numtype1, int N_length1>inline_bz_VecExpr<_bz_VecExprUnaryOp<TinyVectorIterConst<P_numtype1, N_length1>, _bz_atanh<P_numtype1> > >atanh(const TinyVector<P_numtype1, N_length1>& d1){ typedef _bz_VecExprUnaryOp<TinyVectorIterConst<P_numtype1, N_length1>, _bz_atanh<P_numtype1> > T_expr; return _bz_VecExpr<T_expr>(T_expr(d1.begin()));}#endif/**************************************************************************** * _class ****************************************************************************/#ifdef BZ_HAVE_SYSTEM_V_MATHtemplate<class P_numtype1>inline_bz_VecExpr<_bz_VecExprUnaryOp<VectorIterConst<P_numtype1>, _bz__class<P_numtype1> > >_class(const Vector<P_numtype1>& d1){ typedef _bz_VecExprUnaryOp<VectorIterConst<P_numtype1>, _bz__class<P_numtype1> > T_expr; return _bz_VecExpr<T_expr>(T_expr(d1.begin()));}template<class P_expr1>inline_bz_VecExpr<_bz_VecExprUnaryOp<_bz_VecExpr<P_expr1>, _bz__class<typename P_expr1::T_numtype> > >_class(_bz_VecExpr<P_expr1> d1){ typedef _bz_VecExprUnaryOp<_bz_VecExpr<P_expr1>, _bz__class<typename P_expr1::T_numtype> > T_expr; return _bz_VecExpr<T_expr>(T_expr(d1));}template<class P_numtype1>inline_bz_VecExpr<_bz_VecExprUnaryOp<VectorPickIterConst<P_numtype1>, _bz__class<P_numtype1> > >_class(const VectorPick<P_numtype1>& d1){ typedef _bz_VecExprUnaryOp<VectorPickIterConst<P_numtype1>, _bz__class<P_numtype1> > T_expr; return _bz_VecExpr<T_expr>(T_expr(d1.begin()));}inline_bz_VecExpr<_bz_VecExprUnaryOp<Range, _bz__class<int> > >_class(Range d1){ typedef _bz_VecExprUnaryOp<Range, _bz__class<int> > T_expr; return _bz_VecExpr<T_expr>(T_expr(d1));}template<class P_numtype1, int N_length1>inline_bz_VecExpr<_bz_VecExprUnaryOp<TinyVectorIterConst<P_numtype1, N_length1>, _bz__class<P_numtype1> > >_class(const TinyVector<P_numtype1, N_length1>& d1){ typedef _bz_VecExprUnaryOp<TinyVectorIterConst<P_numtype1, N_length1>, _bz__class<P_numtype1> > T_expr; return _bz_VecExpr<T_expr>(T_expr(d1.begin()));}#endif/**************************************************************************** * cbrt ****************************************************************************/#ifdef BZ_HAVE_IEEE_MATHtemplate<class P_numtype1>inline_bz_VecExpr<_bz_VecExprUnaryOp<VectorIterConst<P_numtype1>, _bz_cbrt<P_numtype1> > >cbrt(const Vector<P_numtype1>& d1){ typedef _bz_VecExprUnaryOp<VectorIterConst<P_numtype1>, _bz_cbrt<P_numtype1> > T_expr; return _bz_VecExpr<T_expr>(T_expr(d1.begin()));}template<class P_expr1>inline_bz_VecExpr<_bz_VecExprUnaryOp<_bz_VecExpr<P_expr1>, _bz_cbrt<typename P_expr1::T_numtype> > >cbrt(_bz_VecExpr<P_expr1> d1){ typedef _bz_VecExprUnaryOp<_bz_VecExpr<P_expr1>, _bz_cbrt<typename P_expr1::T_numtype> > T_expr; return _bz_VecExpr<T_expr>(T_expr(d1));}template<class P_numtype1>inline_bz_VecExpr<_bz_VecExprUnaryOp<VectorPickIterConst<P_numtype1>, _bz_cbrt<P_numtype1> > >cbrt(const VectorPick<P_numtype1>& d1){ typedef _bz_VecExprUnaryOp<VectorPickIterConst<P_numtype1>, _bz_cbrt<P_numtype1> > T_expr; return _bz_VecExpr<T_expr>(T_expr(d1.begin()));}inline_bz_VecExpr<_bz_VecExprUnaryOp<Range, _bz_cbrt<int> > >cbrt(Range d1){ typedef _bz_VecExprUnaryOp<Range, _bz_cbrt<int> > T_expr; return _bz_VecExpr<T_expr>(T_expr(d1));}template<class P_numtype1, int N_length1>inline_bz_VecExpr<_bz_VecExprUnaryOp<TinyVectorIterConst<P_numtype1, N_length1>, _bz_cbrt<P_numtype1> > >cbrt(const TinyVector<P_numtype1, N_length1>& d1){ typedef _bz_VecExprUnaryOp<TinyVectorIterConst<P_numtype1, N_length1>, _bz_cbrt<P_numtype1> > T_expr; return _bz_VecExpr<T_expr>(T_expr(d1.begin()));}#endif/**************************************************************************** * ceil ****************************************************************************/template<class P_numtype1>inline_bz_VecExpr<_bz_VecExprUnaryOp<VectorIterConst<P_numtype1>, _bz_ceil<P_numtype1> > >ceil(const Vector<P_numtype1>& d1){ typedef _bz_VecExprUnaryOp<VectorIterConst<P_numtype1>, _bz_ceil<P_numtype1> > T_expr; return _bz_VecExpr<T_expr>(T_expr(d1.begin()));}template<class P_expr1>inline_bz_VecExpr<_bz_VecExprUnaryOp<_bz_VecExpr<P_expr1>, _bz_ceil<typename P_expr1::T_numtype> > >ceil(_bz_VecExpr<P_expr1> d1){ typedef _bz_VecExprUnaryOp<_bz_VecExpr<P_expr1>, _bz_ceil<typename P_expr1::T_numtype> > T_expr; return _bz_VecExpr<T_expr>(T_expr(d1));}template<class P_numtype1>inline_bz_VecExpr<_bz_VecExprUnaryOp<VectorPickIterConst<P_numtype1>, _bz_ceil<P_numtype1> > >ceil(const VectorPick<P_numtype1>& d1){ typedef _bz_VecExprUnaryOp<VectorPickIterConst<P_numtype1>, _bz_ceil<P_numtype1> > T_expr; return _bz_VecExpr<T_expr>(T_expr(d1.begin()));}inline_bz_VecExpr<_bz_VecExprUnaryOp<Range, _bz_ceil<int> > >ceil(Range d1){ typedef _bz_VecExprUnaryOp<Range, _bz_ceil<int> > T_expr; return _bz_VecExpr<T_expr>(T_expr(d1));}template<class P_numtype1, int N_length1>inline_bz_VecExpr<_bz_VecExprUnaryOp<TinyVectorIterConst<P_numtype1, N_length1>, _bz_ceil<P_numtype1> > >ceil(const TinyVector<P_numtype1, N_length1>& d1){ typedef _bz_VecExprUnaryOp<TinyVectorIterConst<P_numtype1, N_length1>, _bz_ceil<P_numtype1> > T_expr; return _bz_VecExpr<T_expr>(T_expr(d1.begin()));}/**************************************************************************** * conj ****************************************************************************/#ifdef BZ_HAVE_COMPLEX_FCNStemplate<class P_numtype1>inline_bz_VecExpr<_bz_VecExprUnaryOp<VectorIterConst<P_numtype1>,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -