1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-31 11:15:52 +00:00

Added libigl library files (header-only library)

This commit is contained in:
Lukas Matena
2018-09-24 14:16:53 +02:00
parent 9b5c7aadad
commit a4acca24ff
1087 changed files with 118219 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
#ifndef IGL_MAX_H
#define IGL_MAX_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 max
// 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 maximum
// entries
template <typename AType, typename DerivedB, typename DerivedI>
IGL_INLINE void max(
const Eigen::SparseMatrix<AType> & A,
const int dim,
Eigen::PlainObjectBase<DerivedB> & B,
Eigen::PlainObjectBase<DerivedI> & I);
}
#ifndef IGL_STATIC_LIBRARY
# include "max.cpp"
#endif
#endif