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
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
b7fc900e3b
Better error messages when fill arguments do not match accumulator requirements
2019-11-06 00:19:41 +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
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
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
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
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
Hans Dembinski
937732c88e
fixes for C++20 ( #215 )
2019-09-12 21:26:16 +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
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
ed573cb40f
removing obsolete file
2019-08-25 15:06:41 +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