My Project  debian-1:4.1.1-p2+ds-4build2
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 64 of file ap.h.

Constructor & Destructor Documentation

◆ complex() [1/8]

ap::complex::complex ( )
inline

Definition at line 67 of file ap.h.

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

◆ complex() [2/8]

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

Definition at line 68 of file ap.h.

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

◆ complex() [3/8]

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

Definition at line 69 of file ap.h.

69 { x -= v; return *this; };

◆ complex() [4/8]

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

Definition at line 70 of file ap.h.

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

◆ complex() [5/8]

ap::complex::complex ( )
inline

Definition at line 75 of file svd_si.h.

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

◆ complex() [6/8]

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

Definition at line 76 of file svd_si.h.

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

◆ complex() [7/8]

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

Definition at line 77 of file svd_si.h.

77 { x -= v; return *this; };

◆ complex() [8/8]

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

Definition at line 78 of file svd_si.h.

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

Member Function Documentation

◆ operator*=() [1/4]

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

Definition at line 81 of file ap.h.

83 {

◆ operator*=() [2/4]

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

Definition at line 89 of file svd_si.h.

91 {

◆ operator*=() [3/4]

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

Definition at line 75 of file ap.h.

75 { x -= z.x; y -= z.y; return *this; };

◆ operator*=() [4/4]

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

Definition at line 83 of file svd_si.h.

83 { x -= z.x; y -= z.y; return *this; };

◆ operator+=() [1/4]

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

Definition at line 79 of file ap.h.

83 {

◆ operator+=() [2/4]

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

Definition at line 87 of file svd_si.h.

91 {

◆ operator+=() [3/4]

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

Definition at line 73 of file ap.h.

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

◆ operator+=() [4/4]

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

Definition at line 81 of file svd_si.h.

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

◆ operator-=() [1/4]

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

Definition at line 80 of file ap.h.

83 {

◆ operator-=() [2/4]

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

Definition at line 88 of file svd_si.h.

91 {

◆ operator-=() [3/4]

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

Definition at line 74 of file ap.h.

74 { x += z.x; y += z.y; return *this; };

◆ operator-=() [4/4]

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

Definition at line 82 of file svd_si.h.

82 { x += z.x; y += z.y; return *this; };

◆ operator/=() [1/4]

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

Definition at line 82 of file ap.h.

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  }
96  *this = result;
97  return *this;
98  };
99 
100  double x, y;
101 };
102 
103 const complex operator/(const complex& lhs, const complex& rhs);

◆ operator/=() [2/4]

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

Definition at line 90 of file svd_si.h.

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  }
104  *this = result;
105  return *this;
106  };
107 
108  double x, y;
109 };
110 
111 const complex operator/(const complex& lhs, const complex& rhs);

◆ operator/=() [3/4]

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

Definition at line 76 of file ap.h.

76 { double t = x*z.x-y*z.y; y = x*z.y+y*z.x; x = t; return *this; };

◆ operator/=() [4/4]

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

Definition at line 84 of file svd_si.h.

84 { double t = x*z.x-y*z.y; y = x*z.y+y*z.x; x = t; return *this; };

◆ operator=() [1/4]

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

Definition at line 78 of file ap.h.

78 {

◆ operator=() [2/4]

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

Definition at line 86 of file svd_si.h.

86 {

◆ operator=() [3/4]

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

Definition at line 72 of file ap.h.

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

◆ operator=() [4/4]

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

Definition at line 80 of file svd_si.h.

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

Field Documentation

◆ x

double ap::complex::x

Definition at line 103 of file ap.h.

◆ y

double ap::complex::y

Definition at line 105 of file ap.h.


The documentation for this class was generated from the following files:
ap::operator/
const complex operator/(const complex &lhs, const complex &rhs)
Definition: ap.cpp:50
f
FILE * f
Definition: checklibs.c:9
result
return result
Definition: facAbsBiFact.cc:76
ap::complex::y
double y
Definition: ap.h:105
ap::complex::x
double x
Definition: ap.h:103
ap::complex::complex
complex()
Definition: ap.h:67
v
const Variable & v
< [in] a sqrfree bivariate poly
Definition: facBivar.h:37