mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-08 07:47:43 -07:00
Move many third-party components' source codes from the src folder to a new folder called deps_src. The goal is to make the code structure clearer and easier to navigate.
28 lines
703 B
C++
28 lines
703 B
C++
#ifndef IGL_MIN_H
|
|
#define IGL_MIN_H
|
|
#include "igl_inline.h"
|
|
#include <Eigen/Core>
|
|
#include <Eigen/Sparse>
|
|
namespace igl
|
|
{
|
|
// Inputs:
|
|
// X m by n matrix
|
|
// dim dimension along which to take min
|
|
// Outputs:
|
|
// Y n-long vector (if dim == 1)
|
|
// or
|
|
// Y m-long vector (if dim == 2)
|
|
// I vector the same size as Y containing the indices along dim of minimum
|
|
// entries
|
|
template <typename AType, typename DerivedB, typename DerivedI>
|
|
IGL_INLINE void min(
|
|
const Eigen::SparseMatrix<AType> & A,
|
|
const int dim,
|
|
Eigen::PlainObjectBase<DerivedB> & B,
|
|
Eigen::PlainObjectBase<DerivedI> & I);
|
|
}
|
|
#ifndef IGL_STATIC_LIBRARY
|
|
# include "min.cpp"
|
|
#endif
|
|
#endif
|
|
|