I am not sure what am I doing wrong in defining the function:
Code snippet:
// Constructing linear spaced vector with increment template