V
vectorizor
Hi guys,
My program deals with with lots of large matrices. To easily debug it,
I would like to be able to dump them in files, so that I can easily
import then in other software (think matlab, excel) so I can analyse
the intermediate results. To make sure the data can be understood by
other programs, a space need to be included between each cell, and a
return at the end of each row (row-major order). Hence at the moment,
the dump code looks something like
for each row
for each col
fprintf("%f \t"); // a float followed by a space
end
fprintf("\n"); // to start a new line
end
It works ok, but as I said, the matrices are rather large, so it's
slooow. Has anybody some good ideas to significantly speed up the
process?
Thanks
victor
My program deals with with lots of large matrices. To easily debug it,
I would like to be able to dump them in files, so that I can easily
import then in other software (think matlab, excel) so I can analyse
the intermediate results. To make sure the data can be understood by
other programs, a space need to be included between each cell, and a
return at the end of each row (row-major order). Hence at the moment,
the dump code looks something like
for each row
for each col
fprintf("%f \t"); // a float followed by a space
end
fprintf("\n"); // to start a new line
end
It works ok, but as I said, the matrices are rather large, so it's
slooow. Has anybody some good ideas to significantly speed up the
process?
Thanks
victor