[dune-functions] SizePrefix

Oliver Sander oliver.sander at tu-dresden.de
Fri Oct 2 20:38:08 CEST 2015


Hi Carsten,

> The problem would no longer exist, if we require the type of a size
> prefix to be a ReservedVector<size_type,k> where k is a template
> parameter of the size(...) method. For convince we could still
> export a fixed SizePrefix type which is always large enough to
> traverse the whole index tree.
> 
> Does anyone see potential problems with this solution?

I don't currently see a problem with this, but I wonder whether std::array
would be noticeably faster in the many situations where the multi-index
size is fixed.

How about requiring ReservedVector for the time being, until somebody
comes up with a convincing use-case for an alternative?

Best,
Oliver

> 
> Best,
> Carsten
> 
> 
> 
> _______________________________________________
> dune-functions mailing list
> dune-functions at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune-functions
> 





More information about the dune-functions mailing list