|
Ublas : |
Subject: [ublas] nrm2 compile error
From: Kraus Philipp (philipp.kraus_at_[hidden])
Date: 2010-12-16 17:25:22
Hello,
I have create a little program for checking something:
#include <boost/numeric/ublas/vector.hpp>
#include <boost/numeric/bindings/blas.hpp>
#include <boost/numeric/bindings/ublas/vector_proxy.hpp>
namespace ublas = boost::numeric::ublas;
namespace blas = boost::numeric::bindings::blas;
int main(int argc, char* argv[]) {
ublas::vector<double> y(10,1);
std::cout << blas::nrm2(y) << std::endl;
return EXIT_SUCCESS;
}
The compiler create this errors:
numeric_bindings/boost/numeric/bindings/detail/property_map.hpp: In
instantiation of
boost
::numeric
::bindings::detail::property_at<boost::numeric::ublas::vector<double,
boost::numeric::ublas::unbounded_array<double, std::allocator<double>
> >, boost::numeric::bindings::tag::value_type>:
numeric_bindings/boost/numeric/bindings/value_type.hpp:20:
instantiated from
boost
::numeric::bindings::value_type<boost::numeric::ublas::vector<double,
boost::numeric::ublas::unbounded_array<double, std::allocator<double>
> > >
main.cpp:56: instantiated from here
numeric_bindings/boost/numeric/bindings/detail/property_map.hpp:30:
error: no type named property_map in struct
boost
::numeric
::bindings
::detail::adaptor_access<boost::numeric::ublas::vector<double,
boost::numeric::ublas::unbounded_array<double, std::allocator<double>
> >, void>
main.cpp: In function int main(int, char**):
main.cpp:56: error: no matching function for call to
nrm2(boost::numeric::ublas::vector<double,
boost::numeric::ublas::unbounded_array<double, std::allocator<double>
> >&)
I try to do a new checkout of the svn version of the numerical
bindings, but it creates the errors.
Can anyone help me please? Thanks a lot
Phil