Changeset 3d4cec7 in tol
- Timestamp:
- Mar 30, 2010, 2:46:55 PM (17 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 69ee043
- Parents:
- 9b1d2fb
- File:
-
- 1 edited
-
tol/bmath/bprdist/slice_sampler.cpp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/bmath/bprdist/slice_sampler.cpp
r9b1d2fb r3d4cec7 104 104 if ( L > lower ) { 105 105 _gx = ( *g )( L, gdata ); 106 if ( !gsl_finite( _gx 0) ) {106 if ( !gsl_finite( _gx ) ) { 107 107 /* found undefined density value while expanding interval */ 108 108 return x0; … … 111 111 if ( R < upper ) { 112 112 _gx = ( *g )( R, gdata ); 113 if ( !gsl_finite( _gx 0) ) {113 if ( !gsl_finite( _gx ) ) { 114 114 /* found undefined density value while expanding interval */ 115 115 return x0; … … 127 127 ++uni_slice_evals; 128 128 _gx = ( *g )( L, gdata ); 129 if ( !gsl_finite( _gx 0) ) {129 if ( !gsl_finite( _gx ) ) { 130 130 /* found undefined density value while expanding interval */ 131 131 L += w; … … 140 140 ++uni_slice_evals; 141 141 _gx = ( *g )( R, gdata ); 142 if ( !gsl_finite( _gx 0) ) {142 if ( !gsl_finite( _gx ) ) { 143 143 /* found undefined density value while expanding interval */ 144 144 R -= w; … … 156 156 ++uni_slice_evals; 157 157 _gx = ( *g )( L, gdata ); 158 if ( !gsl_finite( _gx 0) ) {158 if ( !gsl_finite( _gx ) ) { 159 159 /* found undefined density value while expanding interval */ 160 160 L += w; … … 170 170 ++uni_slice_evals; 171 171 _gx = ( *g )( R, gdata ); 172 if ( !gsl_finite( _gx 0) ) {172 if ( !gsl_finite( _gx ) ) { 173 173 /* found undefined density value while expanding interval */ 174 174 R -= w;
Note: See TracChangeset
for help on using the changeset viewer.
