libigl v2.5.0
Loading...
Searching...
No Matches
sortrows.h File Reference
#include "igl_inline.h"
#include <vector>
#include <Eigen/Core>
#include "sortrows.cpp"

Go to the source code of this file.

Namespaces

namespace  igl

Functions

template<typename DerivedX, typename DerivedY, typename DerivedI>
void igl::sortrows (const Eigen::DenseBase< DerivedX > &X, const bool ascending, Eigen::PlainObjectBase< DerivedY > &Y, Eigen::PlainObjectBase< DerivedI > &I)
 Act like matlab's [Y,I] = sortrows(X).
template<typename DerivedX, typename DerivedY>
void igl::sortrows (const Eigen::DenseBase< DerivedX > &X, const bool ascending, Eigen::PlainObjectBase< DerivedY > &Y)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.