Cambridge SMT System
fsttools/include/tropical-sparse-tuple-weight.h File Reference

Implementation of tropical sparse tuple weight semiring. More...

#include <params.hpp>
Include dependency graph for fsttools/include/tropical-sparse-tuple-weight.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  fst::TropicalSparseTupleWeight< T >
 Implements Tropical Sparse tuple weight semiring, extending from openfst SparsePowerWeight class. More...
 
struct  fst::DotProductMap< T >
 Map functor used with generic weight mapper. More...
 
struct  fst::VectorToStd< T >
 Functor to convert sparse tuple weight to tropical (single weight) More...
 
struct  fst::StdToVector< T >
 Functor that converts tropical to sparse tuple weight. More...
 

Namespaces

 fst
 

Functions

template<typename T >
fst::DotProduct (const TropicalSparseTupleWeight< T > &w, const std::vector< T > &vw)
 Implements Dot product of two vector weights. More...
 
template<class T >
TropicalSparseTupleWeight< T > fst::Plus (const TropicalSparseTupleWeight< T > &vw1, const TropicalSparseTupleWeight< T > &vw2)
 
template<typename T >
bool fst::ApproxEqual (const TropicalSparseTupleWeight< T > &vw1, const TropicalSparseTupleWeight< T > &vw2, float delta=kDelta)
 
template<class T >
TropicalSparseTupleWeight< T > fst::Times (const TropicalSparseTupleWeight< T > &w1, const TropicalSparseTupleWeight< T > &w2)
 
template<class T >
TropicalSparseTupleWeight< T > fst::Divide (const TropicalSparseTupleWeight< T > &w1, const TropicalSparseTupleWeight< T > &w2, DivideType type=DIVIDE_ANY)
 

Detailed Description

Implementation of tropical sparse tuple weight semiring.

Date
10-10-2012
Author
Rory Waite

Definition in file fsttools/include/tropical-sparse-tuple-weight.h.