|
Cambridge SMT System
|
Implementation of tropical sparse tuple weight semiring. More...
#include <params.hpp>

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 > | |
| 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) |
Implementation of tropical sparse tuple weight semiring.
Definition in file fsttools/include/tropical-sparse-tuple-weight.h.