From e68ca17c4cb6065818102c5cf9459d780ae07bfd Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Fri, 21 Oct 2022 09:29:57 +0200 Subject: [PATCH] TensorProductMatrix: with arbitrary number of lanes --- include/deal.II/lac/tensor_product_matrix.h | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/include/deal.II/lac/tensor_product_matrix.h b/include/deal.II/lac/tensor_product_matrix.h index 86a32dcb26..e7d2fa09bb 100644 --- a/include/deal.II/lac/tensor_product_matrix.h +++ b/include/deal.II/lac/tensor_product_matrix.h @@ -585,16 +585,20 @@ namespace internal - template + template inline void - setup(const std::array>, dim> &mass_matrix, - const std::array>, dim> - & derivative_matrix, - std::array>, dim> &eigenvectors, - std::array>, dim> &eigenvalues) + setup( + const std::array>, dim> + &mass_matrix, + const std::array>, dim> + &derivative_matrix, + std::array>, dim> &eigenvectors, + std::array>, dim> + &eigenvalues) { - const unsigned int n_rows_1d = mass_matrix[0].n_cols(); - constexpr unsigned int macro_size = VectorizedArray::size(); + const unsigned int n_rows_1d = mass_matrix[0].n_cols(); + constexpr unsigned int macro_size = + VectorizedArray::size(); const std::size_t nm_flat_size_max = n_rows_1d * n_rows_1d * macro_size; const std::size_t n_flat_size_max = n_rows_1d * macro_size; -- 2.39.5