2104 Commits

Author SHA1 Message Date
Andrey Semashev
5e9b7b162e Only use console window size if ioctl(TIOCGWINSZ) succeeded. (#418)
This avoids potentially using uninitialized data if ioctl fails. Also, zero-initialize the winsize struct to begin with.
boost-1.90.0
2025-11-28 11:08:55 +01:00
Hans Dembinski
3afe76f91f Add CI for building docs (#415) 2025-06-12 21:19:03 +02:00
Sam Darwin
6eaea7fead Update doc Jamfile (#414) boost-1.89.0 boost-1.90.0.beta1 2025-06-12 18:10:25 +02:00
Hans Dembinski
aa3e67e9ad update changelog 2025-06-12 12:49:45 +02:00
Sam Darwin
17ad23269c Docs build with CRLF (#413) 2025-06-12 09:13:03 +02:00
Hans Dembinski
f859c9fe7e Expanded docs to discuss special cases (#412)
This clarifies how to use histogram::fill efficiently with multi-dimensional histograms, and discusses a workaround for the design choice that Axis::index cannot be overloaded.

And since I haven't build the documentation locally for a long time, and a new computer where I needed to set things up again from scratch, I also added a README.md on how to do that (which is not trivial for boostbook).
2025-06-05 23:14:21 +02:00
Thomas-Barbier-1A
c55b5290af Don't use deprecated form of user-defined literal operator (#408)
* Don't use deprecated form of user-defined literal operator
* add clang warning regarding deprecated literal operator

---------

Co-authored-by: Hans Dembinski <hans.dembinski@gmail.com>
2025-06-05 16:54:54 +02:00
René Ferdinand Rivera Morell
b5cce2833b Add support for modular build structure. (#401)
* Make the library modular usable
* Move inter-lib dependencies to a project variable and into the build targets
* Bump B2 require to 5.2
* Update dependencies used in CI: compiler versions, tools, etc.

---------

Co-authored-by: Hans Dembinski <hans.dembinski@gmail.com>
2025-06-05 15:23:06 +02:00
Hans Dembinski
66842660c0 fix some false positive warnings emitted by msvc (#399)
* fix some false positive warnings emitted by msvc
* make find_package for Python3 more specific
2024-04-25 12:51:47 +02:00
Ruggero Turra
90867e24a4 Add collector accumulator (#390)
Co-authored-by: Hans Dembinski <hans.dembinski@gmail.com>
2024-04-25 09:05:40 +02:00
Hans Dembinski
cd3e1110cb Updates from #370 (#397)
This PR keeps the useful changes from PR #370, which was never finished.
2024-04-24 17:39:24 +02:00
Ed Catmur
b11364eb99 Split out dynamic-only tests (#388)
Compiling tests under Visual Studio 2019 14.29.30133 (19.29.30145.0) fails with a not very helpful error:
```
libs\histogram\test\algorithm_project_test.cpp(186,1): fatal error C1903: unable to recover from previous error(s); stopping compilation
```
This can be fixed by moving the dynamic-only tests into a separate function, so that they are only compiled and run once.

---------

Co-authored-by: Hans Dembinski <hans.dembinski@gmail.com>
2024-04-24 16:08:42 +02:00
Matt Borland
04fb105bc6 Fix python3 variables (#398) 2024-04-24 11:52:19 +02:00
Matt Borland
cda7447c97 Replace deprecated find_package for python (#393)
* Replace deprecated find_package for python
* update cmake minimum version

---------

Co-authored-by: Hans Dembinski <hans.dembinski@gmail.com>
2024-04-23 14:11:46 +02:00
Hans Dembinski
a29729e668 update changelog boost-1.86.0.beta1 boost-1.85.0.beta1 boost-1.88.0 boost-1.87.0.beta1 boost-1.87.0 boost-1.83.0 boost-1.86.0 boost-1.88.0.beta1 boost-1.85.0 boost-1.84.0.beta1 boost-1.84.0 boost-1.83.0.beta1 2023-03-31 09:53:33 +02:00
Hans Dembinski
70b98302a2 Replace detail::span and detail::make_span with implementations in boost::core (#384)
* fix cmake build of benchmarks

* wip

* u

* u

* rename span.hpp to make_span.hpp

* missing file

* also replace make_span
boost-1.82.0 boost-1.82.0.beta1
2023-02-19 17:42:01 +01:00
Hans Dembinski
48ff00b642 further doc improvements (#383) 2022-12-26 16:21:31 +01:00
Hans Dembinski
04946089f4 improve docstrings for axes, explain move issue (#382) 2022-12-26 14:41:18 +01:00
Hans Dembinski
652c7f8ebb try to catch for illegal min,max macros (#381) 2022-12-26 12:14:05 +01:00
Han Jiang
78021d54d8 add parentheses around min and max (#377) 2022-12-24 14:26:14 +01:00
Hans Dembinski
a1aa92deab Update CONTRIBUTING.md 2022-12-23 11:58:59 +01:00
Hans Dembinski
c5905d8827 Update CONTRIBUTING.md 2022-12-23 11:56:45 +01:00
Hans Dembinski
72064c642a increase coverage and fix noexcept (#375) 2022-12-23 01:21:39 +01:00
Andrey Semashev
3804826411 Use std::is_same instead of boost::core::is_same. (#374)
boost::core::is_same is deprecated, so use std::is_same instead.
2022-12-23 00:59:15 +01:00
Hans Dembinski
d475bc9b85 Fixes for latest compilers (#373) 2022-12-23 00:58:31 +01:00
Hans Dembinski
82e75c14b3 update changelog boost-1.81.0 2022-10-18 10:43:18 +02:00
Hans Dembinski
25608fe86a fix sub_array and span in C++20 (#368) boost-1.81.0.beta1 2022-10-03 13:57:08 +02:00
Hans Dembinski
1c9077a6e1 Enable pre-commit (#366) 2022-09-28 12:11:50 +02:00
Jay Gohil
10c19df918 Add fraction accumulator (for calculating efficiencies, etc) (#361)
* Added fraction accumulator
* Added binomial proportion interval computers: Wald, Wilson Score, Clopper Pearson, Jeffreys
* Width of intervals for all classes can be set via deviation or confidence_level
* Support valarray in histogram::fill
* Add fraction and count to user guide

Co-authored-by: Hans Dembinski <hans.dembinski@gmail.com>
Co-authored-by: Hans Dembinski <HDembinski@users.noreply.github.com>
2022-09-28 11:18:46 +02:00
Hans Dembinski
7cf67610f8 make iterator_adaptor easier to use (#364) 2022-09-17 18:35:33 +02:00
Hans Dembinski
4699dbc0e8 fix tests for msvc 2022 (#363) 2022-07-28 19:16:27 +02:00
Baoshuo Ren
0718ae6f10 chore: bump macos runner version (#362)
GitHub Action is sunsetting the macOS 10.15 Actions runner. It will stop working intermittently until being completely removed by 2022-8-30: https://github.blog/changelog/2022-07-20-github-actions-the-macos-10-15-actions-runner-image-is-being-deprecated-and-will-be-removed-by-8-30-22

Co-authored-by: Hans Dembinski <hans.dembinski@gmail.com>
2022-07-27 23:25:50 +02:00
Hans Dembinski
b62d38051e fix for cmake tests boost-1.80.0 2022-07-27 23:04:20 +02:00
Hans Dembinski
9805362012 update changelog 2022-07-25 13:21:58 +02:00
Hans Dembinski
8b1657553d Enable ascii ostream tests on windows (#360) 2022-07-20 10:32:56 +02:00
Hans Dembinski
843cacffbf fix indexed crash for histograms with axes of zero size (physical or logical) (#356) 2022-07-20 09:51:16 +02:00
Hans Dembinski
9caf633366 remove deprecated API, as previously announced (#359) 2022-07-19 23:08:38 +02:00
Hans Dembinski
6ccc6a80a4 disable altered serialiation (#358)
* do not test everything on VS 2022
2022-07-19 22:15:13 +02:00
Hans Dembinski
bebb509224 add ascii test and clarify why tests are skipped (#357) 2022-07-19 21:17:39 +02:00
Hans Dembinski
1a754bac77 Update cmake instructions and add doc of b2filt 2022-07-19 18:21:58 +02:00
Hans Dembinski
d736aab212 Division support for weighted_sum (#351) boost-1.79.0 boost-1.79.0.beta1 boost-1.80.0.beta1 2022-02-10 10:36:07 +01:00
Hans Dembinski
bf7712f0d7 regular and variable axis are closed intervals if overflow bin is absent (#344) 2021-11-15 09:29:14 +01:00
Hans Dembinski
b482598597 cpp17: set axis compile-time options via deduction guide (#340) 2021-11-15 09:29:12 +01:00
Hans Dembinski
8f3a3c07e4 clean up boost-1.78.0 2021-11-15 09:28:35 +01:00
Hans Dembinski
1f1eda5c97 added comment about proven usefulness of this optimization 2021-11-15 09:28:35 +01:00
Hans Dembinski
eef6e5bdbc use new count instead of deprecated thread_safe 2021-11-15 09:28:35 +01:00
Hans Dembinski
b7e69a0cf9 improved doxygen docs 2021-11-15 09:28:23 +01:00
Hans Dembinski
c234637336 fix ci build (#348) 2021-11-15 08:21:02 +01:00
Hans Dembinski
f6577ec473 deprecate accumulators::sum::small and ::large as workaround for bug in windows.h (#343) 2021-11-15 08:18:05 +01:00
Sam Darwin
dcd2315e6b Update metadata (#346) 2021-11-15 08:17:46 +01:00