6 #if defined WMTK_DISABLE_COMPRESSED_MULTIMESH_TUPLE
7 constexpr
static int64_t TUPLE_SIZE = 4;
8 constexpr
static int64_t GLOBAL_ID_INDEX = 3;
10 constexpr
static int64_t TUPLE_SIZE = 2;
11 constexpr
static int64_t GLOBAL_ID_INDEX = 0;
13 constexpr
static int64_t DEFAULT_TUPLES_VALUES = -1;
14 constexpr
static int64_t TWO_TUPLE_SIZE = TUPLE_SIZE * 2;
22 std::tuple<Tuple, Tuple>
vectors_to_tuples(
const Eigen::Ref<const TwoTupleVector>& v);
26 template <
typename MeshType>
29 const Tuple& source_tuple,
30 const Tuple& target_tuple);
32 template <
typename MeshType>
35 const Tuple& source_tuple);
38 template <
typename MeshA,
typename MeshB>
51 const Tuple& source_tuple,
52 const Tuple& target_tuple);
56 const Mesh& source_mesh,
58 const Tuple& source_tuple);
Handle that represents attributes for some mesh.
Vector< int64_t, TUPLE_SIZE > tuple_to_vector(const Tuple &t)
std::tuple< Tuple, Tuple > vectors_to_tuples(const Eigen::Ref< const TwoTupleVector > &v)
std::tuple< Tuple, Tuple > read_tuple_map_attribute(const wmtk::attribute::Accessor< int64_t, MeshType > &accessor, const Tuple &source_tuple)
TwoTupleVector tuples_to_vectors(const Tuple &a, const Tuple &b)
void write_tuple_map_attribute(wmtk::attribute::Accessor< int64_t, MeshType > &map_accessor, const Tuple &source_tuple, const Tuple &target_tuple)
void symmetric_write_tuple_map_attributes(wmtk::attribute::Accessor< int64_t, MeshA > &a_to_b, wmtk::attribute::Accessor< int64_t, MeshB > &b_to_a, const Tuple &a_tuple, const Tuple &b_tuple)
void write_tuple_map_attribute_slow(Mesh &source_mesh, TypedAttributeHandle< int64_t > map_handle, const Tuple &source_tuple, const Tuple &target_tuple)
Vector< int64_t, TUPLE_SIZE > TupleVector
Vector< int64_t, TWO_TUPLE_SIZE > TwoTupleVector
std::tuple< Tuple, Tuple > read_tuple_map_attribute_slow(const Mesh &source_mesh, TypedAttributeHandle< int64_t > map_handle, const Tuple &source_tuple)
Tuple vector_to_tuple(const Eigen::Ref< const TupleVector > &v)
Eigen::Matrix< T, R, 1 > Vector