Commit Graph

177 Commits

Author SHA1 Message Date
Hans Dembinski
d326514ac8 all tests pass for adapted vector and array, map still failing 2019-01-11 00:06:25 +01:00
Hans Dembinski
a17a6c677c wip, histogram_test fails 2019-01-11 00:06:25 +01:00
Hans Dembinski
c6e24e4747 refactor 2019-01-11 00:06:25 +01:00
Hans Dembinski
2164ea85b3 refactoring 2019-01-11 00:06:25 +01:00
Hans Dembinski
6664a8684c all tests without streamers passing, need to fix streamers 2019-01-11 00:06:25 +01:00
Hans Dembinski
c02e7b0f22 wip, axis_test passes 2019-01-11 00:06:25 +01:00
Hans Dembinski
7b44f83ed1 WIP, added tests of failing behavior 2019-01-11 00:06:25 +01:00
Hans Dembinski
ac0e503436 adapted test 2018-09-15 22:40:47 +02:00
Hans Dembinski
654b5a2be6 removing all python 2018-09-15 13:29:34 +02:00
Hans Dembinski
d2a95786f2 throwing out static_axes and dynamic_axes aliases 2018-08-24 10:51:58 +02:00
Hans Dembinski
9cf5b96478 fix warnings about comparison of signed and unsigned 2018-08-23 13:07:26 +02:00
Hans Dembinski
4e6004af06 fixing a few tests 2018-08-22 12:43:00 +02:00
Hans Dembinski
f1c59deb04 make axis::variable allocator aware 2018-08-21 18:45:52 +02:00
Hans Dembinski
affe12e4cd init, WIP, compilation broken 2018-08-16 00:37:18 +02:00
Hans Dembinski
d4b1715451 all tests pass 2018-08-13 01:24:41 +02:00
Hans Dembinski
be5d706769 unified histogram template 2018-08-12 22:25:32 +02:00
Hans Dembinski
109a7183ab WIP: everything compiles but most of histogram class is broken 2018-08-06 00:31:45 +02:00
Hans Dembinski
d30f269b3f suppress warning on msvc 2018-08-01 01:13:35 +02:00
Hans Dembinski
e8bd056d8e fixed all tests 2018-07-31 22:30:03 +02:00
Hans Dembinski
15c44e9856 fix 2018-07-22 19:05:52 +02:00
Hans Dembinski
72ee4a4f53 fix 2018-07-22 18:56:38 +02:00
Hans Dembinski
55118d329c fix 2018-07-22 18:33:25 +02:00
Hans Dembinski
c67329ffb4 more coverage 2018-07-22 17:30:49 +02:00
Hans Dembinski
8dd0458250 axes behave consistent now: oflow bin added for category axis, NaN always ends up in oflow bin for all axes 2018-07-22 12:13:14 +02:00
Hans Dembinski
d4dbae92f5 clang-format everything 2018-07-21 17:27:18 +02:00
Hans Dembinski
47d4d85301 use static_cast_visitor to simplify class implementation, removed custom axis::cast, use standard static_cast instead 2018-07-21 16:19:33 +02:00
Hans Dembinski
2198ff883f clang format everything with new house style 2018-07-19 22:19:01 +02:00
Hans Dembinski
6ff37c06f8 renamed bincount method to size, removed inline where it is not needed, added inline for free functions, made histogram iterator light-weight, put index cache into histogram class 2018-07-16 00:34:01 +02:00
Hans Dembinski
13db98a65b minor code refactoring, better performance for dynamic histogram without inline 2018-07-15 22:29:50 +02:00
Hans Dembinski
c8352f1e50 additional test 2018-07-15 16:49:51 +02:00
Hans Dembinski
bb1518141d more coverage 2018-07-14 19:39:52 +02:00
Hans Dembinski
bca4892d62 cleanup 2018-07-14 17:22:13 +02:00
Hans Dembinski
aed4255fc0 clang format 2018-07-14 16:59:22 +02:00
Hans Dembinski
bb9289c258 refactoring completed, all tests pass 2018-07-14 15:27:08 +02:00
Hans Dembinski
052585b488 work in progress, everything compiles again 2018-07-14 01:37:34 +02:00
Hans Dembinski
c7bca32b59 cleanup 2018-07-13 01:35:34 +02:00
Hans Dembinski
06d6635684 better coverage, more consistent exceptions, better handling of transforms 2018-07-11 22:41:42 +02:00
Hans Dembinski
da5f42b3da support for operator[] 2018-07-08 19:12:13 +02:00
Hans Dembinski
b9a35f7b4f renamed method bin to method at 2018-07-05 09:10:04 +02:00
Hans Dembinski
dfafc863fe more coverage 2018-07-05 01:05:30 +02:00
Hans Dembinski
d03bf52ffa fix bug 2018-07-04 21:43:58 +02:00
Hans Dembinski
8d25563438 increase test coverage, simplify testing of python stuff, add support for tests which intentionally trigger an assert 2018-07-04 21:34:34 +02:00
Hans Dembinski
f9203a1159 fixed build, removed implicit conversion of weight_counter to double, make serialization really optional 2018-07-03 00:08:34 +02:00
Hans Dembinski
56ffce6223 fix of build system and some gcc warnings 2018-07-02 21:21:46 +02:00
Hans Dembinski
5fc67137e4 issue 45: use operator() to fill; issue 44: removed sum(), use std::for_each or std::accumulate instead; added support for stl containers as fill and index arguments 2018-07-01 21:41:09 +02:00
Hans Dembinski
e6c9d717c0 replacing bin method with operator() 2018-03-28 16:51:53 +02:00
Hans Dembinski
dac1a0c0be clang format 2018-03-28 13:22:10 +02:00
Hans Dembinski
23378345e7 STL support, making weight_counter implicitly convertible to RealType so that stl algorithms work with iterators 2018-03-28 12:05:10 +02:00
Hans Dembinski
8dc93c83d2 clang format 2018-03-15 21:06:41 +01:00
Hans Dembinski
88ccfee628 simplified and corrected headers 2018-03-14 23:16:35 +01:00
Hans Dembinski
acb0a38d20 fixed iterator::bin() method; got rid of explicit specialization; more tests 2018-03-13 21:18:23 +01:00
Hans Dembinski
37ccf6d80c finally elegant iteration over axis bins 2018-03-11 19:59:03 +01:00
Hans Dembinski
fe4bd1701d switched to lazy interval_view to improve performance 2018-03-11 17:08:13 +01:00
Hans Dembinski
f14cca8f97 more fixes for travis 2018-03-10 23:19:16 +01:00
Hans Dembinski
5a546b0971 clang-format 2018-03-10 22:51:54 +01:00
Hans Dembinski
8b11d8cdc5 fixed all the bugs and all the tests 2018-03-01 18:11:50 +01:00
Hans Dembinski
f1b711d634 separate bin type properties from histogram interface, made interface more flexible, histogram_test is failing, needs investigation 2018-03-01 15:57:55 +01:00
Hans Dembinski
d2e2d23c77 clang-format 2018-02-28 23:14:28 +01:00
Hans Dembinski
3e825b449a make type of weight argument flexible, added sample type, some simplification to fill argument parsing 2018-02-28 23:07:36 +01:00
Hans Dembinski
6b691543b8 added variance iterator, lin_visitor does not need to be templated 2017-12-10 22:01:59 +01:00
Hans Dembinski
6068e96dab clang format and renaming iterator header 2017-12-10 20:39:27 +01:00
Hans Dembinski
d6b06a0022 back to histogram master template 2017-12-10 20:05:35 +01:00
Hans Dembinski
739625e531 update copyright notice and renamed axis_iterator 2017-11-28 22:21:03 +01:00
Hans Dembinski
470492c748 adding value_iterator for histogram, make weight_counter public, allow passing weight_counter as argument to array_storage 2017-11-28 15:55:18 +01:00
Hans Dembinski
c5094149de refactoring 2017-11-13 10:54:23 +01:00
Hans Dembinski
210414434a finishing user guide 2017-11-12 16:26:19 +01:00
Hans Dembinski
e0c8138539 fix the reduce mess 2017-11-11 12:51:05 +01:00
Hans Dembinski
c5d2eabda0 adding reduce-remove 2017-11-10 23:13:48 +01:00
Hans Dembinski
d3bba7c4bc fat extension of user gude 2017-11-09 23:02:13 +01:00
Hans Dembinski
776bcbd4fe improving documentation and tests of using iterator ranges, expanded guide 2017-11-09 16:35:01 +01:00
Hans Dembinski
dbd05fd1cd refactoring, allow iteration over axis::any 2017-11-08 18:10:20 +01:00
Hans Dembinski
baf81b9d62 fixing issues with generic axis type 2017-11-08 10:48:25 +01:00
Hans Dembinski
6d1c1b2c62 better diag 2017-11-07 20:38:11 +01:00
Hans Dembinski
1a12c574c6 getting rid of utility functions, tested and fixed bugs related to unusual axis value types 2017-11-07 19:29:22 +01:00
Hans Dembinski
52dfdbc585 clang format 2017-11-06 11:50:05 +01:00
Hans Dembinski
5dee79f556 improving and testing operators 2017-11-05 23:44:37 +01:00
Hans Dembinski
76c596dfc4 allocator is gone, accepting any sequence in python for fill is back, refactoring in adaptive_storage 2017-11-05 21:54:14 +01:00
Hans Dembinski
9bb392906d different python interface for transformed axes, more code sharing for array_bases in adaptive_storage, reactivate axis_size test, moved bimap into a pointer to make category axis smaller 2017-11-04 20:03:53 +01:00
Hans Dembinski
14c43544bc added pow transform, transforms can now be used from python 2017-11-04 00:15:50 +01:00
Hans Dembinski
141e41adc7 better support for transforms 2017-11-03 19:39:07 +01:00
Hans Dembinski
757d4b0ca4 interface break for axis, new category axis 2017-11-02 21:43:04 +01:00
Hans Dembinski
0be8c7b2e2 simpler 2017-10-27 20:42:20 +02:00
Hans Dembinski
3ba9e8e417 make integer type variable, use enum for uoflow option instead of bool for clarity 2017-10-18 18:07:10 +02:00
Hans Dembinski
69ab4c1030 better code example checks, better support for dynamic reduce 2017-10-18 15:51:16 +02:00
Hans Dembinski
c07162e7a8 fixed reduce function 2017-10-13 16:26:41 +02:00
Hans Dembinski
7e8b2bb403 replaced container_storage with array_storage, simplified comparison between storage types 2017-10-13 11:20:59 +02:00
Hans Dembinski
dbb34cf5c6 clang-format 2017-06-04 11:53:57 +02:00
Hans Dembinski
ef4898ddc2 put axis in extra namespace, put python axis objects in axis submodule 2017-06-04 11:53:15 +02:00
Hans Dembinski
6ec89079e0 fixing issues with left,right,center 2017-06-03 14:00:13 +02:00
Hans Dembinski
986e64a7cb reduce feature implemented 2017-06-03 11:52:06 +02:00
Hans Dembinski
def7d6b05a use new add method and clangformat 2017-05-30 19:26:22 +02:00
Hans Dembinski
b94d21a46f Merge branch 'master' into reduce 2017-05-30 19:03:23 +02:00
Hans Dembinski
1f93088554 testing and fixing bug related to adding histogram with weighted entries 2017-05-30 18:57:53 +02:00
Hans Dembinski
3ad8a9e4b8 adding reduce with tests 2017-05-14 18:44:23 +02:00
Hans Dembinski
9606c38a64 prepare/change interface for point-wise adding 2017-05-05 00:13:44 +02:00
Hans Dembinski
c59fa052e1 fixing doc and renaming default_axes to builtin_axes 2017-05-03 00:05:19 +02:00
Hans Dembinski
9272cf896b nicer fill interface and clang-format 2017-05-02 14:22:27 +02:00
Hans Dembinski
aecfab98bb test and fix mixed assignment 2017-04-27 14:30:10 +02:00
Hans Dembinski
784e482037 merge tests for static and dynamic variant 2017-04-27 11:38:11 +02:00
Hans Dembinski
26aa012d76 preparing addition of static_histogram 2017-01-03 11:01:51 +01:00