My Project  debian-1:4.1.1-p2+ds-4
Public Member Functions | Data Fields
ap::complex Class Reference

#include <ap.h>

Public Member Functions

 complex ()
 
 complex (const double &_x)
 
 complex (const double &_x, const double &_y)
 
 complex (const complex &z)
 
complexoperator= (const double &v)
 
complexoperator+= (const double &v)
 
complexoperator-= (const double &v)
 
complexoperator*= (const double &v)
 
complexoperator/= (const double &v)
 
complexoperator= (const complex &z)
 
complexoperator+= (const complex &z)
 
complexoperator-= (const complex &z)
 
complexoperator*= (const complex &z)
 
complexoperator/= (const complex &z)
 
 complex ()
 
 complex (const double &_x)
 
 complex (const double &_x, const double &_y)
 
 complex (const complex &z)
 
complexoperator= (const double &v)
 
complexoperator+= (const double &v)
 
complexoperator-= (const double &v)
 
complexoperator*= (const double &v)
 
complexoperator/= (const double &v)
 
complexoperator= (const complex &z)
 
complexoperator+= (const complex &z)
 
complexoperator-= (const complex &z)
 
complexoperator*= (const complex &z)
 
complexoperator/= (const complex &z)
 

Data Fields

double x
 
double y
 

Detailed Description

Definition at line 56 of file ap.h.

Constructor & Destructor Documentation

◆ complex() [1/8]

ap::complex::complex ( )
inline

Definition at line 59 of file ap.h.

