sampler cleanup

This commit is contained in:
Nicolas Robidoux 2010-06-03 01:34:38 +00:00
parent f897eee7e9
commit 332c6b478e
1 changed files with 11 additions and 11 deletions

View File

@ -1160,16 +1160,15 @@ lbbicubic( const double c00,
const double quad_d2zdxdy11 = NOHALO_MIN( quad_d2zdxdy11iiii, fourth_limit11); const double quad_d2zdxdy11 = NOHALO_MIN( quad_d2zdxdy11iiii, fourth_limit11);
/* /*
* Four times the part of the result which only uses cross * Part of the result which does not need derivatives:
* derivatives:
*/ */
const double newval3 = c00dxdy * quad_d2zdxdy00 const double newval1 = c00 * dos_two
+ +
c10dxdy * quad_d2zdxdy10 c10 * dos_thr
+ +
c01dxdy * quad_d2zdxdy01 c01 * tre_two
+ +
c11dxdy * quad_d2zdxdy11; c11 * tre_thr;
/* /*
* Twice the part of the result which only needs first derivatives. * Twice the part of the result which only needs first derivatives.
@ -1191,15 +1190,16 @@ lbbicubic( const double c00,
c11dy * dble_dzdy11; c11dy * dble_dzdy11;
/* /*
* Part of the result which does not need derivatives: * Four times the part of the result which only uses cross
* derivatives:
*/ */
const double newval1 = c00 * dos_two const double newval3 = c00dxdy * quad_d2zdxdy00
+ +
c10 * dos_thr c10dxdy * quad_d2zdxdy10
+ +
c01 * tre_two c01dxdy * quad_d2zdxdy01
+ +
c11 * tre_thr; c11dxdy * quad_d2zdxdy11;
const double newval = newval1 + .5 * newval2 + .25 * newval3; const double newval = newval1 + .5 * newval2 + .25 * newval3;