29 #ifndef _BELIEFSPARSE_H_
30 #define _BELIEFSPARSE_H_ 1
37 #include <boost/numeric/ublas/vector_sparse.hpp>
38 #include <boost/numeric/ublas/io.hpp>
53 #if BOOST_1_32_OR_LOWER // they renamed sparse_vector to mapped_vector
54 typedef boost::numeric::ublas::sparse_vector<double>
BS;
56 typedef boost::numeric::ublas::compressed_vector<double>
BS;
59 typedef BS::const_iterator
BScit;
87 #if BOOST_1_32_OR_LOWER
94 *
_m_b.find_element(i);
101 *
_m_b.find_element(i);
114 void Set(
const BS &belief);
116 void Set(
const std::vector<double> &belief);
127 std::vector<double>
Get()
const
129 throw E(
"BeliefSparse::Get() is not yet implemented");
142 double InnerProduct(
const std::vector<double> &values)
const;
147 const std::vector<bool> &mask)
const;