Boost logo

Ublas :

From: Gunter Winkler (guwi17_at_[hidden])
Date: 2007-11-27 16:22:45


Am Dienstag, 27. November 2007 01:51 schrieb Ryan Budney:
> * * *
> boost::numeric::ublas::compressed_vector<regina::NLargeInteger>
> vec1(100);
> boost::numeric::ublas::coordinate_vector<regina::NLargeInteger> vec2;
> vec2.assign(vec1);
> * * *
>
>
> On attempting to compile, I get the error message:
>
> /usr/include/boost/numeric/ublas/traits.hpp:89: error: no matching
> function for call to ‘abs(const regina::NRational&)’

This is an old problem. The simplest way to solve it is to provide the
missing functions. Since the original value types were float and double
the scalar_traits<...> classes (cf. traits.hpp) also include abs and
sqrt. If you provide these functions they will be found via ADL.

mfg
Gunter