mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-18 01:05:55 +08:00

* 1. Remove all global include_directories. * 2. Move 3d party dependencies from src to budled deps if possible. * Unify and enforce one way of including headers: e.g. #include "libslic3r/GCode.hpp" vs #include "GCode.hpp" (always use the "libslic3r/GCode.hpp" option). * Make all dependencies (also header only) a cmake target.
29 lines
703 B
C++
29 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
|
|
|