Problems when make examples and test in ITL.
jian sun <[email protected]>
| Newsgroups | gmane.comp.lib.mtl.devel |
|---|---|
| Organization | [email protected] |
| Message-ID | <1068661855.26462.16.camel@lily> |
Hi,
I can do "make install" successfully. But when i tried to compile the
programs in examples and test directory. I got some errors as follows:
ilu_gmres.cpp:136: instantiated from here
/home/sunjia/SiCom/MTL/include/mtl/matrix_traits.h:197: no type named `
dimension' in `class std::vector<Type, std::allocator<Type> >'
/home/sunjia/SiCom/MTL/include/mtl/matrix_traits.h:201: no type named
`sparsity
' in `class std::vector<Type, std::allocator<Type> >'
/home/sunjia/SiCom/MTL/include/mtl/mtl.h: In function `void
mtl::mult_shape__(const Matrix&, const VecX&, VecZ,
mtl::rectangle_tag)
[with Matrix = mtl::column_matrix<mtl::gen_external2D<Type,
mtl::gen_rect_offset<0, 0>, 0, 0>,
mtl::gen_rect_indexer<mtl::column_orien,
0, 0, size_t> >, VecX = std::vector<Type, std::allocator<Type> >,
VecZ =
mtl::dense1D<Type, 0>]':....
I looked into the source code. The errors came from the linalg_traits as
follows.
template <class Linalg>
struct linalg_traits {
/* enum { dimension = Linalg::dimension }; 1 for vectors, 2 for
matrices */
//: Whether the object is a 1D or 2D container
typedef typename Linalg::dimension dimension;
//: The element type within the container
typedef typename Linalg::value_type value_type;
//: Either sparse or dense
typedef typename Linalg::sparsity sparsity;
//: The return type for abs(value_type)
typedef typename number_traits<value_type>::magnitude_type
magnitude_type;
}
I do not know how to fix it.
BTW: I am working under Redhat 9.0 with gcc and g++ 3.2.2 20030222.
Thank you!
_______________________________________________
This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/