#595 Make matrix type for +=, -= and axpy a template parameter in FieldMatrix
Metadata
Property | Value |
---|---|
Reported by | Carsten Gräser (graeser@math.fu-berlin.de) |
Reported at | Sep 9, 2009 11:31 |
Type | Feature Request |
Version | Git (pre2.4) [autotools] |
Operating System | Unspecified / All |
Description
Making the type of the second matrix for +=, -= and axpy a template parameter (and using iterators instead of [] internally) allows to add other matrices like e.g. ScaledIdentityMatrix without further code and with optimal efficiency.
Although this changes the interface it does neighter change the use with FieldMatrix nor the performance.
However it might change the behaviour if you used a+=b where b has a cast to FieldMatrix.
Edited by Santiago Ospina De Los Ríos