Hi I was wondering if there is any function library that lets me do this conveniently or if you have any suggestions as to how I might do this elegantly without writing lines and lines of code (which is what I ended up doing with ofstream).
Loop over i
Loop over j
Evaluate f(i*alpha,j);
Write f to column i;
Something like this. I need to compare a hundred different eigenfunction of a QM problem and I rather not write a file per value of alpha, will make plotting easier as well.
I did google without any usuable results, appreciate any help 🙂
If your algorithm lets you to do this, refactor the loop to write row-wise: