#ifndef IGL_MIN_H #define IGL_MIN_H #include "igl_inline.h" #include #include namespace igl { /// Compute the minimum along dimension dim of a matrix X /// /// @param[in] X m by n matrix /// @param[in] dim dimension along which to take min /// @param[out] Y /// n-long vector (if dim == 1) /// Y m-long vector (if dim == 2) /// @param[out] I vector the same size as Y containing the indices along dim of minimum /// entries template IGL_INLINE void min( const Eigen::SparseMatrix & A, const int dim, Eigen::PlainObjectBase & B, Eigen::PlainObjectBase & I); /// \overload template IGL_INLINE void min( const Eigen::DenseBase & X, const int dim, Eigen::PlainObjectBase & Y, Eigen::PlainObjectBase & I); } #ifndef IGL_STATIC_LIBRARY # include "min.cpp" #endif #endif