cool I had looked for a better way to do this but didn't find one. To be honest I'm not even sure why this is a vector and not a constant because its always used as one. When porting from R to C++ I didn't want to change anything until it was working