From: Marc Fehling Date: Tue, 23 Jul 2024 12:27:41 +0000 (+0200) Subject: Fix MSVC not finding an overloaded function. X-Git-Tag: v9.6.0-rc1~3^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=061f603c731d8bcdfe52090a364d02e4d6056b2a;p=dealii.git Fix MSVC not finding an overloaded function. --- diff --git a/include/deal.II/lac/tensor_product_matrix.h b/include/deal.II/lac/tensor_product_matrix.h index f0b0d6fa01..6a5ed3efa2 100644 --- a/include/deal.II/lac/tensor_product_matrix.h +++ b/include/deal.II/lac/tensor_product_matrix.h @@ -649,16 +649,18 @@ namespace internal for (unsigned int vv = 0; vv < macro_size; ++vv) offsets_nm[vv] = nm * vv; - vectorized_transpose_and_store(false, - nm, - &(mass_matrix[dir](0, 0)), - offsets_nm.cbegin(), - mass_matrix_flat.data()); - vectorized_transpose_and_store(false, - nm, - &(derivative_matrix[dir](0, 0)), - offsets_nm.cbegin(), - deriv_matrix_flat.data()); + vectorized_transpose_and_store( + false, + nm, + &(mass_matrix[dir](0, 0)), + offsets_nm.data(), + mass_matrix_flat.data()); + vectorized_transpose_and_store( + false, + nm, + &(derivative_matrix[dir](0, 0)), + offsets_nm.data(), + deriv_matrix_flat.data()); const Number *mass_cbegin = mass_matrix_flat.data(); const Number *deriv_cbegin = deriv_matrix_flat.data(); @@ -677,14 +679,16 @@ namespace internal eigenvectors[dir].reinit(n_rows, n_cols); for (unsigned int vv = 0; vv < macro_size; ++vv) offsets_n[vv] = n_rows * vv; - vectorized_load_and_transpose(n_rows, - eigenvalues_flat.data(), - offsets_n.cbegin(), - eigenvalues[dir].begin()); - vectorized_load_and_transpose(nm, - eigenvectors_flat.data(), - offsets_nm.cbegin(), - &(eigenvectors[dir](0, 0))); + vectorized_load_and_transpose( + n_rows, + eigenvalues_flat.data(), + offsets_n.data(), + eigenvalues[dir].begin()); + vectorized_load_and_transpose( + nm, + eigenvectors_flat.data(), + offsets_nm.data(), + &(eigenvectors[dir](0, 0))); } }