123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- #ifndef IGL_SLICE_H
- #define IGL_SLICE_H
- #include "igl_inline.h"
- #include <Eigen/Sparse>
- namespace igl
- {
-
-
-
-
-
-
-
-
-
-
-
- template <
- typename TX,
- typename TY>
- IGL_INLINE void slice(
- const Eigen::SparseMatrix<TX>& X,
- const Eigen::Matrix<int,Eigen::Dynamic,1> & R,
- const Eigen::Matrix<int,Eigen::Dynamic,1> & C,
- Eigen::SparseMatrix<TY>& Y);
-
-
-
-
-
-
- template <
- typename MatX,
- typename DerivedR,
- typename MatY>
- IGL_INLINE void slice(
- const MatX& X,
- const Eigen::DenseBase<DerivedR> & R,
- const int dim,
- MatY& Y);
- template <
- typename DerivedX,
- typename DerivedR,
- typename DerivedC,
- typename DerivedY>
- IGL_INLINE void slice(
- const Eigen::DenseBase<DerivedX> & X,
- const Eigen::DenseBase<DerivedR> & R,
- const Eigen::DenseBase<DerivedC> & C,
- Eigen::PlainObjectBase<DerivedY> & Y);
- template <typename DerivedX, typename DerivedY>
- IGL_INLINE void slice(
- const Eigen::DenseBase<DerivedX> & X,
- const Eigen::Matrix<int,Eigen::Dynamic,1> & R,
- Eigen::PlainObjectBase<DerivedY> & Y);
-
-
-
-
-
-
- template <typename DerivedX>
- IGL_INLINE DerivedX slice(
- const Eigen::DenseBase<DerivedX> & X,
- const Eigen::Matrix<int,Eigen::Dynamic,1> & R);
- template <typename DerivedX>
- IGL_INLINE DerivedX slice(
- const Eigen::DenseBase<DerivedX>& X,
- const Eigen::Matrix<int,Eigen::Dynamic,1> & R,
- const int dim);
- }
- #ifndef IGL_STATIC_LIBRARY
- # include "slice.cpp"
- #endif
- #endif
|