Commit Graph

1953 Commits

Author SHA1 Message Date
Hans Dembinski
e415be10cd
fix for fill segfault
old code allowed to pass sequences of length 1 with sequence of length N > 1, which is invalid
2019-11-21 12:35:37 +01:00
Hans Dembinski
701d690279 update overview 2019-11-21 00:51:05 +01:00
Hans Dembinski
be058afcaf
fix for axis::get on a variant of pointers
* `axis::get<axis_t>(hist.axis(0))` failed, when hist uses an axis tuple
* added missing test for this case
2019-11-21 00:36:59 +01:00
Hans Dembinski
b1988cd75d
make serialize a member function for null_type 2019-11-21 00:24:32 +01:00
Hans Dembinski
e093ecd4b0
Fixes fill from strings and variant of value types and containers of value types 2019-11-21 00:23:10 +01:00
Hans Dembinski
80a6cb90ed add missing assert message for msvc 2019-11-20 23:24:55 +01:00
Hans Dembinski
d0c1ef5b27
Allow some empty axes 2019-11-18 23:20:34 +01:00
Hans Dembinski
ab4913d3f0 update of changelog 2019-11-12 21:50:49 +01:00
Hans Dembinski
b7fc900e3b Better error messages when fill arguments do not match accumulator requirements 2019-11-06 00:19:41 +01:00
Hans Dembinski
3b495bb1d0 fix for clang_complete 2019-11-06 00:19:41 +01:00
Hans Dembinski
d242c79b18 various improvements to the user guide 2019-11-06 00:17:26 +01:00
Hans Dembinski
9a2f152253
update of user guide and examples 2019-11-05 00:26:55 +01:00
Hans Dembinski
a0f75b335d
Update concepts
* fix documentation of serialization support for all types
* document optional support of weighted fills for custom accumulators
2019-11-04 21:11:19 +01:00
Hans Dembinski
6d7838d8b4
fix for libc++ and c++2a 2019-11-04 20:47:56 +01:00
Hans Dembinski
f56337177d
Fix sample argument bug
fixes: a weight could pass as sample and vice versa
2019-10-31 01:45:02 +01:00
Hans Dembinski
3923472642
bug fix of indexed for array storage 2019-10-30 09:26:54 +01:00
Hans Dembinski
1ff14e723c header fix 2019-10-29 09:39:59 +01:00
Hans Dembinski
9669df7432
reduced usage of ostringstream in exceptions 2019-10-28 20:08:37 +01:00
Hans Dembinski
3b18d9075b
Better deduction guides for axis types and histogram 2019-10-27 17:27:26 +01:00
Hans Dembinski
8b9561fb10 fix logo and update readme 2019-10-27 15:21:50 +01:00
Henry Schreiner
bf7a97ae8b Adding empty(hist, cov) (#245) 2019-10-27 09:42:24 +01:00
Hans Dembinski
b4be538388
Add logo and improve README 2019-10-26 17:36:26 +02:00
Hans Dembinski
469a866ee6
remove some workarounds 2019-10-26 14:02:15 +02:00
Hans Dembinski
4c1caf3462
removing callable_traits
* replacing callable_traits with private implementation
2019-10-26 13:12:45 +02:00
Hans Dembinski
c8b8c4d502
Fix accumulator issues (#72)
* add weighted_mean::sum_of_weights_squared
* sum of default constructed mean and weighted_mean is now equal to default constructed object
* thread-safe returns a reference to self in operators just like the other accumulators
2019-10-26 11:12:29 +02:00
Hans Dembinski
ebabd550a0
Replace detail::compressed_pair with boost::core::empty_value 2019-10-24 21:47:17 +02:00
Hans Dembinski
5e24146062
re-introduce optimizing array_wrapper for serialization 2019-10-22 23:35:36 +01:00
Hans Dembinski
c22e69c4f1
Build system fixes
- CMake: make compile-fail tests fail for the right reasons not because of missing headers
- CMake: run check_odr_test.py
- B2: actually run check_odr_test.py and check_build_system.py
2019-10-22 23:32:27 +01:00
Hans Dembinski
758c38e566
more testing for category axis 2019-10-22 19:23:04 +01:00
Hans Dembinski
84ce3caad4
macro update 2019-10-21 22:18:23 +01:00
Hans Dembinski
9dd4a04a10
Separate serialization code from Boost.Serialization 2019-10-20 21:40:02 +01:00
Hans Dembinski
d68cc4729c
minor serialization update 2019-10-20 15:00:05 +01:00
Hans Dembinski
78679e5fa9 missing headers 2019-10-19 20:09:14 +02:00
Hans Dembinski
94857351cc
fix shrink when value is not exactly equal to bin edge 2019-10-19 19:04:13 +01:00
Hans Dembinski
307b65b7ab
Fix warnings in boost test matrix
* should fix warnings for gcc-6, clang-3.8 to 4.0, msvc-14.1 and 14.2
* should fix errors for clang-6 with cxxstd=17, clang-8 with cxxstd=2a
2019-10-19 15:14:10 +01:00
Hans Dembinski
b12898a366
Throw if user tries to make histogram with too many axes 2019-10-17 15:48:23 +02:00
Hans Dembinski
5a893c467c
fix compile issues on clang with cxxstd=latest
added tests of clang with cxxstd=latest to detect issue
2019-10-17 12:31:40 +02:00
Hans Dembinski
30899cb45d
Merged upgraded display.hpp code into histogram/ostream.hpp
supports all axis bin types and gracefully handles histograms with accumulators
2019-10-17 00:58:37 +02:00
Hans Dembinski
98926dbbb5
CI update, reduce reliance on Travis
* Appveyor now tests gcc-9 and clang with sanitizers
* Travis tests apple-clang on macOS and gcc-5, gcc-8 on linux and produces coverage report
2019-10-12 19:05:00 +02:00
Hans Dembinski
05c1bbfac1
Improve odr test (#59)
* rename link test to odr test and check odr test completeness
* added convenience header for algorithm
* added minimal docs for axis.hpp, accumulators.hpp, algorithm.hpp
* temporarily remove display.hpp (will return in another patch)
2019-10-12 15:12:53 +02:00
Hans Dembinski
6ad7d5bfea
gcc-9 compatiblity fix (#235)
gcc-9 does not like to capture parameter packs with `[&]`.
2019-10-10 11:15:10 +02:00
Henry Schreiner
493a195a54 Fixing missing inline, adding link test (#231) 2019-10-08 10:10:23 +02:00
Hans Dembinski
92a873c746
Faster linearize (#230)
* introduce offset for faster linearization of non-growing axes
* added traits::is_inclusive and constexpr bool inclusive() methods for builtin axes
* bug fixes for fill method when weight array is used with non-inclusive axis and when growing axes are used
* bug fix of axis::options::test(...)
* coverage tested with gcc-8, updated CONTRIBUTING.md with coverage info
2019-10-06 23:03:45 +02:00
Hans Dembinski
0101f698bb
check build system (#228)
make sure that all implemented tests are actually run
2019-09-29 13:33:20 +02:00
Hans Dembinski
ffe3e4d68c
assert on and test invalid combinations of axis options (#227) 2019-09-29 12:56:11 +02:00
Hans Dembinski
93ed93b484
fix comment and make assert condition easier to read (#225) 2019-09-29 10:48:46 +02:00
Hans Dembinski
bfa7edd5db
pass by value (#224) 2019-09-29 10:47:56 +02:00
Hans Dembinski
62a13a4103
minor change for consistency (#223) 2019-09-29 00:00:15 +02:00
pb
892cc9c4d7 ASCII output for 1D histograms (#201) 2019-09-28 16:41:00 +02:00
Hans Dembinski
b4298d6857
faster axis integer value method (#220) 2019-09-27 01:09:25 +02:00