|
 |
"jr" <cre### [at] gmail com> wrote:
> great stuff.
It is :)
Even better is this computer graphics lesson on bounding boxes :D
https://www.cs.tau.ac.il/~dcor/Graphics/cg-slides/3d_geometry_lesson2.pdf
> 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.
Most excellent.
I'm going to work on creating a test data set, and try to show the SVD results
and maybe implement the reorientation.
Given that the code generates a random matrix using
generate_matrix(matrix, matrix_size, matrix_size);
and then computes the svd via
svd(matrix, s, u, v);
Tell me, Master Yoda,
How do I take a file with the <x, y, z> vectors and read it into the compiled
program so that _that_ is now the "matrix" argument for the svd function call?
Should I supply a filename and loop down the rows, reading in x, y, and z?
or is the a way to just do some kind of OS command line thing, adding in a
std::cin >> matrix; line?
Post a reply to this message
|
 |