2 #ifndef LSST_JOINTCAL_TRIPLETLIST_H
3 #define LSST_JOINTCAL_TRIPLETLIST_H
5 #include "Eigen/Sparse"
12 typedef Eigen::Triplet<double>
Trip;
18 unsigned _nextFreeIndex;
21 TripletList(
int count) : _nextFreeIndex(0) { reserve(count); };
23 void addTriplet(
const unsigned i,
const unsigned j,
double val) { push_back(
Trip(i, j, val)); }
32 #endif // LSST_JOINTCAL_TRIPLETLIST_H
void addTriplet(const unsigned i, const unsigned j, double val)
unsigned getNextFreeIndex() const
void setNextFreeIndex(unsigned index)
Eigen::Triplet< double > Trip