22 int const space_dimension,
int const mesh_dimension,
23 std::vector<Element*>
const& elements)
25 std::vector<Eigen::MatrixXd> element_rotation_matrices;
26 element_rotation_matrices.reserve(elements.size());
27 for (
auto const*
const element : elements)
29 int const element_dimension =
static_cast<int>(element->getDimension());
30 if (element_dimension == space_dimension)
32 element_rotation_matrices.emplace_back(Eigen::MatrixXd::Identity(
33 element_dimension, element_dimension));
38 *element, mesh_dimension);
40 element_rotation_matrices.emplace_back(
42 space_dimension, element_dimension));
46 return element_rotation_matrices;