Fixed the linspace error; cant pass vec to function asking for int