[Dune] Notification from Dune
Flyspray
dune at hal.iwr.uni-heidelberg.de
Fri Jan 26 16:50:37 CET 2007
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A new Flyspray task has been opened. Details are below.
User who did this: - Carsten Gräser (Carsten)
Attached to Project - Dune
Summary - indicex() method for GeometryType
Task Type - Feature Request
Category - Common
Status - New
Assigned To -
Operating System - All
Severity - Low
Priority - Normal
Reported Version - SVN
Due in Version -
Due Date - Undecided
Details - I suggest to add an index to each GeometryType for the
following reasons:
1)Since indices are only consecutive within one GeometryType, one can
not avoid an GeometryType->something map if you want to associate
Information to an entity. This could be 'map<GeometryType,vector>' or
'map<GeometryType,someIndexOffset>'. But even if the map is small this
is slower then a corresponding 'vector<vector>' or
'vector<someIndexOffset>' approach. Having an index one could use this
faster approach.
2)For the current GeometryTypes this could be computed on the fly by
unsigned int index() const {if (dim_<2) return dim_; return 4*dim_ +
basicType_ - 6;}
3)This improvement might be small in general, but if you do a lot of
index/subindex operations and no or just a few numerical computations
it is significant, especially in combination with FS#246.
More information can be found at the following URL:
http://hal.iwr.uni-heidelberg.de/flyspray/?do=details&id=247
You are receiving this message because you have requested it from the
Flyspray bugtracking system. You can be removed from future
notifications by visiting the URL shown above.
More information about the Dune
mailing list