Changeset 958 in Sophya for trunk/SophyaLib/TArray/matharr.h
- Timestamp:
- Apr 18, 2000, 3:38:53 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/TArray/matharr.h
r942 r958 33 33 #if !defined(__GNUG__) 34 34 // see below for g++ 35 /*! \ingroup TArray \fn fabs(const TArray<T>& a) 36 \brief computation on TArray */ 35 37 template <class T> 36 38 inline TArray<T> fabs(const TArray<T>& a) 37 39 { MathArray<T> ma; return( ma.ApplyFunction(a, fabs) ); } 38 40 41 /*! \ingroup TArray \fn sqrt(const TArray<T>& a) 42 \brief computation on TArray */ 39 43 template <class T> 40 44 inline TArray<T> sqrt(const TArray<T>& a) 41 45 { MathArray<T> ma; return( ma.ApplyFunction(a, sqrt) ); } 42 46 47 /*! \ingroup TArray \fn sin(const TArray<T>& a) 48 \brief computation on TArray */ 43 49 template <class T> 44 50 inline TArray<T> sin(const TArray<T>& a) 45 51 { MathArray<T> ma; return( ma.ApplyFunction(a, sin) ); } 46 52 53 /*! \ingroup TArray \fn cos(const TArray<T>& a) 54 \brief computation on TArray */ 47 55 template <class T> 48 56 inline TArray<T> cos(const TArray<T>& a) 49 57 { MathArray<T> ma; return( ma.ApplyFunction(a, cos) ); } 50 58 59 /*! \ingroup TArray \fn tan(const TArray<T>& a) 60 \brief computation on TArray */ 51 61 template <class T> 52 62 inline TArray<T> tan(const TArray<T>& a) 53 63 { MathArray<T> ma; return( ma.ApplyFunction(a, tan) ); } 54 64 65 /*! \ingroup TArray \fn asin(const TArray<T>& a) 66 \brief computation on TArray */ 55 67 template <class T> 56 68 inline TArray<T> asin(const TArray<T>& a) 57 69 { MathArray<T> ma; return( ma.ApplyFunction(a, asin) ); } 58 70 71 /*! \ingroup TArray \fn acos(const TArray<T>& a) 72 \brief computation on TArray */ 59 73 template <class T> 60 74 inline TArray<T> acos(const TArray<T>& a) 61 75 { MathArray<T> ma; return( ma.ApplyFunction(a, acos) ); } 62 76 77 /*! \ingroup TArray \fn atan(const TArray<T>& a) 78 \brief computation on TArray */ 63 79 template <class T> 64 80 inline TArray<T> atan(const TArray<T>& a) 65 81 { MathArray<T> ma; return( ma.ApplyFunction(a, atan) ); } 66 82 83 /*! \ingroup TArray \fn exp(const TArray<T>& a) 84 \brief computation on TArray */ 67 85 template <class T> 68 86 inline TArray<T> exp(const TArray<T>& a) 69 87 { MathArray<T> ma; return( ma.ApplyFunction(a, exp) ); } 70 88 89 /*! \ingroup TArray \fn lof(const TArray<T>& a) 90 \brief computation on TArray */ 71 91 template <class T> 72 92 inline TArray<T> log(const TArray<T>& a) 73 93 { MathArray<T> ma; return( ma.ApplyFunction(a, log) ); } 74 94 95 /*! \ingroup TArray \fn log10(const TArray<T>& a) 96 \brief computation on TArray */ 75 97 template <class T> 76 98 inline TArray<T> log10(const TArray<T>& a) … … 83 105 #endif 84 106 85 //! Return \b mean and \b sigma of elements of array \b a 107 /*! \ingroup TArray \fn MeanSigma(const TArray<T>&,double&,double&) 108 \brief Return \b mean and \b sigma of elements of array \b a */ 86 109 template <class T> 87 110 inline double MeanSigma(const TArray<T>& a, double & mean, double & sig) 88 111 { MathArray<T> ma; return( ma.MeanSigma(a, mean, sig) ); } 89 112 90 //! Return \b mean of elements of array \b a 113 /*! \ingroup TArray \fn Mean(const TArray<T>&) 114 \brief Return \b mean of elements of array \b a */ 91 115 template <class T> 92 116 inline double Mean(const TArray<T>& a)
Note:
See TracChangeset
for help on using the changeset viewer.