I have class “Vector” that has its size known at compile time. I have a following type:
template <size_t Outputs>
struct Linear {
template <size_t Inputs>
Vector<Outputs> operator()(const Vector<Inputs>& inputs, const Parameters<Outputs * (Inputs + 1)>& parameters);
}
There are other similar structs that follow the same pattern – output_t (const input_t&, const Parameters<count>&)
I am trying to figure out template magic to know the parameter count for different input_t’s.
Any suggestion?