[petsc-users] PetscBinaryRead in matlab

Alexander Grayver agrayver at gfz-potsdam.de
Thu Apr 19 08:41:42 CDT 2012


On 19.04.2012 15:39, Jed Brown wrote:
> Does replacing linspace with (1:2:2*m*n-1) work without floor?
>
> There isn't a guarantee that whatever rounding error committed by 
> linspace always rounds away from zero (so that floor sends it in the 
> right direction).

You're right, it is undefined. Your variant works.

-- 
Regards,
Alexander



More information about the petsc-users mailing list