Martin Šach 21116995d7 Refactor CMake and improve #includes.
* 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.
2024-07-08 15:36:46 +02:00

29 lines
748 B
C++

#ifndef IGL_FIND_ZERO_H
#define IGL_FIND_ZERO_H
#include "igl_inline.h"
#include <Eigen/Core>
#include <Eigen/Sparse>
namespace igl
{
// Find the first zero (whether implicit or explicitly stored) in the
// rows/columns of a matrix.
// Inputs:
// A m by n sparse matrix
// dim dimension along which to check for any (1 or 2)
// Output:
// I n-long vector (if dim == 1) {m means no zeros found}
// or
// I m-long vector (if dim == 2) {n means no zeros found}
//
template <typename AType, typename DerivedI>
IGL_INLINE void find_zero(
const Eigen::SparseMatrix<AType> & A,
const int dim,
Eigen::PlainObjectBase<DerivedI> & I);
}
#ifndef IGL_STATIC_LIBRARY
# include "find_zero.cpp"
#endif
#endif