MCPcopy Create free account
hub / github.com/catboost/catboost / TSparseArrayBase

Method TSparseArrayBase

catboost/libs/helpers/sparse_array-inl.h:947–958  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

945
946 template <class TValue, class TContainer, class TSize>
947 TSparseArrayBase<TValue, TContainer, TSize>::TSparseArrayBase(
948 TIndexingPtr indexing,
949 TContainer&& nonDefaultValues,
950 TValue&& defaultValue)
951 : Indexing(std::move(indexing))
952 , NonDefaultValues(std::move(nonDefaultValues))
953 , DefaultValue(std::move(defaultValue))
954 {
955 CB_ENSURE_INTERNAL(
956 SafeIntegerCast<size_t>(Indexing->GetNonDefaultSize()) == NonDefaultValues.GetSize(),
957 "TSparseArray: Indexing size and nondefault array size differ");
958 }
959
960 template <class TValue, class TContainer, class TSize>
961 template <class TIndexingArg>

Callers

nothing calls this directly

Calls 3

moveFunction · 0.50
GetNonDefaultSizeMethod · 0.45
GetSizeMethod · 0.45

Tested by

no test coverage detected