The CPU routines are implemented in the
examplealgorithm_default_cpu_impl.cc, listed below. In
this case, the init() function can be kept as is, only
calling setMemSizes() to set the value of
vectorSize, which was deduced from the input. When the size
of an array can nót be deduced from input, this is where you
should set the size (provided it is a symbolic, non-const value in a
dynamic scheme).
Joren Heit
2013-12-17