MCPcopy Create free account
hub / github.com/davisking/dlib / sizes_match

Function sizes_match

dlib/svm/structural_svm_graph_labeling_problem.h:139–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137 typename U
138 >
139 bool sizes_match (
140 const std::vector<std::vector<T> >& lhs,
141 const std::vector<std::vector<U> >& rhs
142 )
143 {
144 if (lhs.size() != rhs.size())
145 return false;
146
147 for (unsigned long i = 0; i < lhs.size(); ++i)
148 {
149 if (lhs[i].size() != rhs[i].size())
150 return false;
151 }
152
153 return true;
154 }
155
156// ----------------------------------------------------------------------------------------
157

Calls 1

sizeMethod · 0.45

Tested by 1