1929 Commits

Author SHA1 Message Date
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
Hans Dembinski
6b767cc2aa
update axis::traits (#217)
* added traits:::is_continuous, traits::value_type
* use of static_options on qualified types is now invalid
2019-09-24 23:05:03 +01:00
Hans Dembinski
c5c251fdbf
return copy instead of reference for scalar types (#218) 2019-09-24 22:41:49 +01:00
pb
d0a1c027ee CONTRIBUTING.md updated (#216)
Clarified that warnings-as-errors should be on, since this is checked by CI and added links to the CI scripts.
2019-09-17 12:43:12 +02:00
Hans Dembinski
937732c88e
fixes for C++20 (#215) 2019-09-12 21:26:16 +02:00
Hans Dembinski
0b7efe6aca
no discard for accessor (#214) 2019-09-12 21:08:19 +02:00
Hans Dembinski
6c5bf59ba1
getting started 04 update (#213) 2019-09-12 20:53:43 +02:00
Hans Dembinski
0d893d4eff
adding weight support for mean accumulator (#212)
changed type of sum to RealType for mean and added serialization tests for builtin accumulators
2019-09-12 08:08:39 +02:00
Hans Dembinski
14f36ea932
new and updated examples for user guide (#210)
* new accmulator examples for user guide
* new weighted profile example
* minor corrections to other examples
2019-09-10 23:19:27 +02:00
Henry Schreiner
35a93a8c81 Fix missing include (#209)
make_default is used in this file, but was not included
2019-09-09 11:25:57 +02:00
Hans Dembinski
af04e75edc
Fix project bug (#207)
fix for a seg fault, when there are too many passed indices
2019-08-25 19:01:09 +02:00
Hans Dembinski
bf9cba189c
Update CMake version to boost/version.hpp 2019-08-25 15:24:50 +02:00
Hans Dembinski
ed573cb40f removing obsolete file 2019-08-25 15:06:41 +02:00
Hans Dembinski
0a6c485d6b new benchmark results 2019-08-24 11:25:37 +02:00
Hans Dembinski
2a58a88390 avoid usage errors 2019-08-24 11:25:37 +02:00
Hans Dembinski
7537d538ad
simplify detail::span
BOOST_ATTRIBUTE_NODISCARD can be removed (causes warnings on some clang versions), since code switches to std::span anyway when it is available
2019-08-23 12:54:18 +02:00
Hans Dembinski
e3a3bc5e09 fix for Apple LLVM 10.0.1 2019-08-23 10:10:24 +02:00
Hans Dembinski
f869fb16d7 separate out rationale into extra section, making overview shorter 2019-08-23 08:59:50 +02:00
Hans Dembinski
93f4b4b1d8 fix the crlf issue, closes #204 2019-08-20 10:50:24 +02:00
Hans Dembinski
edb27cab57 doc fix [ci skip] 2019-08-20 00:07:42 +02:00
Hans Dembinski
016532f011
Histogram fill method (#54)
huge refactor, various speed improvements, potential for further improvements and parallelization
2019-08-19 23:55:43 +02:00
Hans Dembinski
df647cf959
update copyright (#55)
* add missing copyright notices
* workaround for xml_iarchive bug to handle XML with comments
* fixing min/max according to boost guidelines
2019-08-19 16:53:27 +02:00
Hans Dembinski
6df7625740 added axis::rank 2019-08-07 11:20:32 +02:00
Hans Dembinski
2d8e83df6c update of changelog boost-1.71.0 2019-07-12 10:03:52 +02:00
Hans Dembinski
ac79060944
fix axis::traits::update 2019-07-12 09:58:48 +02:00