Skip to content

#745 Specialization of FieldMatrix for n=m=1 has wrong method parameter types for mult methods.

Metadata

Property Value
Reported by Robert K (robertk@posteo.org)
Reported at Feb 26, 2010 10:48
Type Bug Report
Version Git (pre2.4) [autotools]
Operating System Unspecified / All
Last edited by Christian Engwer (christi@conan.iwr.uni-heidelberg.de)
Last edited at Mar 23, 2010 14:27
Closed by Christian Engwer (christi@conan.iwr.uni-heidelberg.de)
Closed at Mar 23, 2010 14:27
Closed in version 2.0
Resolution Fixed
Comment and merged

Description

Example: The normal FieldMatrix class has a mult method with the following parameters:

//! y = A x
template<class X, class Y>
void mv (const X& x, Y& y) const;

In the specialization of this class for n=m=1 this method reads:

void mv (const FieldVector<K,1>& x, FieldVector<K,1>& y) const;

thus being completly wrong when types different to FieldVector are used in an generic code. These method in FieldMatrix<K,1,1> should have the same template parameter as the normal FieldMatrix class.