#include <cmath>
#include <cfloat>
#include <climits>
#include <plearn/base/plerror.h>
Include dependency graph for pl_math.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Namespaces | |
namespace | PLearn |
Defines | |
#define | REAL_MAX DBL_MAX |
#define | MISSING_VALUE (plearn_nan.d) |
Quiet NaN (float pattern). | |
#define | MIN(a, b) ((a)<(b)?(a):(b)) |
Deprecated, use std::min and std::max instead. | |
#define | MAX(a, b) ((a)>(b)?(a):(b)) |
#define | SIGN(a) ((a)>=0?1:-1) |
#define | ABS(x) ((x)>0 ?(x) :-(x)) |
#define | random() rand() |
#define | Pi 3.141592653589793 |
#define | Log2Pi 1.837877066409 |
#define | LOG_2 0.693147180559945 |
#define | LOG_INIT -FLT_MAX |
#define | MINUS_LOG_THRESHOLD -18.42 |
#define | TANHTABLESIZE 5000 |
#define | MAXTANHX 10. |
#define | DOUBLE_TO_INT(in, out) out = int(in) |
#define | FSWAP(a, b) do {real _c; _c = *(a); *(a) = *(b); *(b) = _c;} while(0) |
#define | FLOAT_THRESHOLD 0.00001 |
#define | FEQUAL(a, b) (FABS((a)-(b))<FLOAT_THRESHOLD) |
|
|
|
Definition at line 160 of file pl_math.h. Referenced by PLearn::fasttanh(). |
|
Definition at line 255 of file pl_math.h. Referenced by PLearn::inverse_sigmoid(), and PLearn::logsub(). |
|
|
|
|
|
|
|
Definition at line 105 of file pl_math.h. Referenced by PLearn::logtwo(), and PLearn::safeflog2(). |
|
Definition at line 106 of file pl_math.h. Referenced by PLearn::logadd(). |
|
|
Definition at line 138 of file pl_math.h. Referenced by PLearn::fasttanh(), and PLearn::PLMathInitializer::PLMathInitializer(). |
|
Deprecated, use std::min and std::max instead.
Definition at line 87 of file pl_math.h. Referenced by PLearn::LiftStatsCollector::computeLiftMax(), PLearn::displayHistogram(), PLearn::eigenSparseNonSymmMat(), PLearn::eigenSparseSymmMat(), PLearn::LiftStatsIterator::finish(), PLearn::FinancePreprocVMatrix::getNewRow(), PLearn::VarArray::maxUpdate(), PLearn::min(), PLearn::RGBImageVMatrix::RGBImageVMatrix(), PLearn::RGBImageVMatrix::setImage(), and PLearn::RGBImage::shrinkToIntersection(). |
|
Definition at line 107 of file pl_math.h. Referenced by PLearn::logadd(), and PLearn::logsub(). |
|
|
|
|
|
|
|
|
|
Definition at line 137 of file pl_math.h. Referenced by PLearn::fasttanh(), and PLearn::PLMathInitializer::PLMathInitializer(). |