|
|
hi,
"Bald Eagle" <cre### [at] netscapenet> wrote:
> Looks like the nan values were because the matrix.resize operations didn't fill
> in the new positions with 0.
another (valuable) lesson. initialise all your vars, always.
> Fixed it one way, until I needed to fix it another ;)
> But now it runs without errors or nan entries.
great stuff.
> > I suppose I need to dump everything to a text file, rather than to std::cout ...
no urgent need, use the OS tools. when you dump (CSV) values, you could:
$ ./a.out {arg} | tee myfile.csv
'tee(1)' splits its input, displaying it _and_ writing it to file.
regards, jr
Post a reply to this message
|
|