60 {

◆ complex() [2/8]

ap::complex::complex ( const double &  _x)
inline

Definition at line 60 of file ap.h.

60 {

◆ complex() [3/8]

ap::complex::complex ( const double &  _x,
const double &  _y 
)
inline

Definition at line 61 of file ap.h.

61 :
62  complex():x(0.0),y(0.0){};

◆ complex() [4/8]

ap::complex::complex ( const complex z)
inline

Definition at line 62 of file ap.h.

62 :x(0.0),y(0.0){};

◆ complex() [5/8]

ap::complex::complex ( )
inline

Definition at line 67 of file svd_si.h.

68 {

◆ complex() [6/8]

ap::complex::complex ( const double &  _x)
inline

Definition at line 68 of file svd_si.h.

68 {

◆ complex() [7/8]

ap::complex::complex ( const double &  _x,
const double &  _y 
)
inline

Definition at line 69 of file svd_si.h.

69 :
70  complex():x(0.0),y(0.0){};

◆ complex() [8/8]

ap::complex::complex ( const complex z)
inline

Definition at line 70 of file svd_si.h.

70 :x(0.0),y(0.0){};

Member Function Documentation

◆ operator*=() [1/4]

complex& ap::complex::operator*= ( const complex z)
inline

Definition at line 73 of file ap.h.

73 { x = z.x; y = z.y; return *this; };

◆ operator*=() [2/4]

complex& ap::complex::operator*= ( const complex z)
inline

Definition at line 81 of file svd_si.h.

81 { x = z.x; y = z.y; return *this; };

◆ operator*=() [3/4]

complex& ap::complex::operator*= ( const double &  v)
inline

Definition at line 67 of file ap.h.

67 { x = v; y = 0.0; return *this; };

◆ operator*=() [4/4]

complex& ap::complex::operator*= ( const double &  v)
inline

Definition at line 75 of file svd_si.h.

75 { x = v; y = 0.0; return *this; };

◆ operator+=() [1/4]

complex& ap::complex::operator+= ( const complex z)
inline

Definition at line 71 of file ap.h.

71 { x /= v; y /= v; return *this; };

◆ operator+=() [2/4]

complex& ap::complex::operator+= ( const complex z)
inline

Definition at line 79 of file svd_si.h.

79 { x /= v; y /= v; return *this; };

◆ operator+=() [3/4]

complex& ap::complex::operator+= ( const double &  v)
inline

Definition at line 65 of file ap.h.

65 :x(z.x),y(z.y){};

◆ operator+=() [4/4]

complex& ap::complex::operator+= ( const double &  v)
inline

Definition at line 73 of file svd_si.h.

73 :x(z.x),y(z.y){};

◆ operator-=() [1/4]

complex& ap::complex::operator-= ( const complex z)
inline

Definition at line 72 of file ap.h.

73 { x = z.x; y = z.y; return *this; };

◆ operator-=() [2/4]

complex& ap::complex::operator-= ( const complex z)
inline

Definition at line 80 of file svd_si.h.

81 { x = z.x; y = z.y; return *this; };

◆ operator-=() [3/4]

complex& ap::complex::operator-= ( const double &  v)
inline

Definition at line 66 of file ap.h.

67 { x = v; y = 0.0; return *this; };

◆ operator-=() [4/4]

complex& ap::complex::operator-= ( const double &  v)
inline

Definition at line 74 of file svd_si.h.

75 { x = v; y = 0.0; return *this; };

◆ operator/=() [1/4]

complex& ap::complex::operator/= ( const complex z)
inline

Definition at line 74 of file ap.h.

74  { x += z.x; y += z.y; return *this; };
75  complex& operator-=(const complex& z){ x -= z.x; y -= z.y; return *this; };
76  complex& operator*=(const complex& z){ double t = x*z.x-y*z.y; y = x*z.y+y*z.x; x = t; return *this; };
77  complex& operator/=(const complex& z)
78  {
80  double e;
81  double f;
82  if( fabs(z.y)<fabs(z.x) )
83  {
84  e = z.y/z.x;
85  f = z.x+z.y*e;
86  result.x = (z.x+z.y*e)/f;
87  result.y = (z.y-z.x*e)/f;
88  }
89  else
90  {
91  e = z.x/z.y;
92  f = z.y+z.x*e;
93  result.x = (z.y+z.x*e)/f;
94  result.y = (-z.x+z.y*e)/f;
95  }

◆ operator/=() [2/4]

complex& ap::complex::operator/= ( const complex z)
inline

Definition at line 82 of file svd_si.h.

82  { x += z.x; y += z.y; return *this; };
83  complex& operator-=(const complex& z){ x -= z.x; y -= z.y; return *this; };
84  complex& operator*=(const complex& z){ double t = x*z.x-y*z.y; y = x*z.y+y*z.x; x = t; return *this; };
85  complex& operator/=(const complex& z)
86  {
88  double e;
89  double f;
90  if( fabs(z.y)<fabs(z.x) )
91  {
92  e = z.y/z.x;
93  f = z.x+z.y*e;
94  result.x = (z.x+z.y*e)/f;
95  result.y = (z.y-z.x*e)/f;
96  }
97  else
98  {
99  e = z.x/z.y;
100  f = z.y+z.x*e;
101  result.x = (z.y+z.x*e)/f;
102  result.y = (-z.x+z.y*e)/f;
103  }

◆ operator/=() [3/4]

complex& ap::complex::operator/= ( const double &  v)
inline

Definition at line 68 of file ap.h.

68 { x += v; return *this; };

◆ operator/=() [4/4]

complex& ap::complex::operator/= ( const double &  v)
inline

Definition at line 76 of file svd_si.h.

76 { x += v; return *this; };

◆ operator=() [1/4]

complex& ap::complex::operator= ( const complex z)
inline

Definition at line 70 of file ap.h.

70 { x *= v; y *= v; return *this; };

◆ operator=() [2/4]

complex& ap::complex::operator= ( const complex z)
inline

Definition at line 78 of file svd_si.h.

78 { x *= v; y *= v; return *this; };

◆ operator=() [3/4]

complex& ap::complex::operator= ( const double &  v)
inline

Definition at line 64 of file ap.h.

64 :x(_x),y(_y){};

◆ operator=() [4/4]

complex& ap::complex::operator= ( const double &  v)
inline

Definition at line 72 of file svd_si.h.

72 :x(_x),y(_y){};

Field Documentation

◆ x

double ap::complex::x

Definition at line 95 of file ap.h.

◆ y

double ap::complex::y

Definition at line 95 of file ap.h.


The documentation for this class was generated from the following files:
f
FILE * f
Definition: checklibs.c:9
result
return result
Definition: facAbsBiFact.cc:76
ap::complex::y
double y
Definition: ap.h:95
ap::complex::operator-=
complex & operator-=(const double &v)
Definition: ap.h:66
ap::complex::operator*=
complex & operator*=(const double &v)
Definition: ap.h:67
ap::complex
Definition: ap.h:56
ap::complex::x
double x
Definition: ap.h:95
ap::complex::complex
complex()
Definition: ap.h:59
v
const Variable & v
< [in] a sqrfree bivariate poly
Definition: facBivar.h:37
ap::complex::operator/=
complex & operator/=(const double &v)
Definition: ap.h:68