scalar_binary_function.h

来自「高效的c++科学算法库」· C头文件 代码 · 共 113 行

H
113
字号
// ------------------------------------------------------- -*- c++ -*- --//// WARNING: FILE AUTOMATICALLY GENERATED WITH scalar_binary_function.sed//// ----------------------------------------------------------------------// from:  scalar_binary_function.hxx// ----------------------------------------------------------------------// ---------------------------------------------------------- -*- c++ -*-// Scalar binary Function// ----------------------------------------------------------------------// file     = scalar_binary_function.hxx// name     = FctPow// operator = pow// ----------------------------------------------------------------------template<typename T1_value, typename T2_value>      struct FctPow {  typedef typename  promote<T1_value,T2_value>::promoted_t value_t;                                                      static inline value_t     apply (T1_value a, T2_value b) {    return pow ( a , b );  }                    };// ---------------------------------------------------------- -*- c++ -*-// Scalar binary Function// ----------------------------------------------------------------------// file     = scalar_binary_function.hxx// name     = FctATan2// operator = atan2// ----------------------------------------------------------------------template<typename T1_value, typename T2_value>      struct FctATan2 {  typedef typename  promote<T1_value,T2_value>::promoted_t value_t;                                                      static inline value_t     apply (T1_value a, T2_value b) {    return atan2 ( a , b );  }                    };// ---------------------------------------------------------- -*- c++ -*-// Scalar binary Function// ----------------------------------------------------------------------// file     = scalar_binary_function.hxx// name     = FctHypot// operator = hypot// ----------------------------------------------------------------------template<typename T1_value, typename T2_value>      struct FctHypot {  typedef typename  promote<T1_value,T2_value>::promoted_t value_t;                                                      static inline value_t     apply (T1_value a, T2_value b) {    return hypot ( a , b );  }                    };// ---------------------------------------------------------- -*- c++ -*-// Scalar binary Function// ----------------------------------------------------------------------// file     = scalar_binary_function.hxx// name     = FctJN// operator = jn// ----------------------------------------------------------------------template<typename T1_value, typename T2_value>      struct FctJN {  typedef typename  promote<T1_value,T2_value>::promoted_t value_t;                                                      static inline value_t     apply (T1_value a, T2_value b) {    return jn ( a , b );  }                    };// ---------------------------------------------------------- -*- c++ -*-// Scalar binary Function// ----------------------------------------------------------------------// file     = scalar_binary_function.hxx// name     = FctYN// operator = yn// ----------------------------------------------------------------------template<typename T1_value, typename T2_value>      struct FctYN {  typedef typename  promote<T1_value,T2_value>::promoted_t value_t;                                                      static inline value_t     apply (T1_value a, T2_value b) {    return yn ( a , b );  }                    };// ---------------------------------------------------------- -*- c++ -*-// Scalar binary Function// ----------------------------------------------------------------------// file     = scalar_binary_function.hxx// name     = CopySign// operator = copysign// ----------------------------------------------------------------------template<typename T1_value, typename T2_value>      struct CopySign {  typedef typename  promote<T1_value,T2_value>::promoted_t value_t;                                                      static inline value_t     apply (T1_value a, T2_value b) {    return copysign ( a , b );  }                    };// ----------------------------------------------------------------------// end of file

⌨️ 快捷键说明

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