Home | History | Annotate | Download | only in test

Lines Matching defs:size

68   Index size = w.size();
70 VectorType v = VectorType::Random(size);
71 VectorType v_for_prod = VectorType::Ones(size) + Scalar(0.2) * v; // see comment above declaration of m1_for_prod
73 for(int i = 1; i < size; i++)
90 for(int i = 0; i < size-1; i++)
94 for(int j = i; j < size; j++)
101 VERIFY_IS_MUCH_SMALLER_THAN(abs(s - v.tail(size-i).sum()), Scalar(1));
102 VERIFY_IS_APPROX(p, v_for_prod.tail(size-i).prod());
103 VERIFY_IS_APPROX(minc, v.real().tail(size-i).minCoeff());
104 VERIFY_IS_APPROX(maxc, v.real().tail(size-i).maxCoeff());
107 for(int i = 0; i < size/2; i++)
111 for(int j = i; j < size-i; j++)
118 VERIFY_IS_MUCH_SMALLER_THAN(abs(s - v.segment(i, size-2*i).sum()), Scalar(1));
119 VERIFY_IS_APPROX(p, v_for_prod.segment(i, size-2*i).prod());
120 VERIFY_IS_APPROX(minc, v.real().segment(i, size-2*i).minCoeff());
121 VERIFY_IS_APPROX(maxc, v.real().segment(i, size-2*i).maxCoeff());
134 // the max size cannot be too large, otherwise reduxion operations obviously generate large errors.