17 using Vec84 = Vector<int8_t, 4>;
27 const Tuple* data =
reinterpret_cast<const Tuple*
>(v.data());
42 return Tuple(v(0), v(1), v(2), v(3));
47 #if defined WMTK_DISABLE_COMPRESSED_MULTIMESH_TUPLE
55 #if defined WMTK_DISABLE_COMPRESSED_MULTIMESH_TUPLE
64 return std::make_tuple(
77 template <
typename MeshType>
80 const Tuple& source_tuple)
93 return std::tie(map(0), map(1));
99 const Tuple& source_tuple);
102 const Tuple& source_tuple);
105 const Tuple& source_tuple);
108 const Tuple& source_tuple);
111 template <
typename MeshType>
114 const Tuple& source_tuple,
115 const Tuple& target_tuple)
121 map(0) = source_tuple;
122 map(1) = target_tuple;
133 const Tuple& source_tuple,
134 const Tuple& target_tuple);
137 const Tuple& source_tuple,
138 const Tuple& target_tuple);
141 const Tuple& source_tuple,
142 const Tuple& target_tuple);
145 const Tuple& source_tuple,
146 const Tuple& target_tuple);
152 const Tuple& source_tuple,
153 const Tuple& target_tuple)
159 const Mesh& source_mesh,
161 const Tuple& source_tuple)
const attribute::Accessor< T, Mesh, D > create_const_accessor(const attribute::MeshAttributeHandle &handle) const
attribute::Accessor< T, Mesh, D > create_accessor(const attribute::MeshAttributeHandle &handle)
int64_t dimension() const
ConstMapResult< D > const_vector_attribute(const ArgType &t) const
ConstMapResult< D > const_vector_attribute(const Tuple &t) const
MapResult< D > vector_attribute(const Tuple &t)
Eigen::Index dimension() const
Handle that represents attributes for some mesh.
static int8_t local_eid(const Tuple &t)
static int64_t global_cid(const Tuple &t)
static int8_t local_vid(const Tuple &t)
static int8_t local_fid(const Tuple &t)
Vector< int64_t, TUPLE_SIZE > tuple_to_vector(const Tuple &t)
Tuple vector5_to_tuple(const Eigen::Ref< const Vector5l > &v)
Tuple vector2_to_tuple(const Eigen::Ref< const Vector2l > &v)
Vector< int64_t, 2 > tuple_to_vector2(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)
Vector< int64_t, 4 > tuple_to_vector5(const Tuple &t)
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 write_tuple_map_attribute_slow(Mesh &source_mesh, TypedAttributeHandle< int64_t > map_handle, const Tuple &source_tuple, const Tuple &target_tuple)
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