9#include <kernel/geometry/index_set.hpp> 
   10#include <kernel/geometry/target_set.hpp> 
   11#include <kernel/geometry/vertex_set.hpp> 
   23      template<
int num_
idx_>
 
   24      void copy_idx(IndexSet<num_idx_>& idx, 
const Index jdx[])
 
   26        Index n = idx.get_num_entities();
 
   28        for(
Index i(0); i < n; ++i)
 
   30          for(
int j(0); j < num_idx_; ++j)
 
   37      template<
int num_
idx_>
 
   38      bool comp_idx(
const IndexSet<num_idx_>& idx, 
const Index jdx[])
 
   40        Index n = idx.get_num_entities();
 
   42        for(
Index i(0); i < n; ++i)
 
   44          for(
int j(0); j < num_idx_; ++j)
 
   46            if(idx[i][j] != jdx[k++])
 
   55      template<
typename VertexSet_>
 
   56      void copy_vtx(VertexSet_& vtx, 
const Real wtx[])
 
   58        Index n = vtx.get_num_vertices();
 
   59        int num_coords = vtx.get_num_coords();
 
   61        for(
Index i(0); i < n; ++i)
 
   63          for(
int j(0); j < num_coords; ++j)
 
   70      template<
typename VertexSet_>
 
   71      bool comp_vtx(
const VertexSet_& vtx, 
const Real wtx[], 
Real tol = 1e-8)
 
   73        Index n = vtx.get_num_vertices();
 
   74        int num_coords = vtx.get_num_coords();
 
   76        for(
Index i(0); i < n; ++i)
 
   78          for(
int j(0); j < num_coords; ++j)
 
   80            if(std::fabs(vtx[i][j] - wtx[k++]) > tol)
 
   89      inline void copy_trg(TargetSet& trg, 
const Index jdx[])
 
   91        Index n = trg.get_num_entities();
 
   92        for(
Index i(0); i < n; ++i)
 
   98      inline bool comp_trg(
const TargetSet& trg, 
const Index jdx[])
 
  100        Index n = trg.get_num_entities();
 
  101        for(
Index i(0); i < n; ++i)
 
  111      template<
typename AttribSet_>
 
  112      void copy_attr(AttribSet_& attr, 
const Real wtx[])
 
  114        Index n = attr.get_num_values();
 
  115        int num_coords = attr.get_dimension();
 
  117        for(
Index i(0); i < n; ++i)
 
  119          for(
int j(0); j < num_coords; ++j, ++k)
 
  126      template<
typename AttribSet_>
 
  127      bool comp_attr(
const AttribSet_& attr, 
const Real wtx[], 
Real tol = 1e-8)
 
  129        Index n = attr.get_num_values();
 
  130        int num_coords = attr.get_dimension();
 
  132        for(
Index i(0); i < n; ++i)
 
  134          for(
int j(0); j < num_coords; ++j, ++k)
 
  136            if(std::fabs(attr(i,j) - wtx[k]) > tol)
 
double Real
Real data type.
std::uint64_t Index
Index data type.