You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-7Lines changed: 6 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
4
4
5
-
StatsLib is a templated C++ library of statistical distribution functions featuring unique compile-time computing capabilities and seamless integration with several popular linear algebra libraries.
5
+
StatsLib is a templated C++ library of statistical distribution functions, featuring unique compile-time computing capabilities and seamless integration with several popular linear algebra libraries.
6
6
7
7
Features:
8
8
* A header-only library of probability density functions, cumulative distribution functions, quantile functions, and random sampling methods.
@@ -77,7 +77,7 @@ The following options should be declared **before** including the StatsLib heade
77
77
#defineSTATS_GO_INLINE
78
78
```
79
79
80
-
* OpenMP functionality is enabled by default if the `_OPENMP` macro is detected (e.g., by invoking `-fopenmp` with a GCC or Clang compiler). To explicitly enable OpenMP features use:
80
+
* OpenMP functionality is enabled by default if the `_OPENMP` macro is detected (e.g., by invoking `-fopenmp` with GCC or Clang). To explicitly enable OpenMP features use:
81
81
```cpp
82
82
#defineSTATS_USE_OPENMP
83
83
```
@@ -131,7 +131,7 @@ All of these functions have matrix-based equivalents using Armadillo, Blaze, and
* The randomization functions (`r*`) can output random matrices of arbitrary size. For example,</li>
134
+
* The randomization functions (`r*`) can output random matrices of arbitrary size. For example, For example, the following code will generate a 100-by-50 matrix of iid draws from a Gamma(3,2) distribution:</li>
StatsLib is designed to operate equally well as a compile-time computation engine. Compile-time computation allows the compiler to replace function calls (e.g., `dnorm(0,0,1)`) with static values in the source code. That is, functions are evaluated during the compilation process, rather than at run-time. This capability is made possible due to the templated `constexpr` design of the library and can be verified by inspecting the assembly code generated by the compiler.
190
189
191
-
The compile-time features are enabled using the `constexpr` specifier. The example below computes the pdf, cdf, and quantile function of the Laplace distribution:
190
+
The compile-time features are enabled using the `constexpr` specifier. The example below computes the pdf, cdf, and quantile function of the Laplace distribution.
0 commit comments