Search the web
Sign In
New User? Sign Up
ublas-dev · uBLAS development
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Re: [Boost-users] lu.hpp : permutation matrix error   Message List  
Reply | Forward Message #2392 of 2420 |
Daniel L Elliott wrote:
> Hello,
>
> I am completely stumped. Using the cvs head 1.32 version of boost with the
> following program:

This is again the old include-policy problem. Previously the headers of
ublas were not self-contained. This has been fixed but only on a branch
(and thus not in the 1.32 release). I plan to merge this branch also to
the HEAD.

For now, you just need to include storage.hpp before you include lu.hpp.
In that case, on line 24 of lu.hpp will it recognise unbounded_array
(which is defined in storage.hpp)


>
> #include<lu.hpp>
> #include<vector.hpp>
> #include<io.hpp>
>
> #include<iostream>
>
> using std::cout;
> using std::endl;
> using namespace boost::numeric::ublas;
>
> int main(){
>
> // create a permutation matrix
> permutation_matrix<size_t> P( size );
> // default contructions gives the identity-permutation
>
> cout << P << endl;
>
> return 0;
> }
>
> I get the following errors:
> g++ -c -I.
>
-I/s/chopin/a/grad/dane/thesis/code/boost-1.32/include/boost-1_32/boost/numeric/\
ublas
> -Wall -g3 -I.
>
-I/s/chopin/a/grad/dane/thesis/code/boost-1.32/include/boost-1_32/boost/numeric/\
ublas
> -o permutationTest.o permutationTest.cpp
> In file included from permutationTest.cpp:1:
>
/s/chopin/a/grad/dane/thesis/code/boost-1.32/include/boost-1_32/boost/numeric/ub\
las/lu.hpp:24:
> error: parse
> error before `,' token
>
/s/chopin/a/grad/dane/thesis/code/boost-1.32/include/boost-1_32/boost/numeric/ub\
las/lu.hpp:29:
> error: `
> vector_type' is not a class or namespace
>
/s/chopin/a/grad/dane/thesis/code/boost-1.32/include/boost-1_32/boost/numeric/ub\
las/lu.hpp:29:
> error: `
> size_type' is not a class or namespace
>
/s/chopin/a/grad/dane/thesis/code/boost-1.32/include/boost-1_32/boost/numeric/ub\
las/lu.hpp:29:
> error: `
> vector_type' fails to be a typedef or built in type
>
/s/chopin/a/grad/dane/thesis/code/boost-1.32/include/boost-1_32/boost/numeric/ub\
las/lu.hpp:29:
> error: ISO
> C++ forbids declaration of `size_type' with no type
>
/s/chopin/a/grad/dane/thesis/code/boost-1.32/include/boost-1_32/boost/numeric/ub\
las/lu.hpp:29:
> error: template
> declaration of `typedef int boost::numeric::ublas::size_type'
>
/s/chopin/a/grad/dane/thesis/code/boost-1.32/include/boost-1_32/boost/numeric/ub\
las/lu.hpp:29:
> confused by earlier errors, bailing out
>
> Any ideas as to what might be wrong here?
>
> Thank you.
>
> -- dan elliott
> **************************
> Dan Elliott
> 402-210-6429 (me)
> or
> 402-210-6735 (amy)
> dan_elliott@...
> **************************
> _______________________________________________
> Boost-users mailing list
> Boost-users@...
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>




Mon Dec 6, 2004 7:24 am

tknapen
Offline Offline
Send Email Send Email

Forward
Message #2392 of 2420 |
Expand Messages Author Sort by Date

... This is again the old include-policy problem. Previously the headers of ublas were not self-contained. This has been fixed but only on a branch (and thus...
Toon Knapen
tknapen
Offline Send Email
Dec 6, 2004
7:24 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help