From bf04e540a2f1fe731e98a881dfe7f79b6f3940ac Mon Sep 17 00:00:00 2001 From: Tilmann Date: Mon, 20 Mar 2023 20:09:37 +0100 Subject: [PATCH] v1.6.0 (#141) --- CHANGELOG.md | 10 +++++++--- CMakeLists.txt | 2 +- README.md | 4 ++-- test/phtree_f_test.cc | 6 +++--- 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b01ead9..6379f2ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,15 +5,18 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ## [Unreleased] +- Nothing yet. + +## [1.6.0] - 2023-03-20 ### Added - Added benchmark for bit operations in `common`. [#128](https://github.com/tzaeschke/phtree-cpp/pull/128) - Added `lower_bounds(key)` to API. [#126](https://github.com/tzaeschke/phtree-cpp/issues/126) - Added `bpt_fixed_vector`, a fixed size flat vector for future use. It can be dropped in for an std::vector. [#124](https://github.com/tzaeschke/phtree-cpp/pull/124) -- Added Chebyshev distance metric `DIstanceChebyshev`. [#129](https://github.com/tzaeschke/phtree-cpp/pull/139) +- Added Chebyshev distance metric `DistanceChebyshev`. [#129](https://github.com/tzaeschke/phtree-cpp/pull/139) ### Changed -- Changed `bpt_vectot` to use `std::destroy` i.o. default dstr. [#132](https://github.com/tzaeschke/phtree-cpp/pull/132) +- Changed `bpt_vector` to use `std::destroy` i.o. default dstr. [#132](https://github.com/tzaeschke/phtree-cpp/pull/132) - Moved B+trees into own namespace. [#131](https://github.com/tzaeschke/phtree-cpp/pull/131) - Moved some stuff in `common` into `nemaspace detail`. [#129](https://github.com/tzaeschke/phtree-cpp/issues/129) - Improved kNN search implementation. This also deprecates the post-increment iterator. @@ -221,7 +224,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Nothing. -[Unreleased]: https://github.com/improbable-eng/phtree-cpp/compare/v1.5.0...HEAD +[Unreleased]: https://github.com/improbable-eng/phtree-cpp/compare/v1.6.0...HEAD +[1.6.0]: https://github.com/improbable-eng/phtree-cpp/compare/v1.5.0...v1.6.0 [1.5.0]: https://github.com/improbable-eng/phtree-cpp/compare/v1.4.0...v1.5.0 [1.4.0]: https://github.com/improbable-eng/phtree-cpp/compare/v1.3.0...v1.4.0 [1.3.0]: https://github.com/improbable-eng/phtree-cpp/compare/v1.2.0...v1.3.0 diff --git a/CMakeLists.txt b/CMakeLists.txt index f9d540ce..5ceb862d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.14) -project(phtree VERSION 1.5.0 +project(phtree VERSION 1.6.0 DESCRIPTION "PH-Tree C++" HOMEPAGE_URL "https://github.com/tzaeschke/phtree-cpp" LANGUAGES CXX) diff --git a/README.md b/README.md index 36246ebf..468a558f 100644 --- a/README.md +++ b/README.md @@ -568,7 +568,7 @@ clang/gcc are: ``` http_archive( name = "phtree", - strip_prefix = "phtree-cpp-v1.5.0", + strip_prefix = "phtree-cpp-v1.6.0", url = "https://github.com/tzaeschke/phtree-cpp", ) ``` @@ -610,7 +610,7 @@ include(FetchContent) FetchContent_Declare( phtree GIT_REPOSITORY https://github.com/tzaeschke/phtree-cpp.git - GIT_TAG v1.5.0 + GIT_TAG v1.6.0 ) FetchContent_MakeAvailable(phtree) ``` diff --git a/test/phtree_f_test.cc b/test/phtree_f_test.cc index 2ad3fab1..55f4983b 100644 --- a/test/phtree_f_test.cc +++ b/test/phtree_f_test.cc @@ -78,8 +78,8 @@ double distance(const TestPoint& p1, const TestPoint& p2) { } template -double distance_L1(const TestPoint& p1, const TestPoint& p2) { - double sum = 0; +float distance_L1(const TestPoint& p1, const TestPoint& p2) { + float sum = 0; for (dimension_t i = 0; i < DIM; i++) { sum += std::abs(p1[i] - p2[i]); } @@ -87,7 +87,7 @@ double distance_L1(const TestPoint& p1, const TestPoint& p2) { } template -double distance_chebyshev(const TestPoint& p1, const TestPoint& p2) { +float distance_chebyshev(const TestPoint& p1, const TestPoint& p2) { float sum = 0; for (dimension_t i = 0; i < DIM; i++) { sum = std::max(sum, std::abs(p1[i] - p2[i]));