• Home
  • Raw
  • Download

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 (numext::real(low)>numext::real(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()
80low = -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)/RealScalar(size-1)); in testVectorType()
86 m.setLinSpaced(size,low,high); in testVectorType()
92 n(i) = low+RealScalar(i)*step; in testVectorType()
95 CALL_SUBTEST( check_extremity_accuracy(m, low, high) ); in testVectorType()
98 RealScalar range_length = numext::real(high-low); in testVectorType()
104 n(i) = size==1 ? low : (low + ((high-low)*Scalar(i))/RealScalar(size-1)); in testVectorType()
107 n(i) = size==1 ? low : low + Scalar((double(range_length+1)*double(i))/double(size)); in testVectorType()
111 m = VectorType::LinSpaced(size,low,high); in testVectorType()
114 VERIFY( size==1 || internal::isApprox(m(0),low) ); in testVectorType()
117 CALL_SUBTEST( check_extremity_accuracy(m, low, high) ); in testVectorType()
122 VERIFY( (m.array().real() >= numext::real(low)).all() ); in testVectorType()
125 VERIFY( numext::real(m(m.size()-1)) >= numext::real(low) ); in testVectorType()
128 VERIFY( internal::isApprox(m(0),low) ); in testVectorType()
129 VERIFY_IS_EQUAL(m(0) , low); in testVectorType()
135 row_vector.setLinSpaced(size,low,high); in testVectorType()
136 col_vector.setLinSpaced(size,low,high); in testVectorType()
142 size_changer.setLinSpaced(size,low,high); in testVectorType()
147 scalar.setLinSpaced(1,low,high); in testVectorType()
149 VERIFY_IS_APPROX( ScalarMatrix::LinSpaced(1,low,high), ScalarMatrix::Constant(high) ); in testVectorType()
153 m.tail(size-1).setLinSpaced(low, high); in testVectorType()
160 low = internal::random<Scalar>(); in testVectorType()
161 m = VectorType::LinSpaced(n0,low,low-RealScalar(1)); in testVectorType()
167 VERIFY_IS_EQUAL(VectorType::LinSpaced(n0,low,low-RealScalar(1)).sum(),Scalar(0)); in testVectorType()
172 m.setLinSpaced(n0,low,low-RealScalar(1)); in testVectorType()
176 VERIFY_IS_APPROX(VectorType::LinSpaced(size,low,low),VectorType::Constant(size,low)); in testVectorType()
177 m.setLinSpaced(size,low,low); in testVectorType()
178 VERIFY_IS_APPROX(m,VectorType::Constant(size,low)); in testVectorType()
182 …_IS_APPROX( VectorType::LinSpaced(size,low,low+Scalar(size-1)), VectorType::LinSpaced(size,low+Sca… in testVectorType()
188 …APPROX( VectorType::LinSpaced(size,low,low+Scalar((size-1)*k)), VectorType::LinSpaced(size,low+Sca… in testVectorType()
191 …_APPROX( VectorType::LinSpaced(size*k,low,low+Scalar(size-1)), VectorType::LinSpaced(size*k,low+Sc… in testVectorType()