Skip to content

Commit 4bea3fd

Browse files
committed
include neighborhood utility
1 parent 6e3e12a commit 4bea3fd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

inst/include/pc/neighbor.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ namespace neighbor
9292
inline std::vector<std::vector<size_t>> NN4Mat(
9393
const std::vector<std::vector<double>>& mat,
9494
size_t k,
95-
const std::string method& = "euclidean",
95+
const std::string& method = "euclidean",
9696
bool include_self = false,
9797
bool byrow = true)
9898
{
@@ -223,7 +223,7 @@ namespace neighbor
223223
const std::vector<size_t>& lib,
224224
const std::vector<size_t>& pred,
225225
size_t k,
226-
const std::string method& = "euclidean",
226+
const std::string& method = "euclidean",
227227
bool include_self = false,
228228
bool byrow = true)
229229
{

0 commit comments

Comments
 (0)