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

Public Types

typedef 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 double _Ctraits< double >::_Ty

Member Function Documentation

static _Ty _Ctraits< double >::_Cosh ( _Ty  _Left,
_Ty  _Right 
)
inlinestatic
334  { // return cosh(_Left) * _Right
335  return (_CSTD _Cosh(_Left, _Right));
336  }
static _Ty _Cosh(_Ty _Left, _Ty _Right)
Definition: complex:333
#define _CSTD
Definition: yvals.h:559
const _Ty & _Right
Definition: algorithm:4087
static short _Ctraits< double >::_Exp ( _Ty _Pleft,
_Ty  _Right,
short  _Exponent 
)
inlinestatic
339  { // compute exp(*_Pleft) * _Right * 2 ^ _Exponent
340  return (_CSTD _Exp(_Pleft, _Right, _Exponent));
341  }
static short _Exp(_Ty *_Pleft, _Ty _Right, short _Exponent)
Definition: complex:338
#define _CSTD
Definition: yvals.h:559
const _Ty & _Right
Definition: algorithm:4087
static _Ty _Ctraits< double >::_Flt_eps ( )
inlinestatic
324  { // get epsilon
325  return (DBL_EPSILON);
326  }
#define DBL_EPSILON
Definition: float.h:74
static _Ty _Ctraits< double >::_Flt_max ( )
inlinestatic
329  { // get max
330  return (DBL_MAX);
331  }
#define DBL_MAX
Definition: float.h:76
static _Ty _Ctraits< double >::_Infv ( _Ty  )
inlinestatic
344  { // return infinity
345  return (_CSTD _Inf._Double);
346  }
_CRTIMP2_PURE _Dconst _Inf
double _Double
Definition: ymath.h:39
#define _CSTD
Definition: yvals.h:559
static bool _Ctraits< double >::_Isinf ( _Ty  _Left)
inlinestatic
349  { // test for infinity
350  return (_CSTD _Dtest(&_Left) == _INFCODE);
351  }
#define _CSTD
Definition: yvals.h:559
_CRTIMP2_PURE short __CLRCALL_PURE_OR_CDECL _Dtest(double *)
#define _INFCODE
Definition: math.h:110
static bool _Ctraits< double >::_Isnan ( _Ty  _Left)
inlinestatic
354  { // test for NaN
355  return (_CSTD _Dtest(&_Left) == _NANCODE);
356  }
#define _NANCODE
Definition: math.h:111
#define _CSTD
Definition: yvals.h:559
_CRTIMP2_PURE short __CLRCALL_PURE_OR_CDECL _Dtest(double *)
static _Ty _Ctraits< double >::_Nanv ( _Ty  )
inlinestatic
359  { // return NaN
360  return (_CSTD _Nan._Double);
361  }
_CRTIMP2_PURE _Dconst _Nan
double _Double
Definition: ymath.h:39
#define _CSTD
Definition: yvals.h:559
static _Ty _Ctraits< double >::_Sinh ( _Ty  _Left,
_Ty  _Right 
)
inlinestatic
364  { // return sinh(_Left) * _Right
365  return (_CSTD _Sinh(_Left, _Right));
366  }
static _Ty _Sinh(_Ty _Left, _Ty _Right)
Definition: complex:363
#define _CSTD
Definition: yvals.h:559
const _Ty & _Right
Definition: algorithm:4087
static _Ty _Ctraits< double >::asinh ( _Ty  _Left)
inlinestatic
369  { // return asinh(_Left)
370  if (_Isnan(_Left) || _Isinf(_Left) || _Left == 0)
371  return (0);
372  else
373  { // _Left finite nonzero
374  bool _Neg = _Left < 0;
375  _Ty _Ans;
376 
377  if (_Neg)
378  _Left = -_Left;
379  if (_Left < 2 / _Flt_eps())
380  _Ans = log1p(_Left
381  + _Left * _Left / (1 + sqrt(_Left * _Left + 1)));
382  else
383  _Ans = log(_Left) // _Left big, compute log(_Left+_Left)
384  + (_Ty)0.69314718055994530941723212145817658L;
385  return (_Neg ? -_Ans : _Ans);
386  }
387  }
static bool _Isnan(_Ty _Left)
Definition: complex:353
static _Ty log(_Ty _Left)
Definition: complex:409
static _Ty sqrt(_Ty _Left)
Definition: complex:441
double _Ty
Definition: complex:321
static bool _Isinf(_Ty _Left)
Definition: complex:348
static _Ty log1p(_Ty _Left)
Definition: complex:414
static _Ty _Flt_eps()
Definition: complex:323
static _Ty _Ctraits< double >::atan2 ( _Ty  _Yval,
_Ty  _Xval 
)
inlinestatic
390  { // return atan(_Yval / _Xval)
391  return (_CSTD atan2(_Yval, _Xval));
392  }
static _Ty atan2(_Ty _Yval, _Ty _Xval)
Definition: complex:389
#define _CSTD
Definition: yvals.h:559
static _Ty _Ctraits< double >::cos ( _Ty  _Left)
inlinestatic
395  { // return cos(_Left)
396  return (_CSTD cos(_Left));
397  }
static _Ty cos(_Ty _Left)
Definition: complex:394
#define _CSTD
Definition: yvals.h:559
static _Ty _Ctraits< double >::exp ( _Ty  _Left)
inlinestatic
400  { // return exp(_Left)
401  return (_CSTD exp(_Left));
402  }
static _Ty exp(_Ty _Left)
Definition: complex:399
#define _CSTD
Definition: yvals.h:559
static _Ty _Ctraits< double >::ldexp ( _Ty  _Left,
int  _Exponent 
)
inlinestatic
405  { // return _Left * 2 ^ _Exponent
406  return (_CSTD ldexp(_Left, _Exponent));
407  }
static _Ty ldexp(_Ty _Left, int _Exponent)
Definition: complex:404
#define _CSTD
Definition: yvals.h:559
static _Ty _Ctraits< double >::log ( _Ty  _Left)
inlinestatic
410  { // return log(_Left)
411  return (_CSTD log(_Left));
412  }
static _Ty log(_Ty _Left)
Definition: complex:409
#define _CSTD
Definition: yvals.h:559
static _Ty _Ctraits< double >::log1p ( _Ty  _Left)
inlinestatic
415  { // return log(1 + _Left)
416  if (_Isnan(_Left) || _Left == 0 || (_Isinf(_Left) && 0 < _Left))
417  return (_Left);
418  else if (_Left < -1)
419  return (_Nanv(_Left));
420  else if (_Left == -1)
421  return (-_Infv(_Left));
422  else if (_Left == 0)
423  return (_Left);
424  else
425  { // compute log(1 + _Left) with fixup for small _Left
426  _Ty _Leftp1 = 1 + _Left;
427  return (log(_Leftp1) - ((_Leftp1 - 1) - _Left) / _Leftp1);
428  }
429  }
static bool _Isnan(_Ty _Left)
Definition: complex:353
static _Ty log(_Ty _Left)
Definition: complex:409
static _Ty _Infv(_Ty)
Definition: complex:343
double _Ty
Definition: complex:321
static _Ty _Nanv(_Ty)
Definition: complex:358
static bool _Isinf(_Ty _Left)
Definition: complex:348
static _Ty _Ctraits< double >::pow ( _Ty  _Left,
_Ty  _Right 
)
inlinestatic
432  { // return _Left ^ _Right
433  return (_CSTD pow(_Left, _Right));
434  }
static _Ty pow(_Ty _Left, _Ty _Right)
Definition: complex:431
#define _CSTD
Definition: yvals.h:559
const _Ty & _Right
Definition: algorithm:4087
static _Ty _Ctraits< double >::sin ( _Ty  _Left)
inlinestatic
437  { // return sin(_Left)
438  return (_CSTD sin(_Left));
439  }
static _Ty sin(_Ty _Left)
Definition: complex:436
#define _CSTD
Definition: yvals.h:559
static _Ty _Ctraits< double >::sqrt ( _Ty  _Left)
inlinestatic
442  { // return sqrt(_Left)
443  return (_CSTD sqrt(_Left));
444  }
static _Ty sqrt(_Ty _Left)
Definition: complex:441
#define _CSTD
Definition: yvals.h:559
static _Ty _Ctraits< double >::tan ( _Ty  _Left)
inlinestatic
447  { // return tan(_Left)
448  return (_CSTD tan(_Left));
449  }
#define _CSTD
Definition: yvals.h:559
static _Ty tan(_Ty _Left)
Definition: complex:446

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