mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-24 17:21:11 -06:00
Merged branch 'dev_native' into lm_sla_supports_auto
Added igl library files
This commit is contained in:
commit
7681d00ee5
2865 changed files with 142806 additions and 22325 deletions
28
src/igl/min.h
Normal file
28
src/igl/min.h
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue