Skip to content

Commit

Permalink
Explicitly specialize cholesky_insert template function
Browse files Browse the repository at this point in the history
make shogun-unit-test depends on GoogleMock project
  • Loading branch information
vigsterkr committed Nov 18, 2016
1 parent 2306254 commit 95acc60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/shogun/regression/LeastAngleRegression.cpp
Expand Up @@ -424,4 +424,6 @@ SGMatrix<ST> CLeastAngleRegression::cholesky_delete(SGMatrix<ST>& R, int32_t i_k
}

template bool CLeastAngleRegression::train_machine_templated<float64_t>(CDenseFeatures<float64_t> * data);
template bool CLeastAngleRegression::train_machine_templated<float32_t>(CDenseFeatures<float32_t> * data);
template bool CLeastAngleRegression::train_machine_templated<float32_t>(CDenseFeatures<float32_t> * data);
template SGMatrix<float32_t> CLeastAngleRegression::cholesky_insert(const SGMatrix<float32_t>& X, const SGMatrix<float32_t>& X_active, SGMatrix<float32_t>& R, int32_t i_max_corr, int32_t num_active);
template SGMatrix<float64_t> CLeastAngleRegression::cholesky_insert(const SGMatrix<float64_t>& X, const SGMatrix<float64_t>& X_active, SGMatrix<float64_t>& R, int32_t i_max_corr, int32_t num_active);
1 change: 1 addition & 0 deletions tests/unit/CMakeLists.txt
Expand Up @@ -81,6 +81,7 @@ add_executable (discover_gtest_tests
FILE(GLOB_RECURSE UNITTEST_SRC *_unittest.cc)

ADD_EXECUTABLE(shogun-unit-test ${UNITTEST_SRC} ${TEMPLATE_GENERATED_UNITTEST})
add_dependencies(shogun-unit-test GoogleMock)
target_link_libraries(shogun-unit-test shogun gmock gtest ${SANITIZER_LIBRARY})
IF (SANITIZER_FLAGS)
set_target_properties(shogun-unit-test PROPERTIES COMPILE_FLAGS ${SANITIZER_FLAGS})
Expand Down

0 comments on commit 95acc60

Please sign in to comment.