MCPcopy Create free account
hub / github.com/avaxman/Directional / triplet_comp

Class triplet_comp

external/eigen/test/sparse_basic.cpp:628–633  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

626 // test setFromSortedTriplets / insertFromSortedTriplets
627
628 struct triplet_comp {
629 inline bool operator()(const TripletType& a, const TripletType& b) {
630 return SparseMatrixType::IsRowMajor ? ((a.row() != b.row()) ? (a.row() < b.row()) : (a.col() < b.col()))
631 : ((a.col() != b.col()) ? (a.col() < b.col()) : (a.row() < b.row()));
632 }
633 };
634
635 // stable_sort is only necessary when the reduction functor is dependent on the order of the triplets
636 // this is the case with refMat_last

Callers 1

sparse_basicFunction · 0.85

Calls

no outgoing calls

Tested by 1

sparse_basicFunction · 0.68