libeblearn
ebl::module_2_1< T, Tin1, Tin2, Tout > Class Template Reference

An abstract class for a module with two inputs and one output. More...

#include <ebl_arch.h>

Inheritance diagram for ebl::module_2_1< T, Tin1, Tin2, Tout >:
ebl::module

List of all members.

Public Member Functions

 module_2_1 (const char *name="module_2_1")
virtual void fprop (Tin1 &in1, Tin2 &in2, Tout &out)
virtual void bprop (Tin1 &in1, Tin2 &in2, Tout &out)
virtual void bbprop (Tin1 &in1, Tin2 &in2, Tout &out)
virtual void fprop (mstate< Tin1 > &in1, mstate< Tin2 > &in2, mstate< Tout > &out)
virtual void bprop (mstate< Tin1 > &in1, mstate< Tin2 > &in2, mstate< Tout > &out)
virtual void bbprop (mstate< Tin1 > &in1, mstate< Tin2 > &in2, mstate< Tout > &out)
virtual void forget (forget_param &fp)
virtual void normalize ()
virtual bool resize_output (Tin1 &in1, Tin2 &in2, Tout &out, idxdim *d=NULL)

Protected Attributes

bool bresize
 Tells module to resize output or not.

Detailed Description

template<typename T, class Tin1 = bbstate_idx<T>, class Tin2 = Tin1, class Tout = Tin1>
class ebl::module_2_1< T, Tin1, Tin2, Tout >

An abstract class for a module with two inputs and one output.


Member Function Documentation

template<typename T , class Tin1, class Tin2, class Tout>
bool ebl::module_2_1< T, Tin1, Tin2, Tout >::resize_output ( Tin1 &  in1,
Tin2 &  in2,
Tout &  out,
idxdim *  d = NULL 
) [virtual]

Resizes 'out' to the same dimensions as 'in'. If dimensions already match, nothing is changed. If orders differ, then out is assigned a new 'Tout' buffer if the correct order and dimensions.

Parameters:
dIf not null, use these dimensions as target, otherwise use in.x This returns true if output was resized/reallocated, false otherwise.

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