]> https://gitweb.dealii.org/ - dealii.git/commit
Introduce an ndarray type alias
authorMatthias Maier <tamiko@43-1.org>
Sat, 13 Feb 2021 19:35:04 +0000 (13:35 -0600)
committerMatthias Maier <tamiko@43-1.org>
Sat, 20 Feb 2021 00:43:53 +0000 (18:43 -0600)
commitbc5a7e0303ec5f880d3b4d52fbc4971e1ba03663
tree341482c146e3b0c36fec9cc9a4ff42e2b163f72c
parent06a25dd46b7e30ab4a44250a1a089ae872a88814
Introduce an ndarray type alias

The ndarray type alias models an multidimensional array. It has a
variable number of template arguments denoting the size of each index
that get internally converted to stacked std::arrays. For example:

    dealii::ndarray<double, 1, 2, 3, 4> my_array

is an alias for the following construct:

    std::array<std::array<std::array<std::array<double, 4>, 3>, 2>, 1>
include/deal.II/base/ndarray.h [new file with mode: 0644]

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.