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
207  { // return cosh(_Left) * _Right
208  return (_CSTD _LCosh(_Left, _Right));
209  }
constexpr const _Ty &() _Left
Definition: algorithm:3590
_CRTIMP2_PURE long double __CLRCALL_PURE_OR_CDECL _LCosh(long double, long double)
#define _CSTD
Definition: yvals.h:570
constexpr const _Ty &() _Right
Definition: algorithm:3591
static short _Ctraits< long double >::_Exp ( _Ty _Pleft,
_Ty  _Right,
short  _Exponent 
)
inlinestatic
212  { // compute exp(*_Pleft) * _Right * 2 ^ _Exponent
213  return (_CSTD _LExp(_Pleft, _Right, _Exponent));
214  }
_CRTIMP2_PURE short __CLRCALL_PURE_OR_CDECL _LExp(long double *, long double, short)
#define _CSTD
Definition: yvals.h:570
constexpr const _Ty &() _Right
Definition: algorithm:3591
static _Ty _Ctraits< long double >::_Flt_eps ( )
inlinestatic
197  { // get epsilon
198  return (LDBL_EPSILON);
199  }
static _Ty _Ctraits< long double >::_Flt_max ( )
inlinestatic
202  { // get max
203  return (LDBL_MAX);
204  }
static _Ty _Ctraits< long double >::_Infv ( _Ty  )
inlinestatic
217  { // return infinity
219  }
Definition: limits:101
static bool _Ctraits< long double >::_Isinf ( _Ty  _Left)
inlinestatic
222  { // test for infinity
223  return (_CSTD _LDtest(&_Left) == _INFCODE);
224  }
constexpr const _Ty &() _Left
Definition: algorithm:3590
#define _INFCODE
Definition: ymath.h:23
_CRTIMP2_PURE short __CLRCALL_PURE_OR_CDECL _LDtest(long double *)
#define _CSTD
Definition: yvals.h:570
static bool _Ctraits< long double >::_Isnan ( _Ty  _Left)
inlinestatic
227  { // test for NaN
228  return (_CSTD _LDtest(&_Left) == _NANCODE);
229  }
constexpr const _Ty &() _Left
Definition: algorithm:3590
#define _NANCODE
Definition: ymath.h:24
_CRTIMP2_PURE short __CLRCALL_PURE_OR_CDECL _LDtest(long double *)
#define _CSTD
Definition: yvals.h:570
static _Ty _Ctraits< long double >::_Nanv ( _Ty  )
inlinestatic
232  { // return NaN
234  }
Definition: limits:101
static _Ty _Ctraits< long double >::_Sinh ( _Ty  _Left,
_Ty  _Right 
)
inlinestatic
237  { // return sinh(_Left) * _Right
238  return (_CSTD _LSinh(_Left, _Right));
239  }
constexpr const _Ty &() _Left
Definition: algorithm:3590
#define _CSTD
Definition: yvals.h:570
_CRTIMP2_PURE long double __CLRCALL_PURE_OR_CDECL _LSinh(long double, long double)
constexpr const _Ty &() _Right
Definition: algorithm:3591
static _Ty _Ctraits< long double >::asinh ( _Ty  _Left)
inlinestatic
242  { // return asinh(_Left)
243  constexpr _Ty _Ln2 = 0.69314718055994530941723212145817658L;
244 
245  bool _Neg = _Left < 0;
246  _Ty _Ans;
247 
248  if (_Neg)
249  _Left = -_Left;
250  if (_Left < 2 / _Flt_eps())
251  _Ans = log1p(_Left
252  + _Left * _Left / (1 + sqrt(_Left * _Left + 1)));
253  else
254  _Ans = log(_Left) + _Ln2;
255  return (_Neg ? -_Ans : _Ans);
256  }
constexpr const _Ty &() _Left
Definition: algorithm:3590
static _Ty log(_Ty _Left)
Definition: complex:278
static _Ty sqrt(_Ty _Left)
Definition: complex:306
static _Ty log1p(_Ty _Left)
Definition: complex:283
long double _Ty
Definition: complex:194
static _Ty _Flt_eps()
Definition: complex:196
static _Ty _Ctraits< long double >::atan2 ( _Ty  _Yval,
_Ty  _Xval 
)
inlinestatic
259  { // return atan(_Yval / _Xval)
260  return (_CSTD atan2l(_Yval, _Xval));
261  }
#define _CSTD
Definition: yvals.h:570
static _Ty _Ctraits< long double >::cos ( _Ty  _Left)
inlinestatic
264  { // return cos(_Left)
265  return (_CSTD cosl(_Left));
266  }
constexpr const _Ty &() _Left
Definition: algorithm:3590
#define _CSTD
Definition: yvals.h:570
static _Ty _Ctraits< long double >::exp ( _Ty  _Left)
inlinestatic
269  { // return exp(_Left)
270  return (_CSTD expl(_Left));
271  }
constexpr const _Ty &() _Left
Definition: algorithm:3590
#define _CSTD
Definition: yvals.h:570
static _Ty _Ctraits< long double >::ldexp ( _Ty  _Left,
int  _Exponent 
)
inlinestatic
274  { // return _Left * 2 ^ _Exponent
275  return (_CSTD ldexpl(_Left, _Exponent));
276  }
constexpr const _Ty &() _Left
Definition: algorithm:3590
#define _CSTD
Definition: yvals.h:570
static _Ty _Ctraits< long double >::log ( _Ty  _Left)
inlinestatic
279  { // return log(_Left)
280  return (_CSTD logl(_Left));
281  }
constexpr const _Ty &() _Left
Definition: algorithm:3590
#define _CSTD
Definition: yvals.h:570
static _Ty _Ctraits< long double >::log1p ( _Ty  _Left)
inlinestatic
284  { // return log(1 + _Left)
285  if (_Left < -1)
286  return (_Nanv(_Left));
287  else if (_Left == 0)
288  return (_Left);
289  else
290  { // compute log(1 + _Left) with fixup for small _Left
291  _Ty _Leftp1 = 1 + _Left;
292  return (log(_Leftp1) - ((_Leftp1 - 1) - _Left) / _Leftp1);
293  }
294  }
constexpr const _Ty &() _Left
Definition: algorithm:3590
static _Ty _Nanv(_Ty)
Definition: complex:231
static _Ty log(_Ty _Left)
Definition: complex:278
long double _Ty
Definition: complex:194
static _Ty _Ctraits< long double >::pow ( _Ty  _Left,
_Ty  _Right 
)
inlinestatic
297  { // return _Left ^ _Right
298  return (_CSTD powl(_Left, _Right));
299  }
constexpr const _Ty &() _Left
Definition: algorithm:3590
#define _CSTD
Definition: yvals.h:570
constexpr const _Ty &() _Right
Definition: algorithm:3591
static _Ty _Ctraits< long double >::sin ( _Ty  _Left)
inlinestatic
302  { // return sin(_Left)
303  return (_CSTD sinl(_Left));
304  }
constexpr const _Ty &() _Left
Definition: algorithm:3590
#define _CSTD
Definition: yvals.h:570
static _Ty _Ctraits< long double >::sqrt ( _Ty  _Left)
inlinestatic
307  { // return sqrt(_Left)
308  return (_CSTD sqrtl(_Left));
309  }
constexpr const _Ty &() _Left
Definition: algorithm:3590
#define _CSTD
Definition: yvals.h:570
static _Ty _Ctraits< long double >::tan ( _Ty  _Left)
inlinestatic
312  { // return tan(_Left)
313  return (_CSTD tanl(_Left));
314  }
constexpr const _Ty &() _Left
Definition: algorithm:3590
#define _CSTD
Definition: yvals.h:570

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