STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Static Public Member Functions | List of all members
_Ctraits< long double > Class Template Reference

Public Types

typedef long double _Ty
 

Static Public Member Functions

static _Ty _Flt_eps ()
 
static _Ty _Flt_max ()
 
static _Ty _Cosh (_Ty _Left, _Ty _Right)
 
static short _Exp (_Ty *_Pleft, _Ty _Right, short _Exponent)
 
static _Ty _Infv (_Ty)
 
static bool _Isinf (_Ty _Left)
 
static bool _Isnan (_Ty _Left)
 
static _Ty _Nanv (_Ty)
 
static _Ty _Sinh (_Ty _Left, _Ty _Right)
 
static _Ty asinh (_Ty _Left)
 
static _Ty atan2 (_Ty _Yval, _Ty _Xval)
 
static _Ty cos (_Ty _Left)
 
static _Ty exp (_Ty _Left)
 
static _Ty ldexp (_Ty _Left, int _Exponent)
 
static _Ty log (_Ty _Left)
 
static _Ty log1p (_Ty _Left)
 
static _Ty pow (_Ty _Left, _Ty _Right)
 
static _Ty sin (_Ty _Left)
 
static _Ty sqrt (_Ty _Left)
 
static _Ty tan (_Ty _Left)
 

Member Typedef Documentation

typedef long double _Ctraits< long double >::_Ty

Member Function Documentation

