After creating my array, various routines are supposed to fill in the appropriate values. After some more inspection, I suspect the weird behavior I'm seeing is a bug in my collection of array filling routines that I wouldn't have seen had everything been zeroed by default.
Realistically, regardless of the default behavior I probably just need to write better tests. On Mon, Jan 12, 2015 at 11:57 AM, Seth <[email protected]> wrote: > > > On Monday, January 12, 2015 at 10:01:13 AM UTC-8, Tim Holy wrote: >> >> I didn't look at your example code at all; it's just a general remark >> that if >> you allocate an array with Array(Float64, m, n), until you fill it with >> something it might contain nans. That can, of course, contaminate other >> arrays >> if used in computation. But this may not be what's happening here. >> >> --Tim >> >> > Incidentally, there's a discussion here: > https://github.com/JuliaLang/julia/issues/9147 relating to possibly > changing the behavior of newly-allocated memory. >
