Skip to content

Commit

Permalink
pybind update; small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Rohde committed Aug 22, 2023
1 parent f8aeac0 commit 5e66493
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pybind11
Submodule pybind11 updated 53 files
+31 −26 .github/workflows/ci.yml
+8 −4 .github/workflows/configure.yml
+2 −2 .github/workflows/pip.yml
+4 −4 .pre-commit-config.yaml
+19 −2 .readthedocs.yml
+6 −5 CMakeLists.txt
+1 −1 README.rst
+1 −1 docs/advanced/embedding.rst
+12 −11 docs/advanced/exceptions.rst
+1 −1 docs/advanced/functions.rst
+29 −0 docs/advanced/misc.rst
+61 −7 docs/changelog.rst
+4 −0 docs/classes.rst
+7 −4 docs/compiling.rst
+2 −1 docs/faq.rst
+86 −40 docs/release.rst
+14 −0 docs/upgrade.rst
+9 −1 include/pybind11/cast.h
+3 −3 include/pybind11/detail/class.h
+5 −8 include/pybind11/detail/common.h
+1 −1 include/pybind11/detail/internals.h
+1 −1 include/pybind11/detail/type_caster_base.h
+2 −2 include/pybind11/numpy.h
+51 −12 include/pybind11/pybind11.h
+23 −2 include/pybind11/pytypes.h
+97 −0 include/pybind11/typing.h
+1 −1 pybind11/_version.py
+4 −7 tests/CMakeLists.txt
+2 −2 tests/cross_module_interleaved_error_already_set.cpp
+1 −0 tests/extra_python_package/test_files.py
+4 −4 tests/pybind11_cross_module_tests.cpp
+1 −1 tests/test_class.cpp
+0 −3 tests/test_cmake_build/CMakeLists.txt
+4 −4 tests/test_cmake_build/installed_embed/CMakeLists.txt
+4 −4 tests/test_cmake_build/installed_function/CMakeLists.txt
+4 −4 tests/test_cmake_build/installed_target/CMakeLists.txt
+4 −4 tests/test_cmake_build/subdirectory_embed/CMakeLists.txt
+4 −4 tests/test_cmake_build/subdirectory_function/CMakeLists.txt
+4 −4 tests/test_cmake_build/subdirectory_target/CMakeLists.txt
+17 −0 tests/test_eigen_matrix.cpp
+5 −0 tests/test_eigen_matrix.py
+47 −13 tests/test_exceptions.cpp
+1 −1 tests/test_exceptions.h
+9 −1 tests/test_exceptions.py
+44 −0 tests/test_kwargs_and_defaults.cpp
+32 −0 tests/test_kwargs_and_defaults.py
+11 −1 tests/test_pytypes.cpp
+35 −0 tests/test_pytypes.py
+2 −2 tests/test_type_caster_pyobject_ptr.cpp
+9 −1 tools/pybind11Common.cmake
+3 −1 tools/pybind11Config.cmake.in
+7 −5 tools/pybind11NewTools.cmake
+6 −4 tools/pybind11Tools.cmake
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def build_extension(self, ext):

setup(
name='Fred-Frechet',
version='1.14.3',
version='1.14.4',
author='Dennis Rohde',
author_email='[email protected]',
description='A fast, scalable and light-weight C++ Fréchet and DTW distance library, exposed to python and focused on clustering of polygonal curves.',
Expand Down
2 changes: 2 additions & 0 deletions src/simplification.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@ Curve approximate_minimum_error_simplification(const Curve &curve, const curve_s
const auto infty = std::numeric_limits<distance_t>::infinity();
const curve_size_t n = curve.size(), m = n - 1;

if (ell >= m) return curve;

std::vector<std::vector<distance_t>> d(n, std::vector<distance_t>(ell, infty));
std::vector<std::vector<Points>> c(n, std::vector<Points>(ell, Points(curve.dimensions())));

Expand Down

0 comments on commit 5e66493

Please sign in to comment.