static _Ty _Ctraits< long double >::_Cosh ( _Ty  _Left,
_Ty  _Right 
)
inlinestatic
206  { // return cosh(_Left) * _Right
207  return (_CSTD _LCosh(_Left, _Right));
208  }
_CRTIMP2_PURE long double __CLRCALL_PURE_OR_CDECL _LCosh(long double, long double)
#define _CSTD
Definition: yvals.h:559
const _Ty & _Right
Definition: algorithm:4087
static short _Ctraits< long double >::_Exp ( _Ty _Pleft,
_Ty  _Right,
short  _Exponent 
)
inlinestatic
211  { // compute exp(*_Pleft) * _Right * 2 ^ _Exponent
212  return (_CSTD _LExp(_Pleft, _Right, _Exponent));
213  }
_CRTIMP2_PURE short __CLRCALL_PURE_OR_CDECL _LExp(long double *, long double, short)
#define _CSTD
Definition: yvals.h:559
const _Ty & _Right
Definition: algorithm:4087
static _Ty _Ctraits< long double >::_Flt_eps ( )
inlinestatic
196  { // get epsilon
197  return (LDBL_EPSILON);
198  }
#define LDBL_EPSILON
Definition: float.h:100
static _Ty _Ctraits< long double >::_Flt_max ( )
inlinestatic
201  { // get max
202  return (LDBL_MAX);
203  }
#define LDBL_MAX
Definition: float.h:102
static _Ty _Ctraits< long double >::_Infv ( _Ty  )
inlinestatic
216  { // return infinity
217  return (_CSTD _LInf._Long_double);
218  }
long double _Long_double
Definition: ymath.h:40
_CRTIMP2_PURE _Dconst _LInf
#define _CSTD
Definition: yvals.h:559
static bool _Ctraits< long double >::_Isinf ( _Ty  _Left)
inlinestatic
221  { // test for infinity
222  return (_CSTD _LDtest(&_Left) == _INFCODE);
223  }
_CRTIMP2_PURE short __CLRCALL_PURE_OR_CDECL _LDtest(long double *)
#define _CSTD
Definition: yvals.h:559
#define _INFCODE
Definition: math.h:110
static bool _Ctraits< long double >::_Isnan ( _Ty  _Left)
inlinestatic
226  { // test for NaN
227  return (_CSTD _LDtest(&_Left) == _NANCODE);
228  }
#define _NANCODE
Definition: math.h:111
_CRTIMP2_PURE short __CLRCALL_PURE_OR_CDECL _LDtest(long double *)
#define _CSTD
Definition: yvals.h:559
static _Ty _Ctraits< long double >::_Nanv ( _Ty  )
inlinestatic
231  { // return NaN
232  return (_CSTD _LNan._Long_double);
233  }
long double _Long_double
Definition: ymath.h:40
_CRTIMP2_PURE _Dconst _LNan
#define _CSTD
Definition: yvals.h:559
static _Ty _Ctraits< long double >::_Sinh ( _Ty  _Left,
_Ty  _Right 
)
inlinestatic
236  { // return sinh(_Left) * _Right
237  return (_CSTD _LSinh(_Left, _Right));
238  }
#define _CSTD
Definition: yvals.h:559
_CRTIMP2_PURE long double __CLRCALL_PURE_OR_CDECL _LSinh(long double, long double)
const _Ty & _Right
Definition: algorithm:4087
static _Ty _Ctraits< long double >::asinh ( _Ty  _Left)
inlinestatic
241  { // return asinh(_Left)
242  static const _Ty _Ln2 = 0.69314718055994530941723212145817658L;
243 
244  bool _Neg = _Left < 0;
245  _Ty _Ans;
246 
247  if (_Neg)
248  _Left = -_Left;
249  if (_Left < 2 / _Flt_eps())
250  _Ans = log1p(_Left
251  + _Left * _Left / (1 + sqrt(_Left * _Left + 1)));
252  else
253  _Ans = log(_Left) + _Ln2;
254  return (_Neg ? -_Ans : _Ans);
255  }
static _Ty log(_Ty _Left)
Definition: complex:277
static _Ty sqrt(_Ty _Left)
Definition: complex:305
static _Ty log1p(_Ty _Left)
Definition: complex:282
long double _Ty
Definition: complex:193
static _Ty _Flt_eps()
Definition: complex:195
static _Ty _Ctraits< long double >::atan2 ( _Ty  _Yval,
_Ty  _Xval 
)
inlinestatic
258  { // return atan(_Yval / _Xval)
259  return (_CSTD atan2l(_Yval, _Xval));
260  }
__inline long double __CRTDECL atan2l(_In_ long double _Y, _In_ long double _X)
Definition: math.h:804
#define _CSTD
Definition: yvals.h:559
static _Ty _Ctraits< long double >::cos ( _Ty  _Left)
inlinestatic
263  { // return cos(_Left)
264  return (_CSTD cosl(_Left));
265  }
__inline long double __CRTDECL cosl(_In_ long double _X)
Definition: math.h:840
#define _CSTD
Definition: yvals.h:559
static _Ty _Ctraits< long double >::exp ( _Ty  _Left)
inlinestatic
268  { // return exp(_Left)
269  return (_CSTD expl(_Left));
270  }
__inline long double __CRTDECL expl(_In_ long double _X)
Definition: math.h:848
#define _CSTD
Definition: yvals.h:559
static _Ty _Ctraits< long double >::ldexp ( _Ty  _Left,
int  _Exponent 
)
inlinestatic
273  { // return _Left * 2 ^ _Exponent
274  return (_CSTD ldexpl(_Left, _Exponent));
275  }
__inline long double __CRTDECL ldexpl(_In_ long double _X, _In_ int _Y)
Definition: math.h:894
#define _CSTD
Definition: yvals.h:559
static _Ty _Ctraits< long double >::log ( _Ty  _Left)
inlinestatic
278  { // return log(_Left)
279  return (_CSTD logl(_Left));
280  }
__inline long double __CRTDECL logl(_In_ long double _X)
Definition: math.h:903
#define _CSTD
Definition: yvals.h:559
static _Ty _Ctraits< long double >::log1p ( _Ty  _Left)
inlinestatic
283  { // return log(1 + _Left)
284  if (_Left < -1)
285  return (_Nanv(_Left));
286  else if (_Left == 0)
287  return (_Left);
288  else
289  { // compute log(1 + _Left) with fixup for small _Left
290  _Ty _Leftp1 = 1 + _Left;
291  return (log(_Leftp1) - ((_Leftp1 - 1) - _Left) / _Leftp1);
292  }
293  }
static _Ty _Nanv(_Ty)
Definition: complex:230
static _Ty log(_Ty _Left)
Definition: complex:277
long double _Ty
Definition: complex:193
static _Ty _Ctraits< long double >::pow ( _Ty  _Left,
_Ty  _Right 
)
inlinestatic
296  { // return _Left ^ _Right
297  return (_CSTD powl(_Left, _Right));
298  }
__inline long double __CRTDECL powl(_In_ long double _X, _In_ long double _Y)
Definition: math.h:931
#define _CSTD
Definition: yvals.h:559
const _Ty & _Right
Definition: algorithm:4087
static _Ty _Ctraits< long double >::sin ( _Ty  _Left)
inlinestatic
301  { // return sin(_Left)
302  return (_CSTD sinl(_Left));
303  }
__inline long double __CRTDECL sinl(_In_ long double _X)
Definition: math.h:948
#define _CSTD
Definition: yvals.h:559
static _Ty _Ctraits< long double >::sqrt ( _Ty  _Left)
inlinestatic
306  { // return sqrt(_Left)
307  return (_CSTD sqrtl(_Left));
308  }
__inline long double __CRTDECL sqrtl(_In_ long double _X)
Definition: math.h:953
#define _CSTD
Definition: yvals.h:559
static _Ty _Ctraits< long double >::tan ( _Ty  _Left)
inlinestatic
311  { // return tan(_Left)
312  return (_CSTD tanl(_Left));
313  }
__inline long double __CRTDECL tanl(_In_ long double _X)
Definition: math.h:963
#define _CSTD
Definition: yvals.h:559

The documentation for this class was generated from the following file: