From 123879a9a05d925f04fe3989f59666db6bf19768 Mon Sep 17 00:00:00 2001 From: Julius Witte Date: Wed, 25 Sep 2019 12:28:43 -0400 Subject: [PATCH] Expose static size and value type --- include/deal.II/lac/tensor_product_matrix.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/deal.II/lac/tensor_product_matrix.h b/include/deal.II/lac/tensor_product_matrix.h index ffab3f43be..8c9877bd61 100644 --- a/include/deal.II/lac/tensor_product_matrix.h +++ b/include/deal.II/lac/tensor_product_matrix.h @@ -74,6 +74,17 @@ template class TensorProductMatrixSymmetricSumBase { public: + /** + * Type of matrix entries. This alias is analogous to value_type + * in the standard library containers. + */ + using value_type = Number; + + /** + * Compile-time array lengths given by the template parameter size. + */ + static constexpr int static_size = size; + /** * Return the number of rows of the tensor product matrix * resulting from the Kronecker product of 1D matrices, which is described -- 2.39.5