libeblearn
ebl::s2m_module< T, Tin, Tout > Class Template Reference

#include <ebl_march.h>

Inheritance diagram for ebl::s2m_module< T, Tin, Tout >:
ebl::module_1_1< T, Tin, Tout > ebl::module

List of all members.

Public Member Functions

 s2m_module (uint nstates, const char *name="s2m_module")
virtual void fprop (Tin &in, mstate< Tout > &out)
virtual void bprop (Tin &in, mstate< Tout > &out)
virtual void bbprop (Tin &in, mstate< Tout > &out)
virtual mfidxdim bprop_size (mfidxdim &osize)
 Returns input dimensions corresponding to output dimensions 'osize'.
virtual uint nstates ()
 Returns the number of states produced by this module.

Protected Member Functions

virtual void resize_output (Tin &in, mstate< Tout > &out, idxdim *d=NULL)

Protected Attributes

uint _nstates

Detailed Description

template<typename T, class Tin = bbstate_idx<T>, class Tout = Tin>
class ebl::s2m_module< T, Tin, Tout >

Single-state input to multi-state output module.


Constructor & Destructor Documentation

template<typename T , class Tin , class Tout >
ebl::s2m_module< T, Tin, Tout >::s2m_module ( uint  nstates,
const char *  name = "s2m_module< T, Tin, Tout >" 
)

Constructs a module that take a single-state input and produces a multi-state output with 'nstates' states.


Member Function Documentation

template<typename T , class Tin, class Tout>
void ebl::s2m_module< T, Tin, Tout >::resize_output ( Tin &  in,
mstate< Tout > &  out,
idxdim *  d = NULL 
) [protected, virtual]

Resize out based on the number of target states and the order of in. By default, states will have the order of in but each dimension will be the minimum size (1). If 'd' is not null, then d are the dimensions used to allocate the states.


The documentation for this class was generated from the following files: