• Home
  • Raw
  • Download

Lines Matching full:high

37 …nst VectorType &v, const typename VectorType::Scalar &low, const typename VectorType::Scalar &high)  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 …) << " ; required precision: " << prec << " ; range: " << low << "," << high << " ; i: " << i <… 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()
71 Scalar high = internal::random<Scalar>(-500,500); in testVectorType() local
72 Scalar low = (size == 1 ? high : internal::random<Scalar>(-500,500)); in testVectorType()
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()
82 const Scalar step = ((size == 1) ? 1 : (high-low)/(size-1)); in testVectorType()
86 m.setLinSpaced(size,low,high); in testVectorType()
95 CALL_SUBTEST( check_extremity_accuracy(m, low, high) ); in testVectorType()
98 …ts<Scalar>::IsInteger) || ((high-low)>=size && (Index(high-low)%(size-1))==0) || (Index(high-low+1… 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()
112 VERIFY( internal::isApprox(m(m.size()-1),high) ); in testVectorType()
114 VERIFY_IS_EQUAL(m(m.size()-1) , high); in testVectorType()
116 CALL_SUBTEST( check_extremity_accuracy(m, low, high) ); in testVectorType()
119 VERIFY( m(m.size()-1) <= high ); in testVectorType()
120 VERIFY( (m.array() <= high).all() ); 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()
147 VERIFY_IS_APPROX( scalar, ScalarMatrix::Constant(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()
153 VERIFY_IS_APPROX(m(size-1), high); in testVectorType()