This commit is contained in:
hans.dembinski@gmail.com
2017-02-14 00:16:08 +00:00
parent dae1908b51
commit 7395666458
2 changed files with 2 additions and 5 deletions

View File

@@ -14,7 +14,6 @@ The following plot shows results of a benchmark on a 9 GHz Macbook Pro. Random n
[[hs_sd] [[classref boost::histogram::static_histogram static_histogram] with [classref boost::histogram::adaptive_storage adaptive_storage]]]
[[hd_ss] [[classref boost::histogram::dynamic_histogram dynamic_histogram] with [classref boost::histogram::container_storage<std::vector<int>> container_storage<std::vector<int>>]]]
[[hd_sd] [[classref boost::histogram::dynamic_histogram dynamic_histogram] with [classref boost::histogram::adaptive_storage adaptive_storage]]]
]
[classref boost::histogram::static_histogram static_histogram] is always faster than [classref boost::histogram::dynamic_histogram dynamic_histogram] and safer to use, as more checks are done at compile time. It is recommended when working in C++ only. [classref boost::histogram::adaptive_storage adaptive_storage] is faster than [classref boost::histogram::container_storage container_storage] for larger histograms, because it uses the cache more effectively due to its smaller memory consumption per bin.

View File

@@ -1,8 +1,6 @@
[section Tutorial]
[section Example 1: 1d-histogram in C++]
How to make a 1d-histogram in C++ and to fill it:
Example 1: How to make a 1d-histogram in C++ and to fill it.
[c++]
```
@@ -55,7 +53,7 @@ How to make a 1d-histogram in C++ and to fill it:
}
```
Example 2: Fill a 2d-histogram in Python with data in Numpy arrays
Example 2: How to make, fill, and use a 2d-histogram in Python.
[python]
```