|
|
hi,
"Bald Eagle" <cre### [at] netscapenet> wrote:
> "jr" <cre### [at] gmailcom> 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
cheers. I'll have a look at this tonight.
> ...
> 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?
the latter, I'm confident, although somewhat unsure of exact syntax.
suggestion: attach your working version of svd.cpp, so we talk same code. I'll
play with it here to test; are the matrices filled just with floats?
regards, jr.
Post a reply to this message
|
|