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 26 of file PSEUDO_F64vec1.h.

Constructor & Destructor Documentation

◆ F64vec1() [1/3]

F64vec1::F64vec1 ( )
inline

Definition at line 33 of file PSEUDO_F64vec1.h.

33 {}

◆ F64vec1() [2/3]

F64vec1::F64vec1 ( const F64vec1 a)
inline

Definition at line 34 of file PSEUDO_F64vec1.h.

References v.

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

◆ F64vec1() [3/3]

F64vec1::F64vec1 ( const double &  a)
inline

Definition at line 35 of file PSEUDO_F64vec1.h.

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

Member Function Documentation

◆ operator[]() [1/2]

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

Definition at line 30 of file PSEUDO_F64vec1.h.

References i.

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

◆ operator[]() [2/2]

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

Definition at line 31 of file PSEUDO_F64vec1.h.

References i.

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

◆ 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 39 of file PSEUDO_F64vec1.h.

39 { 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 66 of file PSEUDO_F64vec1.h.

66 { _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 75 of file PSEUDO_F64vec1.h.

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

◆ exp

F64vec1 exp ( const F64vec1 a)
friend

Definition at line 72 of file PSEUDO_F64vec1.h.

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

◆ fabs

F64vec1 fabs ( const F64vec1 a)
friend

Definition at line 70 of file PSEUDO_F64vec1.h.

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

◆ log

F64vec1 log ( const F64vec1 a)
friend

Definition at line 73 of file PSEUDO_F64vec1.h.

73 { _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 38 of file PSEUDO_F64vec1.h.

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

◆ max [2/2]

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

Definition at line 65 of file PSEUDO_F64vec1.h.

65 { _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 37 of file PSEUDO_F64vec1.h.

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

◆ min [2/2]

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

Definition at line 64 of file PSEUDO_F64vec1.h.

64 { _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 60 of file PSEUDO_F64vec1.h.

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

◆ operator+

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

Definition at line 58 of file PSEUDO_F64vec1.h.

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

◆ operator-

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

Definition at line 59 of file PSEUDO_F64vec1.h.

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

◆ operator/

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

Definition at line 61 of file PSEUDO_F64vec1.h.

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

◆ operator<<

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

Definition at line 84 of file PSEUDO_F64vec1.h.

85  {
86  strm << a[0];
87  return strm;
88  }

◆ operator>>

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

Definition at line 90 of file PSEUDO_F64vec1.h.

91  {
92  double tmp;
93  strm >> tmp;
94  a = tmp;
95  return strm;
96  }

◆ rcp [1/2]

double rcp ( double  x)
friend

Definition at line 41 of file PSEUDO_F64vec1.h.

41 { return 1. / x; }

◆ rcp [2/2]

F64vec1 rcp ( const F64vec1 a)
friend

Definition at line 69 of file PSEUDO_F64vec1.h.

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

◆ rsqrt [1/2]

double rsqrt ( double  x)
friend

Definition at line 40 of file PSEUDO_F64vec1.h.

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

◆ rsqrt [2/2]

F64vec1 rsqrt ( const F64vec1 a)
friend

Definition at line 68 of file PSEUDO_F64vec1.h.

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

◆ sgn [1/2]

double sgn ( double  x)
friend

Definition at line 42 of file PSEUDO_F64vec1.h.

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

◆ sgn [2/2]

F64vec1 sgn ( const F64vec1 a)
friend

Definition at line 71 of file PSEUDO_F64vec1.h.

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

◆ sin

F64vec1 sin ( const F64vec1 a)
friend

Definition at line 74 of file PSEUDO_F64vec1.h.

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

◆ sqrt

F64vec1 sqrt ( const F64vec1 a)
friend

Definition at line 67 of file PSEUDO_F64vec1.h.

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

Member Data Documentation

◆ v

double F64vec1::v[1]

Definition at line 28 of file PSEUDO_F64vec1.h.

Referenced by F64vec1().


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