[Dune] [#820] Encapsulate scalars of type T in Field<T>

Dune flyspray at dune-project.org
Mon Sep 13 11:57:05 CEST 2010


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#820 - Encapsulate scalars of type T in Field<T>
User who did this - Markus Blatt (mblatt)

----------
@oliver you are right, that should be a solution.

Still I do not think that Field is the method of choice here. I doubt that a traits class is more work than writing a field with all the necessary numeric operators and convertions to other types. Not to mention that most of the published documentation becomes invalid. If something does not compile the error messages have yet another level of template indirection in them.

More importantly it means more work for the user: He/she now has to type StaticMatric<Field<T>,n,m>  instead of just FieldMatrix<T,n,m>. And last but least he/she now has to port all existing code or decipher the error message he gets if he does not.
This not what I as user would want to do. Even less if am just dealing with scalar systems.

I agree that nesting statically sized matrices is a nice feature. But I do not want Field get introduced to accomplish it if there are other more userfriendly ways.
----------

More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=820#comment2143

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.




More information about the Dune mailing list