Skip to content

#954 DenseVector operator * , operator -=, etc. are missing a template parameter.

Metadata

Property Value
Reported by Robert K (robertk@posteo.org)
Reported at Sep 19, 2011 10:48
Type Bug Report
Version Git (pre2.4) [autotools]
Operating System Unspecified / All
Last edited by Andreas Dedner (A.S.Dedner@warwick.ac.uk)
Last edited at Nov 26, 2011 10:59
Closed by Andreas Dedner (A.S.Dedner@warwick.ac.uk)
Closed at Nov 26, 2011 10:59
Closed in version Unknown
Resolution Implemented
Comment

Description

The methods on DenseVector like operator-= (const DenseVector& y) value_type operator* (const DenseVector& y) const, an all other methods with this signature are missing a template parameter.

The correct code should be:

template value_type operator* (const DenseVector& y) const;

otherwise the following code does not compile:

FieldVector< double, 3> w(1); DynamicVector< double > v (3, 1 );

double res = w * v ;