Definition at line 163 of file comb.cpp.
166{
168 size_t q = t.size();
169 assert(
p + q ==
result.size());
170 size_t a = 0;
171 size_t b = 0;
172 size_t c = 0;
173 size_t sign = 0;
174 if (
p == 0 && q == 0)
return 1;
175 for (;;)
176 {
178 {
179 while (b < q)
result[c++] = t[b++];
180 break;
181 }
182 else if (b >= q)
183 {
185 break;
186 }
188 {
191 }
192 else if (
s[a] < t[b])
193 {
195 }
196 else
197 return 0;
198 }
199 if ((sign % 2) == 0) return 1;
200 return -1;
201}
VALGRIND_MAKE_MEM_DEFINED & result(result)
References p, result(), and s.
Referenced by TEST(), and Matrix::wedge_product().