Struct PrecomputationOfValues
-
template<typename NT, typename MT, typename VT>
struct PrecomputationOfValues Among successive calls of this class methods, we may need to pass data from one call to the next, to avoid repeating computations, or to efficiently update values Warning: this struct assists in many methods; perhaps for different methods use different instances
Public Functions
-
inline void resetFlags()
Sets all flags to false.
-
inline void set_mat_size(int const &m)
Public Members
-
bool computed_A = false
These flags indicate whether the corresponding matrices are computed if yes, we can use them and not compute them fro scratch
-
bool computed_C = false
-
bool computed_XY = false
-
MT A
The matrices the method positiveIntersection receives from its previous call if the flag first_positive_intersection is true. Matrix A is also used in coordinateIntersection
-
MT B
-
MT C
-
MT X
-
MT Y
-
VT eigenvector
In method positive_intersect, the distance we are computing corresponds to the minimum positive eigenvalue of a quadratic eigenvalue problem. This will hold the eigenvector for that eigenvalue
-
inline void resetFlags()