libDAI
Classes | Namespaces | Functions
spvector.h File Reference

Defines spvector<> class, which implements a sparse vector (using a std::vector) More...

#include <ostream>
#include <vector>

Go to the source code of this file.

Classes

struct  dai::first_less< T1, T2 >
 Function object that returns true if a.first < b.first. More...

Namespaces

namespace  dai
 Namespace for libDAI.

Functions

template<class T >
std::ostream & dai::operator<< (std::ostream &os, const spvector< T > &x)
 Writes a spvector<> to a std::ostream.

Detailed Description

Defines spvector<> class, which implements a sparse vector (using a std::vector)