I noticed that even for small problems using the current Ipfp function "error.margins" for the last margin is not always precisely equal to 0, which it should be, as it is the last margin scaled. I am not sure what causes this but I believe it must be connected to the way sweep is implemented in R together with float/double precision.
This is, however, fixed in the Rcpp version. For an example see the following and the attached file.
test_data.zip
Hi again,
I noticed that even for small problems using the current Ipfp function "error.margins" for the last margin is not always precisely equal to 0, which it should be, as it is the last margin scaled. I am not sure what causes this but I believe it must be connected to the way sweep is implemented in R together with float/double precision. This is, however, fixed in the Rcpp version. For an example see the following and the attached file. test_data.zip