This function is returning the error "matrixOpsLibrary.h:11: error: invalid initialization of reference of type ‘const std::Vec&’ from expression of type ‘const double’"
#include <vector>
#include <cmath>
using namespace std;
typedef std::vector<double> Vec; //Vector
Vec floor( const Vec& y ){
unsigned n = y.size();
Vec bottom(n);
for( unsigned e=0; e<n; ++e ) bottom[e] = floor(y[e]);
return bottom;
}