NeoPZ
|
This class implements floating point number associated with a counter of the operations performed with it by type.
(arithmetic, trigonometric, exponencial and logarithmic operations performed with it). Common.
More...
#include <pzreal.h>
Public Member Functions | |
TPZFlopCounter () | |
TPZFlopCounter (const double &val) | |
REAL | val () const |
operator REAL () const | |
bool | operator<= (const REAL &val) const |
bool | operator< (const REAL &val) const |
bool | operator> (const REAL &val) const |
bool | operator>= (const REAL &val) const |
bool | operator== (const REAL &val) const |
TPZFlopCounter | operator* (const TPZFlopCounter &oth) const |
Returns the product with the oth value and increments the counter of the products. More... | |
TPZFlopCounter | operator/ (const TPZFlopCounter &oth) const |
Returns the division between oth value and increments the counter of the divisions. More... | |
TPZFlopCounter | operator* (const REAL &oth) const |
Returns the product with the oth value and increments the counter of the products. More... | |
TPZFlopCounter | operator/ (const double &oth) const |
Returns the division between oth value and increments the counter of the divisions. More... | |
TPZFlopCounter | operator+ (const TPZFlopCounter &oth) const |
Returns the sum with oth value and increments the counter of the sums. More... | |
TPZFlopCounter | operator- (const TPZFlopCounter &oth) const |
Returns the difference with oth value and increments the counter of the sums. More... | |
TPZFlopCounter & | operator+= (const TPZFlopCounter &oth) |
Performs the sum with oth value on own value and increments the counter of the sums. More... | |
TPZFlopCounter & | operator-= (const TPZFlopCounter &oth) |
Performs the diference with oth value on own value and increments the counter of the sums. More... | |
TPZFlopCounter & | operator*= (const TPZFlopCounter &oth) |
Performs the product with oth value on own value and increments the counter of the products. More... | |
TPZFlopCounter & | operator/= (const TPZFlopCounter &oth) |
Performs the division between oth value on own value and increments the counter of the divisions. More... | |
TPZFlopCounter | operator- () const |
Returns value with signal changed of its floating point value and increments the counter of the sums. More... | |
TPZFlopCounter | operator+ () const |
Returns the current floating point value and doesn't increments the counters. More... | |
bool | operator< (const TPZFlopCounter &sec) const |
Compares the values and doesn't increments the counters. More... | |
bool | operator> (const TPZFlopCounter &sec) const |
Compares the values and doesn't increments the counters. More... | |
bool | operator<= (const TPZFlopCounter &sec) const |
Compares the values and doesn't increments the counters. More... | |
bool | operator>= (const TPZFlopCounter &sec) const |
Compares the values and doesn't increments the counters. More... | |
bool | operator== (const TPZFlopCounter &sec) const |
Compares the values and doesn't increments the counters. More... | |
bool | operator!= (const TPZFlopCounter &sec) const |
Compares the values and doesn't increments the counters. More... | |
Public Attributes | |
REAL | fVal |
Floating point value. More... | |
Static Public Attributes | |
static TPZCounter | gCount |
Containts the counter vector by operation performed. More... | |
Friends | |
TPZFlopCounter | sqrt (const TPZFlopCounter &orig) |
Returns the square root of the value and increments the counter of the square root. More... | |
TPZFlopCounter | pow (const TPZFlopCounter &orig, const TPZFlopCounter &xp) |
Returns the power and increments the counter of the power. More... | |
TPZFlopCounter | fabsFlop (const TPZFlopCounter &orig) |
Returns the absolute value and doesn't increments the counters. More... | |
REAL | fabs (const TPZFlopCounter &orig) |
Returns the absolute value as REAL and doesn't increments the counters. More... | |
TPZFlopCounter | acos (const TPZFlopCounter &orig) |
Returns the arc cosine in radians and increments the counter of the Arc Cosine. More... | |
TPZFlopCounter | cos (const TPZFlopCounter &orig) |
Returns the cosine in radians and increments the counter of the Cosine. More... | |
TPZFlopCounter | asin (const TPZFlopCounter &orig) |
Returns the arc sine in radians and increments the counter of the Arc Sine. More... | |
TPZFlopCounter | sin (const TPZFlopCounter &orig) |
Returns the sine in radians and increments the counter of the sine. More... | |
TPZFlopCounter | atan (const TPZFlopCounter &orig) |
Returns the arc tangent in radians and increments the counter of the Arc Tangent. More... | |
TPZFlopCounter | atan2 (const TPZFlopCounter &val1, const TPZFlopCounter &val2) |
Returns the arc tangent in radians and increments the counter of the Arc Tangent. ATAN2 returns the arc tangent of x(val1) and y(val2) coordinates as an angle expressed in radians. More... | |
TPZFlopCounter | exp (const TPZFlopCounter &val) |
Returns the exponencial and increments the counter of the Exponencial. More... | |
TPZFlopCounter | log (const TPZFlopCounter &val) |
Returns the natural logarithm and increment the counter of the logarithm. More... | |
TPZFlopCounter | log10 (const TPZFlopCounter &val) |
Returns the decimal logarithm and increment the counter of the logarithm. More... | |
This class implements floating point number associated with a counter of the operations performed with it by type.
(arithmetic, trigonometric, exponencial and logarithmic operations performed with it). Common.
By modifying the definition of the type of REAL, the number of floating point operations can be counted.
To modify you need to define "REALpzfpcounter": #define REALpzfpcounter .
|
inline |
|
inline |
|
inline |
Returns the product with the oth value and increments the counter of the products.
Definition at line 311 of file pzreal.h.
References EProd, TPZCounter::fCount, and fVal.
|
inline |
Returns the product with the oth value and increments the counter of the products.
Definition at line 328 of file pzreal.h.
References EProd, TPZCounter::fCount, and fVal.
|
inline |
Performs the product with oth value on own value and increments the counter of the products.
Definition at line 376 of file pzreal.h.
References EProd, TPZCounter::fCount, and fVal.
|
inline |
Returns the sum with oth value and increments the counter of the sums.
Definition at line 345 of file pzreal.h.
References ESum, TPZCounter::fCount, and fVal.
|
inline |
|
inline |
Performs the sum with oth value on own value and increments the counter of the sums.
Definition at line 362 of file pzreal.h.
References ESum, TPZCounter::fCount, and fVal.
|
inline |
Returns the difference with oth value and increments the counter of the sums.
Definition at line 354 of file pzreal.h.
References ESum, TPZCounter::fCount, and fVal.
|
inline |
Returns value with signal changed of its floating point value and increments the counter of the sums.
Definition at line 390 of file pzreal.h.
References ESum, TPZCounter::fCount, and fVal.
|
inline |
Performs the diference with oth value on own value and increments the counter of the sums.
Definition at line 369 of file pzreal.h.
References ESum, TPZCounter::fCount, and fVal.
|
inline |
Returns the division between oth value and increments the counter of the divisions.
Definition at line 319 of file pzreal.h.
References EDiv, TPZCounter::fCount, and fVal.
|
inline |
Returns the division between oth value and increments the counter of the divisions.
Definition at line 336 of file pzreal.h.
References EDiv, TPZCounter::fCount, and fVal.
|
inline |
Performs the division between oth value on own value and increments the counter of the divisions.
Definition at line 383 of file pzreal.h.
References EDiv, TPZCounter::fCount, and fVal.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
REAL TPZFlopCounter::fVal |
Floating point value.
Definition at line 267 of file pzreal.h.
Referenced by acos(), asin(), atan(), atan2(), cos(), exp(), fabs(), fabsFlop(), log(), log10(), operator!=(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator<(), operator<<(), operator<=(), operator==(), operator>(), operator>=(), operator>>(), pow(), sin(), and sqrt().
|
static |