Skip to content
Snippets Groups Projects
Commit 78ff645c authored by Mark OLESEN's avatar Mark OLESEN Committed by Kutalmış Berçin
Browse files

ENH: improvements, modernization of matrix containers (#1220)

- add iterators, begin/end, empty() methods for STL behaviour.
  Use standard algorithms where possible
     * std::fill, std::copy
     * std::min_element, std::max_element

- access methods consistent with other OpenFOAM containers:
     * data(), cdata(), uniform()

- Use ListPolicy to impose output line breaks

- Can recover matrix storage for re-use elsewhere.
  For example, to populate values with 2D i-j addressing and later
  release it as flat linear storage.

- added minMax() function for Matrix

- additional inplace +=, -=, *=, /= operations

Matrices are not yet move constructable, pending a use case.
parent e9fbc592
No related branches found
No related tags found
No related merge requests found
Showing
with 924 additions and 639 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment