libigl v2.5.0
Loading...
Searching...
No Matches
for_each.h File Reference
#include "igl_inline.h"
#include <Eigen/Core>
#include <Eigen/Sparse>

Go to the source code of this file.

Namespaces

namespace  igl
 

Functions

template<typename AType , typename Func >
void igl::for_each (const Eigen::SparseMatrix< AType > &A, const Func &func)
 FOR_EACH Call a given function for each non-zero (i.e., explicit value might actually be ==0) in a Sparse Matrix A in order (of storage).
 
template<typename DerivedA , typename Func >
void igl::for_each (const Eigen::DenseBase< DerivedA > &A, const Func &func)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.