PandaRoot
F64vec1 Class Reference

#include <PSEUDO_F64vec1.h>

Public Member Functions

double & operator[] (int i)
 
double operator[] (int i) const
 
 F64vec1 ()
 
 F64vec1 (const F64vec1 &a)
 
 F64vec1 (const double &a)
 
 vec_arithmetic (F64vec1, double)
 

Public Attributes

double v [1]
 

Friends

double min (double x, double y)
 
double max (double x, double y)
 
double asgnb (double x, double y)
 
double rsqrt (double x)
 
double rcp (double x)
 
double sgn (double x)
 
F64vec1 operator+ (const F64vec1 &a, const F64vec1 &b)
 
F64vec1 operator- (const F64vec1 &a, const F64vec1 &b)
 
F64vec1 operator* (const F64vec1 &a, const F64vec1 &b)
 
F64vec1 operator/ (const F64vec1 &a, const F64vec1 &b)
 
F64vec1 min (const F64vec1 &a, const F64vec1 &b)
 
F64vec1 max (const F64vec1 &a, const F64vec1 &b)
 
F64vec1 asgnb (const F64vec1 &a, const F64vec1 &b)
 
F64vec1 sqrt (const F64vec1 &a)
 
F64vec1 rsqrt (const F64vec1 &a)
 
F64vec1 rcp (const F64vec1 &a)
 
F64vec1 fabs (const F64vec1 &a)
 
F64vec1 sgn (const F64vec1 &a)
 
F64vec1 exp (const F64vec1 &a)
 
F64vec1 log (const F64vec1 &a)
 
F64vec1 sin (const F64vec1 &a)
 
F64vec1 cos (const F64vec1 &a)
 
std::ostream & operator<< (std::ostream &strm, const F64vec1 &a)
 
std::istream & operator>> (std::istream &strm, F64vec1 &a)
 

Detailed Description

Definition at line 14 of file PSEUDO_F64vec1.h.

Constructor & Destructor Documentation

◆ F64vec1() [1/3]

F64vec1::F64vec1 ( )
inline

Definition at line 21 of file PSEUDO_F64vec1.h.

21 {}

◆ F64vec1() [2/3]

F64vec1::F64vec1 ( const F64vec1 a)
inline

Definition at line 22 of file PSEUDO_F64vec1.h.

References v.

22 { v[0] = a.v[0]; }
double v[1]

◆ F64vec1() [3/3]

F64vec1::F64vec1 ( const double &  a)
inline

Definition at line 23 of file PSEUDO_F64vec1.h.

23 { v[0] = a; }
double v[1]

Member Function Documentation

◆ operator[]() [1/2]

double& F64vec1::operator[] ( int  i)
inline

Definition at line 18 of file PSEUDO_F64vec1.h.

References i.

18 { return ((double *)&v)[i]; }
double v[1]
unsigned int i
Definition: P4_F32vec4.h:21

◆ operator[]() [2/2]

double F64vec1::operator[] ( int  i) const
inline

Definition at line 19 of file PSEUDO_F64vec1.h.

References i.

19 { return ((double *)&v)[i]; }
double v[1]
unsigned int i
Definition: P4_F32vec4.h:21

◆ vec_arithmetic()

F64vec1::vec_arithmetic ( F64vec1  ,
double   
)

Friends And Related Function Documentation

◆ asgnb [1/2]

double asgnb ( double  x,
double  y 
)
friend

Definition at line 27 of file PSEUDO_F64vec1.h.

27 { return y >= 0 ? fabs(x) : -fabs(x); }
friend F64vec1 fabs(const F64vec1 &a)

◆ asgnb [2/2]

F64vec1 asgnb ( const F64vec1 a,
const F64vec1 b 
)
friend

Definition at line 54 of file PSEUDO_F64vec1.h.

54 { _f2(a, b, asgnb) }
#define _f2(A, B, F)
friend double asgnb(double x, double y)

◆ cos

F64vec1 cos ( const F64vec1 a)
friend

Definition at line 63 of file PSEUDO_F64vec1.h.

63 { _f1(a, cos) }
friend F64vec1 cos(const F64vec1 &a)
#define _f1(A, F)

◆ exp

F64vec1 exp ( const F64vec1 a)
friend

Definition at line 60 of file PSEUDO_F64vec1.h.

60 { _f1(a, exp) }
friend F64vec1 exp(const F64vec1 &a)
#define _f1(A, F)

◆ fabs

F64vec1 fabs ( const F64vec1 a)
friend

Definition at line 58 of file PSEUDO_F64vec1.h.

58 { _f1(a, fabs) }
friend F64vec1 fabs(const F64vec1 &a)
#define _f1(A, F)

