#623 Make memory layout of class Matrix contiguous
Metadata
Property | Value |
---|---|
Reported by | Oliver Sander (oliver.sander@tu-dresden.de) |
Reported at | Oct 7, 2009 09:02 |
Type | Feature Request |
Version | Git (pre2.4) [autotools] |
Operating System | Unspecified / All |
Last edited by | Oliver Sander (oliver.sander@tu-dresden.de) |
Last edited at | Apr 5, 2010 08:12 |
Closed by | Oliver Sander (oliver.sander@tu-dresden.de) |
Closed at | Apr 5, 2010 08:12 |
Closed in version | Unknown |
Resolution | Implemented |
Comment | Since dune-istl revision 1193, a VariableBlockVector is used to store the data. This is almost as good as it can get. |
Description
The class Matrix (a dense dynamic istl matrix) is currently implemented as a BlockVector of BlockVectors. Hence some memory is wasted and the rows may not be adjacent in memory. Since Matrix is frequently used for local element matrices, which are performance critical, this may have a noticeable impact. A better implementation would use a contiguous chunk of memory.