|
ppforest2 v0.1.0
Projection Pursuit Decision Trees and Random Forests
|
Go to the source code of this file.
Macros | |
| #define | ASSERT_APPROX(a, b) |
| Test helper macros for Eigen comparisons and literal construction. | |
| #define | ASSERT_COLLINEAR(a, b) |
| Assert that two Eigen vectors are collinear (parallel or anti-parallel). | |
| #define | ASSERT_EQ_DATA(a, b) |
| Assert that two Eigen objects have identical size and values. | |
| #define | MAT(T, ROWS, ...) |
| #define | VEC(T, ...) |
Functions | |
| constexpr int | rows (int n) |
| #define ASSERT_APPROX | ( | a, | |
| b ) |
Test helper macros for Eigen comparisons and literal construction.
Provides GTest assertion macros for approximate and collinear comparisons, plus VEC/MAT macros that replace Eigen's comma initializer to work around a GCC miscompilation issue.
Assert that two Eigen objects are approximately equal.
| #define ASSERT_COLLINEAR | ( | a, | |
| b ) |
Assert that two Eigen vectors are collinear (parallel or anti-parallel).
| #define ASSERT_EQ_DATA | ( | a, | |
| b ) |
Assert that two Eigen objects have identical size and values.
| #define MAT | ( | T, | |
| ROWS, | |||
| ... ) |
| #define VEC | ( | T, | |
| ... ) |
|
constexpr |