]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Expose static size and value type
authorJulius Witte <julius.witte@iwr.uni-heidelberg.de>
Wed, 25 Sep 2019 16:28:43 +0000 (12:28 -0400)
committerJulius Witte <julius.witte@iwr.uni-heidelberg.de>
Wed, 25 Sep 2019 16:28:43 +0000 (12:28 -0400)
include/deal.II/lac/tensor_product_matrix.h

index ffab3f43be54864b8276904bf93112017220b1e3..8c9877bd615b434e366837f38982ae10a4819baa 100644 (file)
@@ -74,6 +74,17 @@ template <int dim, typename Number, int size = -1>
 class TensorProductMatrixSymmetricSumBase
 {
 public:
+  /**
+   * Type of matrix entries. This alias is analogous to <tt>value_type</tt>
+   * 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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.