Go to the documentation of this file. 1 #ifndef L1Algo_PSEUDO_F64vec1_H
2 #define L1Algo_PSEUDO_F64vec1_H
25 friend double min(
double x,
double y) {
return x <
y ?
x :
y; }
26 friend double max(
double x,
double y) {
return x <
y ?
y :
x; }
31 friend double rcp(
double x) {
return 1. /
x; }
32 friend double sgn(
double x) {
return x >= 0 ? 1 : -1; }
34 #define _f2(A, B, F) \
36 z.v[0] = F(A.v[0], B.v[0]); \
42 #define _op(A, B, O) \
44 z.v[0] = A.v[0] O B.v[0]; \
94 #define _fvecalignment
friend F64vec1 fabs(const F64vec1 &a)
friend F64vec1 log(const F64vec1 &a)
friend double rcp(double x)
friend F64vec1 operator*(const F64vec1 &a, const F64vec1 &b)
friend double sgn(double x)
double & operator[](int i)
friend double max(double x, double y)
friend double asgnb(double x, double y)
friend F64vec1 exp(const F64vec1 &a)
friend F64vec1 operator+(const F64vec1 &a, const F64vec1 &b)
friend F64vec1 sqrt(const F64vec1 &a)
friend double rsqrt(double x)
friend double min(double x, double y)
vec_arithmetic(F64vec1, double)
friend std::istream & operator>>(std::istream &strm, F64vec1 &a)
friend std::ostream & operator<<(std::ostream &strm, const F64vec1 &a)
friend F64vec1 operator/(const F64vec1 &a, const F64vec1 &b)
friend F64vec1 sin(const F64vec1 &a)
friend F64vec1 cos(const F64vec1 &a)
friend F64vec1 operator-(const F64vec1 &a, const F64vec1 &b)