| 183 | } |
| 184 | |
| 185 | inline static bool CheckAll(const std::vector<VAL_T>& array, VAL_T t) { |
| 186 | for (size_t i = 0; i < array.size(); ++i) { |
| 187 | if (array[i] != t) { |
| 188 | return false; |
| 189 | } |
| 190 | } |
| 191 | return true; |
| 192 | } |
| 193 | }; |
| 194 | |
| 195 | } // namespace LightGBM |