@@ -368,8 +368,8 @@ std::pair<std::vector<T>, std::array<std::size_t, 2>> compute_transformation(
368
368
std::array<std::vector<mdspan_t <const T, 4 >>, 4 > M,
369
369
mdspan_t <const T, 2 > coeffs, const mdarray_t <T, 2 >& J, T detJ,
370
370
const mdarray_t <T, 2 >& K,
371
- std::function<std::array<T, 3 >(std::span<const T>)> map_point, int degree ,
372
- int tdim, int entity, std::size_t vs, const maps::type map_type,
371
+ const std::function<std::array<T, 3 >(std::span<const T>)>& map_point,
372
+ int degree, int tdim, int entity, std::size_t vs, const maps::type map_type,
373
373
const polyset::type ptype)
374
374
{
375
375
if (x[tdim].size () == 0 or x[tdim][entity].extent (0 ) == 0 )
@@ -500,9 +500,8 @@ template <std::floating_point T>
500
500
std::map<cell::type, std::pair<std::vector<T>, std::array<std::size_t , 3 >>>
501
501
doftransforms::compute_entity_transformations (
502
502
cell::type cell_type,
503
- std::array<std::vector<md::mdspan<const T, md::dextents<std::size_t , 2 >>>,
504
- 4 >
505
- x,
503
+ const std::array<
504
+ std::vector<md::mdspan<const T, md::dextents<std::size_t , 2 >>>, 4 >& x,
506
505
std::array<std::vector<md::mdspan<const T, md::dextents<std::size_t , 4 >>>,
507
506
4 >
508
507
M,
@@ -540,8 +539,8 @@ template std::map<cell::type,
540
539
std::pair<std::vector<float >, std::array<std::size_t , 3 >>>
541
540
doftransforms::compute_entity_transformations (
542
541
cell::type,
543
- std::array<
544
- std::vector<md::mdspan<const float , md::dextents<std::size_t , 2 >>>, 4 >,
542
+ const std::array<
543
+ std::vector<md::mdspan<const float , md::dextents<std::size_t , 2 >>>, 4 >& ,
545
544
std::array<
546
545
std::vector<md::mdspan<const float , md::dextents<std::size_t , 4 >>>, 4 >,
547
546
md::mdspan<const float , md::dextents<std::size_t , 2 >>, int , std::size_t ,
@@ -551,8 +550,9 @@ template std::map<cell::type,
551
550
std::pair<std::vector<double >, std::array<std::size_t , 3 >>>
552
551
doftransforms::compute_entity_transformations (
553
552
cell::type,
554
- std::array<
555
- std::vector<md::mdspan<const double , md::dextents<std::size_t , 2 >>>, 4 >,
553
+ const std::array<
554
+ std::vector<md::mdspan<const double , md::dextents<std::size_t , 2 >>>,
555
+ 4 >&,
556
556
std::array<
557
557
std::vector<md::mdspan<const double , md::dextents<std::size_t , 4 >>>, 4 >,
558
558
md::mdspan<const double , md::dextents<std::size_t , 2 >>, int , std::size_t ,
0 commit comments