|
Ublas : |
From: Gunter Winkler (guwi17_at_[hidden])
Date: 2005-07-08 02:54:29
On Friday 08 July 2005 09:13, M.Deij_at_[hidden] wrote:
> Hello,
>
> I've got a problem compiling the next example:
>
> sparse_matrix<unsigned> *m, *n, *r;
> m = new sparse_matrix<unsigned>(3,3);
> n = new sparse_matrix<unsigned>(3,3);
> r = new sparse_matrix<unsigned>(3,3);
sparse_matrix was recently renamed to mapped_matrix. You should try the CVS
version of ublas.
> I'm not sure if it's a 64-bit problem (P4 vs Opteron) or a gcc version
> problem. Anybody got any ideas? The errors I get are listed below:
I'd like to guess, what the problem is without running the compiler:
You tried to do a debug build of a matrix containing integers. There is a
type_traits missing that defines 'real_type' for any integer type, but this
trait is needed by some debug checks (Should we add this?).
As a quick&dirty fix you can uncomment the lines 64-65:
typedef T real_type;
typedef T precision_type;
in traits.hpp.
Please check if the example compiles using the "-DNDEBUG" compiler flag.
mfg
Gunter