Skip to content
Snippets Groups Projects
Commit dfcfb6d5 authored by Oliver Sander's avatar Oliver Sander
Browse files

Remove the 'block' array

This array was a left-over from the VariableBlockVector class.  In short,
it stores the length of each matrix row.  Of course that is redundant,
because all rows in a dense matrix have the same length.

This patch makes the class allocate less memory, and use the known row
size to compute the offsets into the data array.  In principle, the code
becomes faster by this, but I am not convinced that the effect will be
measurable.

Still, even without measurable speedup: this patch is an improvement,
because it makes the code simpler.
parent 60bd14d0
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment