/** * * * Created on: 23 jun. 2018 * Author: AKKA IS */ #include "Floor.hh" #include template int _floor(const Type& el) { double dEl = (double)el; return (int)std::floor(dEl); } template std::vector _floor(const std::vector& el) { std::vector result; for (typename std::vector::const_iterator it = el.begin(); it != el.end(); ++it) { result.push_back(_floor(*it)); } return result; } int Floor(const float& el) { return _floor(el); } int Floor(const double& el) { return _floor(el); } int Floor(const long double& el) { return _floor(el); } int Floor(const int& el) { return _floor(el); } int Floor(const short& el) { return _floor(el); } std::vector Floor(const std::vector& el) { return _floor(el); } std::vector Floor_(const std::vector& el) { return _floor(el); } std::vector Floor_(const std::vector& el) { return _floor(el); } std::vector Floor_(const std::vector& el) { return _floor(el); } std::vector Floor_(const std::vector& el) { return _floor(el); }