Changeset 3d4cec7 in tol


Ignore:
Timestamp:
Mar 30, 2010, 2:46:55 PM (17 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
69ee043
Parents:
9b1d2fb
Message:

refs 888
Sometimes _gx0 is evaluated but _gx is checked with gsl_finite(_gx)

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@2073 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/bmath/bprdist/slice_sampler.cpp

    r9b1d2fb r3d4cec7  
    104104  if ( L > lower ) {
    105105    _gx = ( *g )( L, gdata );
    106     if ( !gsl_finite( _gx0 ) ) {
     106    if ( !gsl_finite( _gx ) ) {
    107107      /* found undefined density value while expanding interval */
    108108      return x0;
    … …  
    111111  if ( R < upper ) {
    112112    _gx = ( *g )( R, gdata );
    113     if ( !gsl_finite( _gx0 ) ) {
     113    if ( !gsl_finite( _gx ) ) {
    114114      /* found  undefined density value while expanding interval */
    115115      return x0;
    … …  
    127127      ++uni_slice_evals;
    128128      _gx = ( *g )( L, gdata );
    129       if ( !gsl_finite( _gx0 ) ) {
     129      if ( !gsl_finite( _gx ) ) {
    130130        /* found  undefined density value while expanding interval */
    131131        L += w;
    … …  
    140140      ++uni_slice_evals;
    141141      _gx = ( *g )( R, gdata );
    142       if ( !gsl_finite( _gx0 ) ) {
     142      if ( !gsl_finite( _gx ) ) {
    143143        /* found  undefined density value while expanding interval */
    144144        R -= w;
    … …  
    156156      ++uni_slice_evals;
    157157      _gx = ( *g )( L, gdata );
    158       if ( !gsl_finite( _gx0 ) ) {
     158      if ( !gsl_finite( _gx ) ) {
    159159        /* found  undefined density value while expanding interval */
    160160        L += w;
    … …  
    170170      ++uni_slice_evals;
    171171      _gx = ( *g )( R, gdata );
    172       if ( !gsl_finite( _gx0 ) ) {
     172      if ( !gsl_finite( _gx ) ) {
    173173        /* found  undefined density value while expanding interval */
    174174        R -= w;
Note: See TracChangeset for help on using the changeset viewer.