Reading Sparse functions in H5 file

14 views
Skip to first unread message

Ijaz Akhter

unread,
Feb 26, 2019, 4:30:55 AM2/26/19
to opengm
Hi,

I am new to openGM and trying to read sparse functions in an HDF file. Below is the sample code, I took from page 11 of the manual.

#include <map>

#include <opengm/graphicalmodel/space/simplediscretespace.hxx>

#include <opengm/functions/sparsemarray.hxx>


typedef opengm::meta::TypeListGenerator<

opengm::ExplicitFunction<double>,

opengm::PottsFunction<double, size_t, size_t>,

opengm::SparseMarray<double>

>::type FunctionTypeList;

typedef opengm::GraphicalModel<double,Adder,FunctionTypeList, DiscreteSpace<>> GM;


But with this, the compiler complains that there is no member named SparseMarray in namespace opengm. Can you please suggest something?

Thanks,
Ijaz
Reply all
Reply to author
Forward
0 new messages