|
| GainBlock () |
|
| GainBlock (const TGain &gain) |
|
void | setGain (const TGain &gain) |
|
const TGain & | getGain () const |
|
typename ::std::tuple_element< 0, typename Base::Params >::type & | gain () |
|
const typename ::std::tuple_element< 0, typename Base::Params >::type & | gain () const |
|
typename ::std::tuple_element< 1, typename Base::Params >::type & | constantVal () |
|
const typename ::std::tuple_element< 1, typename Base::Params >::type & | constantVal () const |
|
const ::std::array< GiNaC::ex, Base::kIns > & | inputSymbols () |
|
const ::std::array< GiNaC::ex, Base::kOuts > & | outputSymbols () |
|
const ::std::array< GiNaC::ex, Base::kPars > & | parameterSymbols () |
|
void | trigger () override |
| Number of parameter slots. More...
|
|
void | setPriority (int prio) |
|
int | getPriority () const |
|
const GiNaC::function | blkf (const ::std::vector< GiNaC::ex > &exvec, bool appendId=true) |
|
|
static constexpr Ops | Left = Ops::Left |
| Utility alias for left multiplication.
|
|
static constexpr Ops | Right = Ops::Right |
| Utility alias for right multiplication.
|
|
static constexpr Ops | Convolution = Ops::Convolution |
| Utility alias for convolution.
|
|
static constexpr Ops | ElementWise = Ops::ElementWise |
| Utility alias for elementwise multiplication.
|
|
static constexpr Conv | Reflect = Conv::Reflect |
| Utility alias for reflect convolution mode.
|
|
static constexpr Conv | Constant = Conv::Constant |
| Utility alias for constant convolution mode.
|
|
static constexpr Conv | Nearest = Conv::Nearest |
| Utility alias for nearest convolution mode.
|
|
static constexpr Conv | Mirror = Conv::Mirror |
| Utility alias for mirror convolution mode.
|
|
static constexpr Conv | Wrap = Conv::Wrap |
| Utility alias for wrap convolution mode.
|
|
static int | objects_created = 0 |
|
static int | objects_alive = 0 |
|
|
template<GainBlockOperator TTOps = TOps, GainBlockConvolutionMode TTConv = TConv, typename ::std::enable_if<((TTOps==Convolution) &&(TTConv==Reflect))>::type * = nullptr> |
static void | convolve (Base &b) |
|
template<GainBlockOperator TTOps = TOps, GainBlockConvolutionMode TTConv = TConv, typename ::std::enable_if<((TTOps==Convolution) &&(TTConv==Constant))>::type * = nullptr> |
static void | convolve (Base &b) |
|
template<GainBlockOperator TTOps = TOps, GainBlockConvolutionMode TTConv = TConv, typename ::std::enable_if<((TTOps==Convolution) &&(TTConv==Nearest))>::type * = nullptr> |
static void | convolve (Base &b) |
|
template<GainBlockOperator TTOps = TOps, GainBlockConvolutionMode TTConv = TConv, typename ::std::enable_if<((TTOps==Convolution) &&(TTConv==Mirror))>::type * = nullptr> |
static void | convolve (Base &b) |
|
template<GainBlockOperator TTOps = TOps, GainBlockConvolutionMode TTConv = TConv, typename ::std::enable_if<((TTOps==Convolution) &&(TTConv==Wrap))>::type * = nullptr> |
static void | convolve (Base &b) |
|
template<typename TInput, typename TGain = TInput, GainBlockOperator TOps = GainBlockOperator::Left, GainBlockConvolutionMode TConv = GainBlockConvolutionMode::Reflect>
class ls::blocks::std::GainBlock< TInput, TGain, TOps, TConv >
Multiplies input by a value (gain).
The output type is derived from TInput
and TGain
, as well as the type of multiplication through TOps
.
The following operation types are available:
The following convolution modes are available:
This class raises static_assert
s if the gain and input are not multiplicable.
- Note
- This class is derived from Block implementation.
- Template Parameters
-
TInput | Input type. |
TGain | Gain type. |
TOps | Multiplication type. |
TConv | Convolution mode. |
template<typename TInput , typename TGain = TInput, GainBlockOperator TOps = GainBlockOperator::Left, GainBlockConvolutionMode TConv = GainBlockConvolutionMode::Reflect>
template<GainBlockOperator TTOps = TOps, typename ::std::enable_if< TTOps==Left >::type * = nullptr>
Sets trigger function for non-right multiplication TOps
.
- Template Parameters
-
- Returns
void
if active.
template<typename TInput , typename TGain = TInput, GainBlockOperator TOps = GainBlockOperator::Left, GainBlockConvolutionMode TConv = GainBlockConvolutionMode::Reflect>
template<GainBlockOperator TTOps = TOps, typename ::std::enable_if< TTOps==Right >::type * = nullptr>
Sets trigger function for right multiplication TOps
.
- Template Parameters
-
- Returns
void
if active.
template<typename TInput , typename TGain = TInput, GainBlockOperator TOps = GainBlockOperator::Left, GainBlockConvolutionMode TConv = GainBlockConvolutionMode::Reflect>
template<GainBlockOperator TTOps = TOps, typename ::std::enable_if< TTOps==Convolution >::type * = nullptr>
Sets trigger function for convolution TOps
.
- Template Parameters
-
- Returns
void
if active.
template<typename TInput , typename TGain = TInput, GainBlockOperator TOps = GainBlockOperator::Left, GainBlockConvolutionMode TConv = GainBlockConvolutionMode::Reflect>
template<GainBlockOperator TTOps = TOps, GainBlockConvolutionMode TTConv = TConv, typename ::std::enable_if<((TTOps==Convolution) &&(TTConv==Reflect))>::type * = nullptr>
Convolution function with reflection boundary condition.
- Template Parameters
-
TTOps | Copy of TOps |
TTConv | Copy of TConv |
- Parameters
-
template<typename TInput , typename TGain = TInput, GainBlockOperator TOps = GainBlockOperator::Left, GainBlockConvolutionMode TConv = GainBlockConvolutionMode::Reflect>
template<GainBlockOperator TTOps = TOps, GainBlockConvolutionMode TTConv = TConv, typename ::std::enable_if<((TTOps==Convolution) &&(TTConv==Constant))>::type * = nullptr>
Convolution function with constant boundary condition.
- Template Parameters
-
TTOps | Copy of TOps |
TTConv | Copy of TConv |
- Parameters
-
template<typename TInput , typename TGain = TInput, GainBlockOperator TOps = GainBlockOperator::Left, GainBlockConvolutionMode TConv = GainBlockConvolutionMode::Reflect>
template<GainBlockOperator TTOps = TOps, GainBlockConvolutionMode TTConv = TConv, typename ::std::enable_if<((TTOps==Convolution) &&(TTConv==Nearest))>::type * = nullptr>
Convolution function with nearest boundary condition.
- Template Parameters
-
TTOps | Copy of TOps |
TTConv | Copy of TConv |
- Parameters
-
template<typename TInput , typename TGain = TInput, GainBlockOperator TOps = GainBlockOperator::Left, GainBlockConvolutionMode TConv = GainBlockConvolutionMode::Reflect>
template<GainBlockOperator TTOps = TOps, GainBlockConvolutionMode TTConv = TConv, typename ::std::enable_if<((TTOps==Convolution) &&(TTConv==Mirror))>::type * = nullptr>
Convolution function with mirror boundary condition.
- Template Parameters
-
TTOps | Copy of TOps |
TTConv | Copy of TConv |
- Parameters
-
template<typename TInput , typename TGain = TInput, GainBlockOperator TOps = GainBlockOperator::Left, GainBlockConvolutionMode TConv = GainBlockConvolutionMode::Reflect>
template<GainBlockOperator TTOps = TOps, GainBlockConvolutionMode TTConv = TConv, typename ::std::enable_if<((TTOps==Convolution) &&(TTConv==Wrap))>::type * = nullptr>
Convolution function with wrap boundary condition.
- Template Parameters
-
TTOps | Copy of TOps |
TTConv | Copy of TConv |
- Parameters
-