MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / ArrayCast

Function ArrayCast

include/LightGBM/utils/common.h:393–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

391
392template<typename T, typename T2>
393inline static std::vector<T2> ArrayCast(const std::vector<T>& arr) {
394 std::vector<T2> ret(arr.size());
395 for (size_t i = 0; i < arr.size(); ++i) {
396 ret[i] = static_cast<T2>(arr[i]);
397 }
398 return ret;
399}
400
401template<typename T, bool is_float, bool is_unsign>
402struct __TToStringHelperFast {

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected