hi
i have a working code which uses templates.But the number of template arguments mismatch with the call to template object. please explain the code below.
In the below statement one argument is passed to vmmul(ie,<0> ).
Code:
// Perform element-wise multiply for each pulse.
tmp = vmmul<0>(replica, tmp);
but in the actual template definition the number of template arguments vary.The vmmul template definition is below.
Code:
template <dimension_type Dim,
typename T0,
typename T1,
typename Block0,
typename Block1>
typename vsip::impl::Vmmul_traits<Dim, T0, T1, Block0, Block1>::view_type
vmmul(
const_Vector<T0, Block0> v,
const_Matrix<T1, Block1> m)
VSIP_NOTHROW
{
typedef impl::Vmmul_traits<Dim, T0, T1, Block0, Block1> traits;
typedef typename traits::block_type block_type;
typedef typename traits::view_type view_type;
return view_type(block_type(v.block(), m.block()));
}