
On Tuesday 10 March 2009 08:23:07 John Maddock wrote:
Download of the zip file from the vault is here:
Is this the latest version? It does not compile for me, since polynomial.hpp uses pow on lines 370 and 372. It needs to include cmath and also needs a "using std::pow;" statement. Second, there are compile errors upon trying to multiply two polynomials together (code attached). I am using boost 1.38.0 with gcc 4.3.2 on Linux x86_64. The errors I get are of the following form: /usr/lib/gcc/x86_64-redhat- linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_algo.h: In function ‘_OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation) [with _IIter = __gnu_cxx::__normal_iterator<FieldElem*, std::vector<FieldElem, std::allocator<FieldElem> > >, _OIter = std::back_insert_iterator<std::vector<std::complex<double>, std::allocator<std::complex<double> > > >, _UnaryOperation = std::pointer_to_unary_function<double, FieldElem>]’: ./boost/polynomial.hpp:378: instantiated from ‘boost::math::tools::polynomial<IntegerType>& boost::math::tools::polynomial<FieldType>::operator*=(const boost::math::tools::polynomial<U>&) [with U = FieldElem, FieldType = FieldElem]’ polytest.cc:130: instantiated from here /usr/lib/gcc/x86_64-redhat- linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_algo.h:4281: error: no match for call to ‘(std::pointer_to_unary_function<double, FieldElem>) (FieldElem&)’ /usr/lib/gcc/x86_64-redhat- linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_function.h:424: note: candidates are: _Result std::pointer_to_unary_function<_Arg, _Result>::operator()(_Arg) const [with _Arg = double, _Result = FieldElem] Regards, Ravi