Home | History | Annotate | Download | only in test

Lines Matching refs:VERIFY_EVALUATION_COUNT

27 #define VERIFY_EVALUATION_COUNT(XPR,N) {\
184 VERIFY_EVALUATION_COUNT( call_ref_1(a,a), 0);
185 VERIFY_EVALUATION_COUNT( call_ref_1(b,b.transpose()), 0);
187 VERIFY_EVALUATION_COUNT( call_ref_1(ab,ab), 0);
188 VERIFY_EVALUATION_COUNT( call_ref_1(a.head(4),a.head(4)), 0);
189 VERIFY_EVALUATION_COUNT( call_ref_1(abc,abc), 0);
190 VERIFY_EVALUATION_COUNT( call_ref_1(A.col(3),A.col(3)), 0);
192 VERIFY_EVALUATION_COUNT( call_ref_3(A.row(3),A.row(3).transpose()), 0);
193 VERIFY_EVALUATION_COUNT( call_ref_4(A.row(3),A.row(3).transpose()), 0);
197 VERIFY_EVALUATION_COUNT( call_ref_2(A*A.col(1), tmp), 1); // evaluated into a temp
198 VERIFY_EVALUATION_COUNT( call_ref_2(ac.head(5),ac.head(5)), 0);
199 VERIFY_EVALUATION_COUNT( call_ref_2(ac,ac), 0);
200 VERIFY_EVALUATION_COUNT( call_ref_2(a,a), 0);
201 VERIFY_EVALUATION_COUNT( call_ref_2(ab,ab), 0);
202 VERIFY_EVALUATION_COUNT( call_ref_2(a.head(4),a.head(4)), 0);
204 VERIFY_EVALUATION_COUNT( call_ref_2(a+a,tmp), 1); // evaluated into a temp
205 VERIFY_EVALUATION_COUNT( call_ref_2(ca.imag(),ca.imag()), 1); // evaluated into a temp
207 VERIFY_EVALUATION_COUNT( call_ref_4(ac.head(5),ac.head(5)), 0);
209 VERIFY_EVALUATION_COUNT( call_ref_4(a+a,tmp), 1); // evaluated into a temp
210 VERIFY_EVALUATION_COUNT( call_ref_4(ca.imag(),ca.imag()), 0);
212 VERIFY_EVALUATION_COUNT( call_ref_5(a,a), 0);
213 VERIFY_EVALUATION_COUNT( call_ref_5(a.head(3),a.head(3)), 0);
214 VERIFY_EVALUATION_COUNT( call_ref_5(A,A), 0);
216 VERIFY_EVALUATION_COUNT( call_ref_5(A.block(1,1,2,2),A.block(1,1,2,2)), 0);
217 VERIFY_EVALUATION_COUNT( call_ref_5(b,b), 0); // storage order do not match, but this is a degenerate case that should work
218 VERIFY_EVALUATION_COUNT( call_ref_5(a.row(3),a.row(3)), 0);
220 VERIFY_EVALUATION_COUNT( call_ref_6(a,a), 0);
221 VERIFY_EVALUATION_COUNT( call_ref_6(a.head(3),a.head(3)), 0);
222 VERIFY_EVALUATION_COUNT( call_ref_6(A.row(3),A.row(3)), 1); // evaluated into a temp thouth it could be avoided by viewing it as a 1xn matrix
224 VERIFY_EVALUATION_COUNT( call_ref_6(A+A,tmp), 1); // evaluated into a temp
225 VERIFY_EVALUATION_COUNT( call_ref_6(A,A), 0);
226 VERIFY_EVALUATION_COUNT( call_ref_6(A.transpose(),A.transpose()), 1); // evaluated into a temp because the storage orders do not match
227 VERIFY_EVALUATION_COUNT( call_ref_6(A.block(1,1,2,2),A.block(1,1,2,2)), 0);
229 VERIFY_EVALUATION_COUNT( call_ref_7(c,c), 0);