◆ log

F64vec1 log ( const F64vec1 a)
friend

Definition at line 61 of file PSEUDO_F64vec1.h.

61 { _f1(a, log) }
friend F64vec1 log(const F64vec1 &a)
#define _f1(A, F)

◆ max [1/2]

double max ( double  x,
double  y 
)
friend

Definition at line 26 of file PSEUDO_F64vec1.h.

26 { return x < y ? y : x; }

◆ max [2/2]

F64vec1 max ( const F64vec1 a,
const F64vec1 b 
)
friend

Definition at line 53 of file PSEUDO_F64vec1.h.

53 { _f2(a, b, max) }
#define _f2(A, B, F)
friend double max(double x, double y)

◆ min [1/2]

double min ( double  x,
double  y 
)
friend

Definition at line 25 of file PSEUDO_F64vec1.h.

25 { return x < y ? x : y; }

◆ min [2/2]

F64vec1 min ( const F64vec1 a,
const F64vec1 b 
)
friend

Definition at line 52 of file PSEUDO_F64vec1.h.

52 { _f2(a, b, min) }
#define _f2(A, B, F)
friend double min(double x, double y)

◆ operator*

F64vec1 operator* ( const F64vec1 a,
const F64vec1 b 
)
friend

Definition at line 48 of file PSEUDO_F64vec1.h.

48 { _op(a, b, *) }
#define _op(A, B, O)

◆ operator+

F64vec1 operator+ ( const F64vec1 a,
const F64vec1 b 
)
friend

Definition at line 46 of file PSEUDO_F64vec1.h.

46 { _op(a, b, +) }
#define _op(A, B, O)

◆ operator-

F64vec1 operator- ( const F64vec1 a,
const F64vec1 b 
)
friend

Definition at line 47 of file PSEUDO_F64vec1.h.

47 { _op(a, b, -) }
#define _op(A, B, O)

◆ operator/

F64vec1 operator/ ( const F64vec1 a,
const F64vec1 b 
)
friend

Definition at line 49 of file PSEUDO_F64vec1.h.

49 { _op(a, b, /) }
#define _op(A, B, O)

◆ operator<<

std::ostream& operator<< ( std::ostream &  strm,
const F64vec1 a 
)
friend

Definition at line 72 of file PSEUDO_F64vec1.h.

73  {
74  strm << a[0];
75  return strm;
76  }

◆ operator>>

std::istream& operator>> ( std::istream &  strm,
F64vec1 a 
)
friend

Definition at line 78 of file PSEUDO_F64vec1.h.

79  {
80  double tmp;
81  strm >> tmp;
82  a = tmp;
83  return strm;
84  }

◆ rcp [1/2]

double rcp ( double  x)
friend

Definition at line 29 of file PSEUDO_F64vec1.h.

29 { return 1. / x; }

◆ rcp [2/2]

F64vec1 rcp ( const F64vec1 a)
friend

Definition at line 57 of file PSEUDO_F64vec1.h.

57 { _f1(a, rcp) }
#define _f1(A, F)
friend double rcp(double x)

◆ rsqrt [1/2]

double rsqrt ( double  x)
friend

Definition at line 28 of file PSEUDO_F64vec1.h.

28 { return 1. / sqrt(x); }
friend F64vec1 sqrt(const F64vec1 &a)

◆ rsqrt [2/2]

F64vec1 rsqrt ( const F64vec1 a)
friend

Definition at line 56 of file PSEUDO_F64vec1.h.

56 { _f1(a, rsqrt) }
friend double rsqrt(double x)
#define _f1(A, F)

◆ sgn [1/2]

double sgn ( double  x)
friend

Definition at line 30 of file PSEUDO_F64vec1.h.

30 { return x >= 0 ? 1 : -1; }

◆ sgn [2/2]

F64vec1 sgn ( const F64vec1 a)
friend

Definition at line 59 of file PSEUDO_F64vec1.h.

59 { _f1(a, sgn) }
friend double sgn(double x)
#define _f1(A, F)

◆ sin

F64vec1 sin ( const F64vec1 a)
friend

Definition at line 62 of file PSEUDO_F64vec1.h.

62 { _f1(a, sin) }
friend F64vec1 sin(const F64vec1 &a)
#define _f1(A, F)

◆ sqrt

F64vec1 sqrt ( const F64vec1 a)
friend

Definition at line 55 of file PSEUDO_F64vec1.h.

55 { _f1(a, sqrt) }
friend F64vec1 sqrt(const F64vec1 &a)
#define _f1(A, F)

Member Data Documentation

◆ v

double F64vec1::v[1]

Definition at line 16 of file PSEUDO_F64vec1.h.

Referenced by F64vec1().


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