8#ifndef IGL_INDEXCOMPARISON_H
9#define IGL_INDEXCOMPARISON_H
74 const int cols =
mat.cols();
76 for(
int j = 0;j<cols;j++)
81 }
else if(
mat(a,j) <
mat(b,j))
98 const int cols =
mat.cols();
100 for(
int j = 0;j<cols;j++)
Comparison struct for use with functions like std::sort.
Definition IndexComparison.h:47
const int & j
Definition IndexComparison.h:65
bool operator()(const size_t a, const size_t b) const
Definition IndexComparison.h:53
const T & mat
Definition IndexComparison.h:63
IndexDimLessThan(const T &mat, const int &dim, const int &j)
Definition IndexComparison.h:48
const int & dim
Definition IndexComparison.h:64
Comparison struct used by unique.
Definition IndexComparison.h:25
IndexEquals(const T arr)
Definition IndexComparison.h:26
bool operator()(const size_t a, const size_t b) const
Definition IndexComparison.h:27
const T arr
Definition IndexComparison.h:31
Comparison struct used by sort http://bytes.com/topic/c/answers/132045-sort-get-index.
Definition IndexComparison.h:14
bool operator()(const size_t a, const size_t b) const
Definition IndexComparison.h:16
const T arr
Definition IndexComparison.h:20
IndexLessThan(const T arr)
Definition IndexComparison.h:15
Comparison struct for use with functions like std::sort.
Definition IndexComparison.h:94
const T & mat
Definition IndexComparison.h:109
bool operator()(const size_t a, const size_t b) const
Definition IndexComparison.h:96
IndexRowEquals(const T &mat)
Definition IndexComparison.h:95
Comparison struct For use with functions like std::sort.
Definition IndexComparison.h:70
bool operator()(const size_t a, const size_t b) const
Definition IndexComparison.h:72
const T & mat
Definition IndexComparison.h:89
IndexRowLessThan(const T &mat)
Definition IndexComparison.h:71
Comparison struct for vectors for use with functions like std::sort.
Definition IndexComparison.h:36
bool operator()(const size_t a, const size_t b) const
Definition IndexComparison.h:38
const T & vec
Definition IndexComparison.h:42
IndexVectorLessThan(const T &vec)
Definition IndexComparison.h:37