#include "for_each.h" template IGL_INLINE void igl::for_each( const Eigen::SparseMatrix & A, const Func & func) { // Can **not** use parallel for because this must be _in order_ // Iterate over outside for(int k=0; k::InnerIterator it (A,k); it; ++it) { func(it.row(),it.col(),it.value()); } } } template IGL_INLINE void igl::for_each( const Eigen::DenseBase & A, const Func & func) { // Can **not** use parallel for because this must be _in order_ if(A.IsRowMajor) { for(typename DerivedA::Index i = 0;i