MCPcopy Create free account
hub / github.com/catboost/catboost / operator==

Function operator==

library/cpp/containers/2d_array/2d_array.h:112–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110
111template <class T>
112inline bool operator==(const TArray2D<T>& a, const TArray2D<T>& b) {
113 if (a.GetXSize() != b.GetXSize() || a.GetYSize() != b.GetYSize())
114 return false;
115 for (size_t y = 0; y < a.GetYSize(); ++y) {
116 for (size_t x = 0; x < a.GetXSize(); ++x)
117 if (a[y][x] != b[y][x])
118 return false;
119 }
120 return true;
121}
122
123template <class T>
124inline bool operator!=(const TArray2D<T>& a, const TArray2D<T>& b) {

Callers

nothing calls this directly

Calls 2

GetXSizeMethod · 0.80
GetYSizeMethod · 0.80

Tested by

no test coverage detected