Boost logo

Ublas :

From: Nico Galoppo (nico_at_[hidden])
Date: 2005-11-10 13:09:19


Has anyone recently successfully used the umfpack bindings to ublas? In my code,
I tried to compile some code that is very similar to the example on the umfpack
bindings document page, giving me the compiler errors below (msvc 7.1). One
cause of the problem could be a missing include file (for specializations) but I
have included <boost/numeric/bindings/traits/ublas_sparse.hpp>

Thanks,

--nico

h:\Dev\boost\boost\numeric\bindings\traits\ublas_sparse.hpp(72) : error C2039:
'size1' : is not a member of 'boost::numeric::bindings::traits::column_major_t'
         h:\Dev\boost\boost\numeric\bindings\traits\matrix_traits.hpp(81) : see
declaration of 'boost::numeric::bindings::traits::column_major_t'
         h:\Dev\boost\boost\numeric\bindings\traits\ublas_sparse.hpp(71) : while
compiling class-template member function
'boost::numeric::bindings::traits::sparse_matrix_detail_traits<MIdentifier,MType>::index_pointer
boost::numeric::bindings::traits::sparse_matrix_detail_traits<MIdentifier,MType>::index1_storage(const
boost::numeric::bindings::traits::sparse_matrix_detail_traits<MIdentifier,MType>::matrix_type
&)'
         with
         [
             MIdentifier=boost::remove_const<const
boost::numeric::ublas::compressed_matrix<double,boost::numeric::ublas::column_major,0,boost::numeric::ublas::unbounded_array<int>,boost::numeric::ublas::unbounded_array<MyTypes::real_type>>>::type,
             MType=const
boost::numeric::ublas::compressed_matrix<double,boost::numeric::ublas::column_major,0,boost::numeric::ublas::unbounded_array<int>,boost::numeric::ublas::unbounded_array<MyTypes::real_type>>
         ]
         h:\Dev\boost\boost\numeric\bindings\traits\sparse_traits.hpp(42) : see
reference to class template instantiation
'boost::numeric::bindings::traits::sparse_matrix_detail_traits<MIdentifier,MType>'
being compiled
         with
         [
             MIdentifier=boost::remove_const<const
boost::numeric::ublas::compressed_matrix<double,boost::numeric::ublas::column_major,0,boost::numeric::ublas::unbounded_array<int>,boost::numeric::ublas::unbounded_array<MyTypes::real_type>>>::type,
             MType=const
boost::numeric::ublas::compressed_matrix<double,boost::numeric::ublas::column_major,0,boost::numeric::ublas::unbounded_array<int>,boost::numeric::ublas::unbounded_array<MyTypes::real_type>>
         ]
         h:\Dev\boost\boost\numeric\bindings\umfpack\umfpack.hpp(110) : see
reference to class template instantiation
'boost::numeric::bindings::traits::sparse_matrix_traits<M>' being compiled
         with
         [
             M=const
boost::numeric::ublas::compressed_matrix<double,boost::numeric::ublas::column_major,0,boost::numeric::ublas::unbounded_array<int>,boost::numeric::ublas::unbounded_array<MyTypes::real_type>>
         ]
         h:\Dev\boost\boost\numeric\bindings\umfpack\umfpack.hpp(227) : see
reference to function template instantiation 'int
boost::numeric::bindings::umfpack::detail::symbolic<MatrA>(boost::numeric::bindings::traits::compressed_t,const
MatrA &,void ** ,const double *,double *)' being compiled
         with
         [
 
MatrA=boost::numeric::ublas::compressed_matrix<double,boost::numeric::ublas::column_major,0,boost::numeric::ublas::unbounded_array<int>,boost::numeric::ublas::unbounded_array<MyTypes::real_type>>
         ]
         H:\Documents\Code\Hybrid\include\constraints.h(139) : see reference to
function template instantiation 'int
boost::numeric::bindings::umfpack::symbolic<boost::numeric::ublas::compressed_matrix<T,L,IB,IA,TA>>(const
MatrA &,boost::numeric::bindings::umfpack::symbolic_type<T> &,const double
*,double *)' being compiled
         with
         [
             T=double,
             L=boost::numeric::ublas::column_major,
             IB=0,
             IA=boost::numeric::ublas::unbounded_array<int>,
             TA=boost::numeric::ublas::unbounded_array<MyTypes::real_type>,
 
MatrA=boost::numeric::ublas::compressed_matrix<double,boost::numeric::ublas::column_major,0,boost::numeric::ublas::unbounded_array<int>,boost::numeric::ublas::unbounded_array<MyTypes::real_type>>
         ]

-- 
nico galoppo von borries     @  address: 105 creel st., chapel hill
comp. graphics phd. student  @           north carolina, 27516 USA
UNC, chapel hill             @  phone: +1 (919) 962-1898 (office)
                              @         +1 (919) 942-7609 (home)
                              @  email: nico at cs dot unc dot edu
                              @  homepage: http://www.cs.unc.edu/~nico
--- debian linux :: vim powered