Skip to content

Commit

Permalink
v1.6.0 (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
tzaeschke authored Mar 20, 2023
1 parent 2fdfdf4 commit bf04e54
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
10 changes: 7 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
```
Expand Down Expand Up @@ -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)
```
Expand Down
6 changes: 3 additions & 3 deletions test/phtree_f_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,16 @@ double distance(const TestPoint<DIM>& p1, const TestPoint<DIM>& p2) {
}

template <dimension_t DIM>
double distance_L1(const TestPoint<DIM>& p1, const TestPoint<DIM>& p2) {
double sum = 0;
float distance_L1(const TestPoint<DIM>& p1, const TestPoint<DIM>& p2) {
float sum = 0;
for (dimension_t i = 0; i < DIM; i++) {
sum += std::abs(p1[i] - p2[i]);
}
return sum;
}

template <dimension_t DIM>
double distance_chebyshev(const TestPoint<DIM>& p1, const TestPoint<DIM>& p2) {
float distance_chebyshev(const TestPoint<DIM>& p1, const TestPoint<DIM>& p2) {
float sum = 0;
for (dimension_t i = 0; i < DIM; i++) {
sum = std::max(sum, std::abs(p1[i] - p2[i]));
Expand Down

0 comments on commit bf04e54

Please sign in to comment.