Skip to content

Commit

Permalink
ENH: unused start/stop
Browse files Browse the repository at this point in the history
  • Loading branch information
tvandera committed Nov 20, 2019
1 parent dd868a1 commit 12a5162
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/smurff-cpp/Tests/tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,15 +242,15 @@ TEST_CASE("Benchmark from old 'data.cpp' file", "[!hide]")
bmrandn(U);

Eigen::MatrixXd M(K,K) ;
double start = tick();
//double start = tick();
for(int i=0; i<R; ++i) {
M.setZero();
for(int j=0; j<N;++j) {
const auto &col = U.col(j);
M.noalias() += col * col.transpose();
}
}
double stop = tick();
//double stop = tick();
//std::cout << "norm U: " << U.norm() << std::endl;
//std::cout << "norm M: " << M.norm() << std::endl;
//std::cout << "MatrixXd: " << stop - start << std::endl;
Expand All @@ -262,15 +262,15 @@ TEST_CASE("Benchmark from old 'data.cpp' file", "[!hide]")
U = nrandn(K,N);

Eigen::Matrix<double,K,K> M;
double start = tick();
//double start = tick();
for(int i=0; i<R; ++i) {
M.setZero();
for(int j=0; j<N;++j) {
const auto &col = U.col(j);
M.noalias() += col * col.transpose();
}
}
double stop = tick();
//double stop = tick();
//std::cout << "norm U: " << U.norm() << std::endl;
//std::cout << "norm M: " << M.norm() << std::endl;
//std::cout << "MatrixXd: " << stop - start << std::endl;
Expand Down

0 comments on commit 12a5162

Please sign in to comment.