Lines Matching full:low
37 void check_extremity_accuracy(const VectorType &v, const typename VectorType::Scalar &low, const ty… in check_extremity_accuracy() argument
52 …Scalar ref = (low*RealScalar(size-i-1))/RealScalar(size-1) + (high*RealScalar(i))/RealScalar(size-… in check_extremity_accuracy()
56 …((v(i)-ref)/ref) << " ; required precision: " << prec << " ; range: " << low << "," << high << "… in check_extremity_accuracy()
57 …VERIFY(internal::isApprox(v(i), (low*RealScalar(size-i-1))/RealScalar(size-1) + (high*RealScalar(i… in check_extremity_accuracy()
72 Scalar low = (size == 1 ? high : internal::random<Scalar>(-500,500)); in testVectorType() local
73 if (low>high) std::swap(low,high); in testVectorType()
75 // check low==high in testVectorType()
77 low = high; in testVectorType()
78 // check abs(low) >> abs(high) in testVectorType()
80 …low = -internal::random<Scalar>(1,2) * RealScalar(std::pow(RealScalar(10),std::numeric_limits<Real… in testVectorType()
82 const Scalar step = ((size == 1) ? 1 : (high-low)/(size-1)); in testVectorType()
86 m.setLinSpaced(size,low,high); in testVectorType()
92 n(i) = low+i*step; in testVectorType()
95 CALL_SUBTEST( check_extremity_accuracy(m, low, high) ); in testVectorType()
98 …calar>::IsInteger) || ((high-low)>=size && (Index(high-low)%(size-1))==0) || (Index(high-low+1)<si… in testVectorType()
101 if((!NumTraits<Scalar>::IsInteger) || (high-low>=size)) in testVectorType()
103 n(i) = size==1 ? low : (low + ((high-low)*Scalar(i))/(size-1)); in testVectorType()
106 n(i) = size==1 ? low : low + Scalar((double(high-low+1)*double(i))/double(size)); in testVectorType()
110 m = VectorType::LinSpaced(size,low,high); in testVectorType()
113 VERIFY( size==1 || internal::isApprox(m(0),low) ); in testVectorType()
116 CALL_SUBTEST( check_extremity_accuracy(m, low, high) ); in testVectorType()
121 VERIFY( (m.array() >= low).all() ); in testVectorType()
124 VERIFY( m(m.size()-1) >= low ); in testVectorType()
127 VERIFY( internal::isApprox(m(0),low) ); in testVectorType()
128 VERIFY_IS_EQUAL(m(0) , low); in testVectorType()
134 row_vector.setLinSpaced(size,low,high); in testVectorType()
135 col_vector.setLinSpaced(size,low,high); in testVectorType()
141 size_changer.setLinSpaced(size,low,high); in testVectorType()
146 scalar.setLinSpaced(1,low,high); in testVectorType()
148 VERIFY_IS_APPROX( ScalarMatrix::LinSpaced(1,low,high), ScalarMatrix::Constant(high) ); in testVectorType()
152 m.tail(size-1).setLinSpaced(low, high); in testVectorType()
159 low = internal::random<Scalar>(); in testVectorType()
160 m = VectorType::LinSpaced(n0,low,low-1); in testVectorType()
166 VERIFY_IS_EQUAL(VectorType::LinSpaced(n0,low,low-1).sum(),Scalar(0)); in testVectorType()
171 m.setLinSpaced(n0,low,low-1); in testVectorType()
175 VERIFY_IS_APPROX(VectorType::LinSpaced(size,low,low),VectorType::Constant(size,low)); in testVectorType()
176 m.setLinSpaced(size,low,low); in testVectorType()
177 VERIFY_IS_APPROX(m,VectorType::Constant(size,low)); in testVectorType()
181 …_IS_APPROX( VectorType::LinSpaced(size,low,Scalar(low+size-1)), VectorType::LinSpaced(size,Scalar(… in testVectorType()
187 …APPROX( VectorType::LinSpaced(size,low,Scalar(low+(size-1)*k)), VectorType::LinSpaced(size,Scalar(… in testVectorType()
190 …_APPROX( VectorType::LinSpaced(size*k,low,Scalar(low+size-1)), VectorType::LinSpaced(size*k,Scalar… in testVectorType()