|
Ublas : |
Subject: Re: [ublas] LAPACK bindings error
From: dmitrypek (dmitrypek_at_[hidden])
Date: 2014-03-24 11:48:11
Thanks for the suggestion. This file is already included. Here is the list
of .h files I am including:
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/numeric/ublas/matrix_proxy.hpp>
#include <boost/numeric/ublas/vector.hpp>
#include <boost/numeric/ublas/vector_proxy.hpp>
#include <boost/numeric/ublas/lu.hpp>
#include <boost/numeric/ublas/triangular.hpp>
#include <boost/numeric/bindings/lapack/driver/gesv.hpp>
#include <boost/numeric/bindings/traits/ublas_matrix.hpp>
Here is the full error message:
^
In file included from
/home/dmitry/zfilter/boost_1_55_0/boost/numeric/bindings/detail/adaptor.hpp:49:0,
from
/home/dmitry/zfilter/boost_1_55_0/boost/numeric/bindings/begin.hpp:12,
from
/home/dmitry/zfilter/boost_1_55_0/boost/numeric/bindings/lapack/driver/gesv.hpp:18,
from /home/dmitry/zfilter/src/tpsdemo/ludecomposition.h:25,
from /home/dmitry/zfilter/src/tpsdemo/spline.cpp:19:
/home/dmitry/zfilter/boost_1_55_0/boost/numeric/bindings/detail/property_map.hpp:
In instantiation of 'struct
boost::numeric::bindings::detail::property_at<boost::numeric::ublas::matrix<double>,
boost::numeric::bindings::tag::value_type>':
/home/dmitry/zfilter/boost_1_55_0/boost/numeric/bindings/value_type.hpp:20:70:
required from 'struct
boost::numeric::bindings::value_type<boost::numeric::ublas::matrix<double>
>'
/home/dmitry/zfilter/boost_1_55_0/boost/numeric/bindings/lapack/driver/gesv.hpp:234:51:
required from 'std::ptrdiff_t
boost::numeric::bindings::lapack::gesv(MatrixA&, VectorIPIV&, MatrixB&)
[with MatrixA = boost::numeric::ublas::matrix<double>; VectorIPIV =
boost::numeric::ublas::permutation_matrix<long unsigned int>; MatrixB =
boost::numeric::ublas::matrix<double>; std::ptrdiff_t = long int]'
/home/dmitry/zfilter/src/tpsdemo/ludecomposition.h:86:23: required from
'int LU_Solve(boost::numeric::ublas::matrix<T>&,
boost::numeric::ublas::matrix<T>&) [with T = double]'
/home/dmitry/zfilter/src/tpsdemo/spline.cpp:110:33: required from here
/home/dmitry/zfilter/boost_1_55_0/boost/numeric/bindings/detail/property_map.hpp:35:85:
error: no type named 'property_map' in 'struct
boost::numeric::bindings::detail::adaptor_access<boost::numeric::ublas::matrix<double>,
void>'
typedef typename mpl::at< typename adaptor_access<T>::property_map,
Key >::type type;
As you can see there seems to be a problem in detail/property_map.hpp
and/or mpl/at.hpp. Do you have any idea what is going on?
Thanks for your help.
Dmitry
On Sat, Mar 22, 2014 at 5:31 AM, Rutger ter Borg-2 [via Boost] <
ml-node+s2283326n4660586h58_at_[hidden]> wrote:
> On 2014-03-21 23:48, dmitrypek wrote:
>
> > Hello,
> >
> > I would like to solve a linear system of equations Ax=b, using LAPACK
> > bindings.
> > I have installed the sandbox package and followed the examples I found
> on
> > the Web.
> > I get the following error when compiling:
> >
> > boost/numeric/bindings/detail/property_map.hpp:30:85:
> > error: no type named 'property_map' in 'struct
> >
> boost::numeric::bindings::detail::adaptor_access<boost::numeric::ublas::matrix<double>,
>
> > void>' typedef typename mpl::at< typename
> adaptor_access<T>::property_map,
> > Key >::type type;
> >
> > I would appreciate any ideas on what I can do.
> > Thanks.
> >
> >
>
> You are missing an include for binding ublas' matrices,
>
> #include <boost/numeric/bindings/ublas/matrix.hpp>
>
> Regards,
>
> Rutger
>
>
>
> _______________________________________________
> ublas mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=4660586&i=0>
> http://lists.boost.org/mailman/listinfo.cgi/ublas
> Sent to: [hidden email]<http://user/SendEmail.jtp?type=node&node=4660586&i=1>
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://boost.2283326.n4.nabble.com/LAPACK-bindings-error-tp4660582p4660586.html
> To unsubscribe from LAPACK bindings error, click here<http://boost.2283326.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4660582&code=ZG1pdHJ5cGVrQGdtYWlsLmNvbXw0NjYwNTgyfC03ODMyMzUzMTI=>
> .
> NAML<http://boost.2283326.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
-- View this message in context: http://boost.2283326.n4.nabble.com/LAPACK-bindings-error-tp4660582p4660661.html Sent from the Boost - uBLAS mailing list archive at Nabble.com.