|
@@ -64,12 +64,12 @@ IGL_INLINE void igl::slice(
|
|
|
Y = Eigen::SparseMatrix<T>(dyn_Y);
|
|
|
}
|
|
|
|
|
|
-template <typename T, const int W, const int H>
|
|
|
+template <typename DerivedX>
|
|
|
IGL_INLINE void igl::slice(
|
|
|
- const Eigen::Matrix<T,W,H> & X,
|
|
|
+ const Eigen::PlainObjectBase<DerivedX> & X,
|
|
|
const Eigen::Matrix<int,Eigen::Dynamic,1> & R,
|
|
|
const Eigen::Matrix<int,Eigen::Dynamic,1> & C,
|
|
|
- Eigen::Matrix<T,W,H> & Y)
|
|
|
+ Eigen::PlainObjectBase<DerivedX> & Y)
|
|
|
{
|
|
|
int xm = X.rows();
|
|
|
int xn = X.cols();
|
|
@@ -100,11 +100,11 @@ IGL_INLINE void igl::slice(
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-template <typename T>
|
|
|
+template <typename DerivedX>
|
|
|
IGL_INLINE void igl::slice(
|
|
|
- const Eigen::Matrix<T,Eigen::Dynamic,1> & X,
|
|
|
+ const Eigen::PlainObjectBase<DerivedX> & X,
|
|
|
const Eigen::Matrix<int,Eigen::Dynamic,1> & R,
|
|
|
- Eigen::Matrix<T,Eigen::Dynamic,1> & Y)
|
|
|
+ Eigen::PlainObjectBase<DerivedX> & Y)
|
|
|
{
|
|
|
// phony column indices
|
|
|
Eigen::Matrix<int,Eigen::Dynamic,1> C;
|
|
@@ -115,4 +115,14 @@ IGL_INLINE void igl::slice(
|
|
|
|
|
|
#ifndef IGL_HEADER_ONLY
|
|
|
// Explicit template specialization
|
|
|
+// generated by autoexplicit.sh
|
|
|
+template void igl::slice<Eigen::Matrix<int, -1, 1, 0, -1, 1> >(Eigen::PlainObjectBase<Eigen::Matrix<int, -1, 1, 0, -1, 1> > const&, Eigen::Matrix<int, -1, 1, 0, -1, 1> const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, 1, 0, -1, 1> >&);
|
|
|
+// generated by autoexplicit.sh
|
|
|
+template void igl::slice<Eigen::Matrix<float, -1, 1, 0, -1, 1> >(Eigen::PlainObjectBase<Eigen::Matrix<float, -1, 1, 0, -1, 1> > const&, Eigen::Matrix<int, -1, 1, 0, -1, 1> const&, Eigen::PlainObjectBase<Eigen::Matrix<float, -1, 1, 0, -1, 1> >&);
|
|
|
+// generated by autoexplicit.sh
|
|
|
+template void igl::slice<Eigen::Matrix<double, -1, -1, 0, -1, -1> >(Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, Eigen::Matrix<int, -1, 1, 0, -1, 1> const&, Eigen::Matrix<int, -1, 1, 0, -1, 1> const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> >&);
|
|
|
+// generated by autoexplicit.sh
|
|
|
+template void igl::slice<Eigen::Matrix<float, -1, -1, 0, -1, -1> >(Eigen::PlainObjectBase<Eigen::Matrix<float, -1, -1, 0, -1, -1> > const&, Eigen::Matrix<int, -1, 1, 0, -1, 1> const&, Eigen::Matrix<int, -1, 1, 0, -1, 1> const&, Eigen::PlainObjectBase<Eigen::Matrix<float, -1, -1, 0, -1, -1> >&);
|
|
|
+// generated by autoexplicit.sh
|
|
|
+template void igl::slice<double>(Eigen::SparseMatrix<double, 0, int> const&, Eigen::Matrix<int, -1, 1, 0, -1, 1> const&, Eigen::Matrix<int, -1, 1, 0, -1, 1> const&, Eigen::SparseMatrix<double, 0, int>&);
|
|
|
#endif
|