12 #ifndef MLPACK_BINDINGS_UTIL_CAMEL_CASE_HPP 13 #define MLPACK_BINDINGS_UTIL_CAMEL_CASE_HPP 26 inline std::string
CamelCase(std::string s,
bool lower)
29 s[0] = std::toupper(s[0]);
31 s[0] = std::tolower(s[0]);
32 size_t n = s.length();
34 for (
size_t i = 0; i < n; i++)
40 s[i + 1] = toupper(s[i + 1]);
48 return s.substr(0, resInd);
Linear algebra utility functions, generally performed on matrices or vectors.
std::string CamelCase(std::string s, bool lower)
Given an snake_case like, e.g., "logistic_regression", return CamelCase(e.g.