mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-04 11:53:47 +00:00
[core] Use constexpr when possible
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
@@ -307,7 +307,7 @@ void LocalityScorer::GetDocVecs(uint32_t localityId, vector<DocVec> & dvs) const
|
||||
|
||||
double LocalityScorer::GetSimilarity(QueryVec & qv, IdfMap & docIdfs, vector<DocVec> & dvc) const
|
||||
{
|
||||
double const kScale = 1e6;
|
||||
double constexpr kScale = 1e6;
|
||||
|
||||
double similarity = 0;
|
||||
for (auto & dv : dvc)
|
||||
|
||||
Reference in New Issue
Block a user