IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 778963c7 authored by Maximilian Reininghaus's avatar Maximilian Reininghaus :vulcan:
Browse files

basic documentation

parent 540fc685
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,14 @@ ...@@ -11,6 +11,14 @@
namespace corsika { namespace corsika {
namespace utl { namespace utl {
/**
* This functions saves a boost::histogram into a numpy file. Only rather basic axis
* types are supported: regular, variable, integer, category<int>. Only "ordinary" bin
* counts (i.e. a double or int) are supported, nothing fancy like profiles.
*
* Note that this function makes a temporary, dense copy of the histogram, which could
* be an issue for huge sizes (e.g. for high dimensions)
*/
template <typename hist_type> template <typename hist_type>
void save_hist(hist_type const& h, std::string const& filename) { void save_hist(hist_type const& h, std::string const& filename) {
auto const rank = h.rank(); auto const rank = h.rank();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment