Skip to content
Snippets Groups Projects
Commit ce671e99 authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

better control of intial conditions for q and R rotations

parent 3df660ad
No related branches found
No related tags found
No related merge requests found
...@@ -140,7 +140,9 @@ int main() ...@@ -140,7 +140,9 @@ int main()
} }
t1 = clock(); t1 = clock();
std::cout << "Time w = R * v: " << (double)(t1 - t0) * 1e9 / CLOCKS_PER_SEC / N << "ns" << std::endl; std::cout << "Time w = R * v: " << (double)(t1 - t0) * 1e9 / CLOCKS_PER_SEC / N << "ns" << std::endl;
std::cout << "v norm change: " << 10*log((long double)v.norm()/(long double)vn) << " dB" << std::endl;
v << 1,2,3; vn = v.norm();
t0 = clock(); t0 = clock();
for (int i = 0; i < N; i++) for (int i = 0; i < N; i++)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment