#include <bg.h>
Public Methods | |
| BG () | |
| BG (unsigned x_i, double b) | |
| BG (double a) | |
| BG (const BG &a) | |
| BG & | initialize (unsigned i, double b) |
| BG & | operator= (double b) |
| BG | power (double y) const |
| void | NRupdate (void) |
| void | display (void) |
Static Public Methods | |
| void | set_dimen (unsigned i) |
Public Attributes | |
| double | f |
| doubleMatrix | d |
| doubleMatrix | D |
Static Public Attributes | |
| unsigned | dimen = 3 |
| doubleMatrix | x |
Friends | |
| BG | operator+ (const BG &a, const BG &b) |
| BG | operator- (const BG &a, const BG &b) |
| BG | operator * (const BG &a, const BG &b) |
| BG | operator/ (const BG &a, const BG &b) |
| BG | operator- (const BG &a) |
| BG | operator/ (double a, const BG &b) |
| BG | operator+ (double a, const BG &b) |
| BG | operator- (double a, const BG &b) |
| BG | operator * (double a, const BG &b) |
| BG | operator+ (const BG &a, double b) |
| BG | operator- (const BG &a, double b) |
| BG | operator * (const BG &a, double b) |
| BG | operator/ (const BG &a, double b) |
| bool | operator<= (const BG &a, double b) |
| bool | operator< (const BG &a, double b) |
| bool | operator>= (const BG &a, double b) |
| bool | operator> (const BG &a, double b) |
| bool | operator== (const BG &a, double b) |
| bool | operator!= (const BG &a, double b) |
| bool | operator<= (const BG &a, const BG &b) |
| bool | operator< (const BG &a, const BG &b) |
| bool | operator>= (const BG &a, const BG &b) |
| bool | operator> (const BG &a, const BG &b) |
| bool | operator== (const BG &a, const BG &b) |
| bool | operator!= (const BG &a, const BG &b) |
| bool | operator<= (double b, const BG &a) |
| bool | operator< (double b, const BG &a) |
| bool | operator>= (double b, const BG &a) |
| bool | operator> (double b, const BG &a) |
| bool | operator== (double b, const BG &a) |
| bool | operator!= (double b, const BG &a) |
| BG & | operator+= (BG &a, const BG &b) |
| BG & | operator-= (BG &a, const BG &b) |
| BG & | operator *= (BG &a, const BG &b) |
| BG & | operator/= (BG &a, const BG &b) |
| BG & | operator+= (BG &a, double b) |
| BG & | operator-= (BG &a, double b) |
| BG & | operator *= (BG &a, double b) |
| BG & | operator/= (BG &a, double b) |
| BG | sqrt (const BG &a) |
| BG | log (const BG &a) |
| BG | exp (const BG &a) |
| double | fabs (const BG &a) |
| std::ostream & | operator<< (std::ostream &os, const BG &a) |
|
|
Definition at line 32 of file bg.cpp. References D, d, dimen, f, and matvec::Matrix< double >::resize().
|
|
||||||||||||
|
Definition at line 44 of file bg.cpp. References D, d, dimen, f, matvec::Matrix< double >::resize(), and x.
|
|
|
Definition at line 57 of file bg.cpp. References D, d, dimen, f, and matvec::Matrix< double >::resize().
|
|
|
Definition at line 69 of file bg.cpp. References D, d, dimen, and f.
|
|
|
Definition at line 269 of file bg.cpp.
|
|
||||||||||||
|
Definition at line 260 of file bg.cpp. References D, d, f, matvec::Matrix< double >::resize(), and x.
|
|
|
Definition at line 276 of file bg.cpp. References d, D, matvec::doubleMatrix::ginv0(), and x.
|
|
|
Definition at line 239 of file bg.cpp. References D, d, f, and matvec::Matrix< double >::resize().
|
|
|
Definition at line 105 of file bg.h.
|
|
|
Definition at line 45 of file bg.h. References dimen, and matvec::Matrix< double >::resize().
|
|
|
Definition at line 144 of file bg.cpp. Referenced by power().
00144 {
00145 BG r;
00146 r.f = std::exp(a.f);
00147 r.d = r.f*a.d;
00148 r.D = r.f*a.D + r.d*a.d.transpose();
00149 return r;
00150 }
|
|
|
Definition at line 107 of file bg.h.
00107 {return std::fabs(a.f);};
|
|
|
Definition at line 136 of file bg.cpp. Referenced by power().
00136 {
00137 BG r;
00138 r.f = std::log(a.f);
00139 r.d = 1.0/a.f*a.d;
00140 r.D = 1.0/a.f*a.D - 1.0/(a.f*a.f) * a.d*a.d.transpose();
00141 return r;
00142 }
|
|
||||||||||||
|
Definition at line 189 of file bg.cpp.
00189 {
00190 BG r = b * a;
00191 return r;
00192 }
|
|
||||||||||||
|
Definition at line 168 of file bg.cpp.
00168 {
00169 BG r;
00170 r.f = a*b.f;
00171 r.d = a*b.d;
00172 r.D = a*b.D;
00173 return r;
00174 }
|
|
||||||||||||
|
Definition at line 99 of file bg.cpp.
00099 {
00100 BG r;
00101 r.f = a.f * b.f;
00102 r.d = a.f*b.d + a.d*b.f;
00103 r.D = a.f*b.D + a.d*b.d.transpose() + b.d*a.d.transpose() + a.D*b.f;
00104 return r;
00105 }
|
|
||||||||||||
|
Definition at line 229 of file bg.cpp.
00229 {
00230 a = a * b;
00231 return a;
00232 }
|
|
||||||||||||
|
Definition at line 209 of file bg.cpp.
00209 {
00210 a = a*b;
00211 return a;
00212 }
|
|
||||||||||||
|
Definition at line 85 of file bg.h.
00085 {return b!=a.f;};
|
|
||||||||||||
|
Definition at line 78 of file bg.h.
00078 {return a.f!=b.f;};
|
|
||||||||||||
|
Definition at line 71 of file bg.h.
00071 {return a.f!=b;};
|
|
||||||||||||
|
Definition at line 176 of file bg.cpp.
00176 {
00177 BG r = b + a;
00178 return r;
00179 }
|
|
||||||||||||
|
Definition at line 152 of file bg.cpp.
00152 {
00153 BG r;
00154 r.f = a + b.f;
00155 r.d = b.d;
00156 r.D = b.D;
00157 return r;
00158 }
|
|
||||||||||||
|
Definition at line 83 of file bg.cpp.
00083 {
00084 BG r;
00085 r.f = a.f + b.f;
00086 r.d = a.d + b.d;
00087 r.D = a.D + b.D;
00088 return r;
00089 }
|
|
||||||||||||
|
Definition at line 219 of file bg.cpp.
00219 {
00220 a = a + b;
00221 return a;
00222 }
|
|
||||||||||||
|
Definition at line 199 of file bg.cpp.
00199 {
00200 a = a + b;
00201 return a;
00202 }
|
|
||||||||||||
|
Definition at line 181 of file bg.cpp.
00181 {
00182 BG r;
00183 r.f = a.f - b;
00184 r.d = a.d;
00185 r.D = a.D;
00186 return r;
00187 }
|
|
||||||||||||
|
Definition at line 160 of file bg.cpp.
00160 {
00161 BG r;
00162 r.f = a - b.f;
00163 r.d = -b.d;
00164 r.D = -b.D;
00165 return r;
00166 }
|
|
|
Definition at line 115 of file bg.cpp.
00115 {
00116 BG r;
00117 r.f = -a.f;
00118 r.d = -a.d;
00119 r.D = -a.D;
00120 return r;
00121 }
|
|
||||||||||||
|
Definition at line 91 of file bg.cpp.
00091 {
00092 BG r;
00093 r.f = a.f - b.f;
00094 r.d = a.d - b.d;
00095 r.D = a.D - b.D;
00096 return r;
00097 }
|
|
||||||||||||
|
Definition at line 224 of file bg.cpp.
00224 {
00225 a = a - b;
00226 return a;
00227 }
|
|
||||||||||||
|
Definition at line 204 of file bg.cpp.
00204 {
00205 a = a - b;
00206 return a;
00207 }
|
|
||||||||||||
|
Definition at line 194 of file bg.cpp.
00194 {
00195 BG r = a * (1.0/b);
00196 return r;
00197 }
|
|
||||||||||||
|
Definition at line 107 of file bg.cpp.
00107 {
00108 BG r;
00109 r.f = a/b.f;
00110 r.d = -a/(b.f*b.f) * b.d;
00111 r.D = -a*( 1.0/(b.f*b.f) * b.D - 2.0/(b.f*b.f*b.f)*b.d*b.d.transpose() );
00112 return r;
00113 }
|
|
||||||||||||
|
Definition at line 123 of file bg.cpp.
00123 {
00124 BG r = a * (1.0/b);
00125 return r;
00126 }
|
|
||||||||||||
|
Definition at line 234 of file bg.cpp.
00234 {
00235 a = a / b;
00236 return a;
00237 }
|
|
||||||||||||
|
Definition at line 214 of file bg.cpp.
00214 {
00215 a = a/b;
00216 return a;
00217 }
|
|
||||||||||||
|
Definition at line 81 of file bg.h.
00081 {return b< a.f;};
|
|
||||||||||||
|
Definition at line 74 of file bg.h.
00074 {return a.f< b.f;};
|
|
||||||||||||
|
Definition at line 67 of file bg.h.
00067 {return a.f< b;};
|
|
||||||||||||
|
Definition at line 113 of file bg.h.
00113 {
00114 os << a.f ;
00115 return os;
00116 }
|
|
||||||||||||
|
Definition at line 80 of file bg.h.
00080 {return b<=a.f;};
|
|
||||||||||||
|
Definition at line 73 of file bg.h.
00073 {return a.f<=b.f;};
|
|
||||||||||||
|
Definition at line 66 of file bg.h.
00066 {return a.f<=b;};
|
|
||||||||||||
|
Definition at line 84 of file bg.h.
00084 {return b==a.f;};
|
|
||||||||||||
|
Definition at line 77 of file bg.h.
00077 {return a.f==b.f;};
|
|
||||||||||||
|
Definition at line 70 of file bg.h.
00070 {return a.f==b;};
|
|
||||||||||||
|
Definition at line 83 of file bg.h.
00083 {return b> a.f;};
|
|
||||||||||||
|
Definition at line 76 of file bg.h.
00076 {return a.f> b.f;};
|
|
||||||||||||
|
Definition at line 69 of file bg.h.
00069 {return a.f> b;};
|
|
||||||||||||
|
Definition at line 82 of file bg.h.
00082 {return b>=a.f;};
|
|
||||||||||||
|
Definition at line 75 of file bg.h.
00075 {return a.f>=b.f;};
|
|
||||||||||||
|
Definition at line 68 of file bg.h.
00068 {return a.f>=b;};
|
|
|
Definition at line 128 of file bg.cpp.
00128 {
00129 BG r;
00130 r.f = std::sqrt(a.f);
00131 r.d = 0.5/std::sqrt(a.f)*a.d;
00132 r.D = 0.5*( 1.0/std::sqrt(a.f)*a.D - 0.5/std::sqrt(a.f*a.f*a.f) * a.d*a.d.transpose() );
00133 return r;
00134 }
|
|
|
Definition at line 38 of file bg.h. Referenced by BG(), display(), matvec::exp(), initialize(), matvec::log(), NRupdate(), matvec::operator *(), matvec::operator+(), matvec::operator-(), matvec::operator/(), operator=(), and matvec::sqrt(). |
|
|
Definition at line 37 of file bg.h. Referenced by BG(), display(), matvec::exp(), initialize(), matvec::log(), NRupdate(), matvec::operator *(), matvec::operator+(), matvec::operator-(), matvec::operator/(), operator=(), and matvec::sqrt(). |
|
|
|
|
|
Definition at line 36 of file bg.h. Referenced by BG(), matvec::SparseBGMatrix::dense(), display(), matvec::exp(), matvec::gs_ioc(), matvec::BGMatrix::gs_solve(), initialize(), matvec::log(), matvec::operator *(), matvec::operator+(), matvec::operator-(), matvec::operator/(), operator=(), matvec::SparseBGMatrix::save(), and matvec::sqrt(). |
|
|
Definition at line 30 of file bg.cpp. Referenced by BG(), initialize(), and NRupdate(). |
1.2.16