Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd19dad8

Browse files
committed
add simpler overload
1 parentf28c9e3 commitd19dad8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎rapidfuzz_reference/Levenshtein.hpp‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ Matrix<size_t> levenshtein_matrix(InputIt1 first1, InputIt1 last1, InputIt2 firs
4343
return matrix;
4444
}
4545

46+
template<typename Sentence1,typename Sentence2>
47+
Matrix<size_t>levenshtein_matrix(const Sentence1& s1,const Sentence2& s2,
48+
LevenshteinWeightTable weights = {1,1,1})
49+
{
50+
returnlevenshtein_matrix(std::begin(s1),std::end(s1),std::begin(s2),std::end(s2), weights);
51+
}
52+
4653
template<typename InputIt1,typename InputIt2>
4754
size_tlevenshtein_distance(InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2,
4855
LevenshteinWeightTable weights = {1,1,1},

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp