diff options
| author | Tyge Løvset <[email protected]> | 2020-12-16 13:31:13 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2020-12-16 13:31:13 +0100 |
| commit | 191b637299bf909d6b7b4db6e5d5e45964574a1c (patch) | |
| tree | 4048c86232979ad9254813ebd6523ef22a1ba7ee | |
| parent | a9498a706b53820817039caba6574f6a34ae78ff (diff) | |
| download | STC-modified-191b637299bf909d6b7b4db6e5d5e45964574a1c.tar.gz STC-modified-191b637299bf909d6b7b4db6e5d5e45964574a1c.zip | |
Renamed crandom to crand, including renaming of relevant files.
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | docs/cpqueue_api.md | 2 | ||||
| -rw-r--r-- | docs/crand_api.md (renamed from docs/crandom_api.md) | 6 | ||||
| -rw-r--r-- | examples/benchmark.cpp | 2 | ||||
| -rw-r--r-- | examples/birthday.c | 2 | ||||
| -rw-r--r-- | examples/ex_gaussian.c | 2 | ||||
| -rw-r--r-- | examples/heap.c | 2 | ||||
| -rw-r--r-- | examples/list.c | 2 | ||||
| -rw-r--r-- | examples/priority.c | 2 | ||||
| -rw-r--r-- | examples/queue.c | 2 | ||||
| -rw-r--r-- | examples/random.c | 2 | ||||
| -rw-r--r-- | examples/rngtest.c | 2 | ||||
| -rw-r--r-- | stc/clist.h | 2 | ||||
| -rw-r--r-- | stc/cpqueue.h | 2 | ||||
| -rw-r--r-- | stc/cqueue.h | 2 | ||||
| -rw-r--r-- | stc/crand.h (renamed from stc/crandom.h) | 2 |
16 files changed, 18 insertions, 18 deletions
@@ -17,7 +17,7 @@ An elegant, fully typesafe, generic, customizable, user-friendly, consistent, an - [***cpqueue*** - A **priority queue** adapter type](docs/cpqueue_api.md)
- [***cptr*** - Support for pointers and shared pointers in containers](docs/cptr_api.md)
- [***copt*** - Implements *copt_get()*, a **getopt_long**-like function](docs/copt_api.md)
-- [***crandom*** - A few very efficent modern **random number generators**](docs/crandom_api.md)
+- [***crand*** - A few very efficent modern **random number generators**](docs/crand_api.md)
- [***ccommon*** - Collection of general definitions](docs/ccommon_api.md)
The usage of the containers is quite similar to the C++ standard containers, so it should be easy if you are familiar with them.
diff --git a/docs/cpqueue_api.md b/docs/cpqueue_api.md index ac33e68f..09cca96d 100644 --- a/docs/cpqueue_api.md +++ b/docs/cpqueue_api.md @@ -55,7 +55,7 @@ void cpqueue_X_erase_at(cpqueue_X* self, size_t idx); ```c #include <stdio.h> #include "stc/cpqueue.h" -#include "stc/crandom.h" +#include "stc/crand.h" using_cvec(i, int64_t); using_cpqueue(i, cvec_i, >); // adaptor type, '>' = min-heap diff --git a/docs/crandom_api.md b/docs/crand_api.md index 5fc89e78..1a26519c 100644 --- a/docs/crandom_api.md +++ b/docs/crand_api.md @@ -1,4 +1,4 @@ -# Module crandom: Pseudo Random Number Generators +# Module crand: Pseudo Random Number Generators This describes the API of module **crand**. It contains a *64-bit PRNG*, and can generate bounded uniform and normal distributed random numbers. @@ -30,7 +30,7 @@ correlation tests, i.e. N interleaved streams with only one-bit differences in i All cstr definitions and prototypes may be included in your C source file by including a single header file. ```c -#include "stc/crandom.h" +#include "stc/crand.h" ``` ## Methods @@ -57,7 +57,7 @@ RNG, around 68% of the values fall within the range [*mean* - *stddev*, *mean* + #include <stdio.h> #include <time.h> #include <math.h> -#include "stc/crandom.h" +#include "stc/crand.h" #include "stc/cstr.h" #include "stc/cmap.h" #include "stc/cvec.h" diff --git a/examples/benchmark.cpp b/examples/benchmark.cpp index 206da5ce..e919bc3f 100644 --- a/examples/benchmark.cpp +++ b/examples/benchmark.cpp @@ -1,6 +1,6 @@ #include <stdio.h>
#include <time.h>
-#include <stc/crandom.h>
+#include <stc/crand.h>
#include <stc/cstr.h>
#include <stc/cmap.h>
#include "others/khash.h"
diff --git a/examples/birthday.c b/examples/birthday.c index ac05a5f5..a13fa8c9 100644 --- a/examples/birthday.c +++ b/examples/birthday.c @@ -2,7 +2,7 @@ #include <stdio.h>
#include <time.h>
-#include <stc/crandom.h>
+#include <stc/crand.h>
#include <stc/cmap.h>
#include <stc/cvec.h>
diff --git a/examples/ex_gaussian.c b/examples/ex_gaussian.c index a3842aae..0fed913f 100644 --- a/examples/ex_gaussian.c +++ b/examples/ex_gaussian.c @@ -1,7 +1,7 @@ #include <stdio.h>
#include <time.h>
#include <math.h>
-#include "stc/crandom.h"
+#include "stc/crand.h"
#include "stc/cstr.h"
#include "stc/cmap.h"
#include "stc/cvec.h"
diff --git a/examples/heap.c b/examples/heap.c index 83f9d97f..b45e5ada 100644 --- a/examples/heap.c +++ b/examples/heap.c @@ -1,6 +1,6 @@ #include <stdio.h>
#include <time.h>
-#include <stc/crandom.h>
+#include <stc/crand.h>
#include <stc/cvec.h>
#include <stc/cpqueue.h>
diff --git a/examples/list.c b/examples/list.c index 4f6d16e1..a838b3bd 100644 --- a/examples/list.c +++ b/examples/list.c @@ -1,7 +1,7 @@ #include <stdio.h>
#include <time.h>
#include <stc/clist.h>
-#include <stc/crandom.h>
+#include <stc/crand.h>
using_clist(fx, double);
int main() {
diff --git a/examples/priority.c b/examples/priority.c index f6b4ecf0..40fb395e 100644 --- a/examples/priority.c +++ b/examples/priority.c @@ -4,7 +4,7 @@ #include <stc/cvec.h>
#include <stc/cpqueue.h>
#include <stc/cmap.h>
-#include <stc/crandom.h>
+#include <stc/crand.h>
using_cvec(i, int64_t);
using_cpqueue(i, cvec_i, >); // min-heap (increasing values)
diff --git a/examples/queue.c b/examples/queue.c index 57362493..2499a9ab 100644 --- a/examples/queue.c +++ b/examples/queue.c @@ -1,4 +1,4 @@ -#include <stc/crandom.h>
+#include <stc/crand.h>
#include <stc/cqueue.h>
#include <stdio.h>
diff --git a/examples/random.c b/examples/random.c index de1fe778..94a68607 100644 --- a/examples/random.c +++ b/examples/random.c @@ -1,7 +1,7 @@ #include <stdio.h>
#include <time.h>
#include <math.h>
-#include <stc/crandom.h>
+#include <stc/crand.h>
#include <stc/cstr.h>
int main()
diff --git a/examples/rngtest.c b/examples/rngtest.c index db7a8093..f52099c7 100644 --- a/examples/rngtest.c +++ b/examples/rngtest.c @@ -1,6 +1,6 @@ #include <stdio.h>
#include <time.h>
-#include <stc/crandom.h>
+#include <stc/crand.h>
#ifdef __cplusplus
#include <random>
#endif
diff --git a/stc/clist.h b/stc/clist.h index 6594aa8c..838edf07 100644 --- a/stc/clist.h +++ b/stc/clist.h @@ -31,7 +31,7 @@ #include <stdio.h>
#include <stc/clist.h>
- #include <stc/crandom.h>
+ #include <stc/crand.h>
using_clist(ix, int64_t);
int main() {
diff --git a/stc/cpqueue.h b/stc/cpqueue.h index c1dfde17..12834a47 100644 --- a/stc/cpqueue.h +++ b/stc/cpqueue.h @@ -23,7 +23,7 @@ /* Priority-Queue adapter (implemented as heap), default uses cvec.
- #include <stc/crandom.h>
+ #include <stc/crand.h>
#include <stc/cpqueue.h>
using_cvec(f, float);
using_cpqueue(f, cvec_f, >); // min-heap (increasing values)
diff --git a/stc/cqueue.h b/stc/cqueue.h index f385aa4a..f16e1aeb 100644 --- a/stc/cqueue.h +++ b/stc/cqueue.h @@ -25,7 +25,7 @@ /* Queue adapter, default uses clist.
- #include <stc/crandom.h>
+ #include <stc/crand.h>
#include <stc/cqueue.h>
using_clist(i, int);
using_cqueue(i, clist_i);
diff --git a/stc/crandom.h b/stc/crand.h index 8a67e3ce..54fbcc10 100644 --- a/stc/crandom.h +++ b/stc/crand.h @@ -25,7 +25,7 @@ /*
// crand: Pseudo-random number generator
-#include "stc/crandom.h"
+#include "stc/crand.h"
int main() {
uint64_t seed = 123456789;
crand_t rng = crand_init(seed);
|
