Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ff852d2

Browse files
authored
Rename stdlib_stats_distribution_PRNG to stdlib_random (#545)
1 parent 0d1cc1c commit ff852d2

File tree

7 files changed

+18
-18
lines changed

7 files changed

+18
-18
lines changed

‎CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
[#146](https://github.com/fortran-lang/stdlib/pull/146)
4343
- new procedures `gauss_legendre`, `gauss_legendre_lobatto`
4444
[#313](https://github.com/fortran-lang/stdlib/pull/313)
45+
- new module `stdlib_random`
46+
[#271](https://github.com/fortran-lang/stdlib/pull/271)
4547
- new module `stdlib_sorting`
4648
- new procedures `sort`, `ord_sort` and `sort_index`
4749
[#408](https://github.com/fortran-lang/stdlib/pull/408)
@@ -61,8 +63,6 @@
6163
[#191](https://github.com/fortran-lang/stdlib/pull/191)
6264
- new procedure `median`
6365
[#426](https://github.com/fortran-lang/stdlib/pull/426)
64-
- new module `stdlib_stats_distribution_PRNG`
65-
[#271](https://github.com/fortran-lang/stdlib/pull/271)
6666
- new module `stdlib_string_type`
6767
- new derived types `string_type`
6868
[#320](https://github.com/fortran-lang/stdlib/pull/320)

‎doc/specs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ This is and index/directory of the specifications (specs) for each new module/fe
2121
- [math](./stdlib_math.html) - General purpose mathematical functions
2222
- [optval](./stdlib_optval.html) - Fallback value for optional arguments
2323
- [quadrature](./stdlib_quadrature.html) - Numerical integration
24+
- [random](./stdlib_random.html) - Probability Distributions random number generator
2425
- [sorting](./stdlib_sorting.html) - Sorting of rank one arrays
2526
- [stats](./stdlib_stats.html) - Descriptive Statistics
26-
- [stats_distribution_PRNG](./stdlib_stats_distribution_PRNG.html) - Probability Distributions random number generator
2727
- [string\_type](./stdlib_string_type.html) - Basic string support
2828
- [strings](./stdlib_strings.html) - String handling and manipulation routines
2929
- [stringlist_type](./stdlib_stringlist_type.html) - 1-Dimensional list of strings

‎doc/specs/stdlib_stats_distribution_PRNG.md renamed to ‎doc/specs/stdlib_random.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: stats_distribution
2+
title: stats_random
33
---
44

55
# Statistical Distributions -- Pseudorandom Number Generator Module
@@ -18,7 +18,7 @@ Set or get the seed value before calling the probability distribution pseudorand
1818

1919
### Syntax
2020

21-
`call [[stdlib_stats_distribution_PRNG(module):random_seed(interface)]](put, get)`
21+
`call [[stdlib_random(module):random_seed(interface)]](put, get)`
2222

2323
### Arguments
2424

@@ -34,7 +34,7 @@ Return a scalar of type `integer`.
3434

3535
```fortran
3636
program demo_random_seed
37-
use stdlib_stats_distribution_PRNG, only : random_seed
37+
use stdlib_random, only : random_seed
3838
implicit none
3939
integer :: seed_put, seed_get
4040
@@ -55,7 +55,7 @@ Generate an integer pseudorandom number in a specific range [-2^k, 2^k - 1] acco
5555

5656
### Syntax
5757

58-
`result = [[stdlib_stats_distribution_PRNG(module):dist_rand(interface)]](n)`
58+
`result = [[stdlib_random(module):dist_rand(interface)]](n)`
5959

6060
### Arguments
6161

@@ -69,7 +69,7 @@ Return a scalar of type `integer`.
6969

7070
```fortran
7171
program demo_dist_rand
72-
use stdlib_stats_distribution_PRNG, only : dist_rand, random_seed
72+
use stdlib_random, only : dist_rand, random_seed
7373
implicit none
7474
integer :: put, get
7575

‎src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ set(fppFiles
2828
stdlib_quadrature.fypp
2929
stdlib_quadrature_trapz.fypp
3030
stdlib_quadrature_simps.fypp
31-
stdlib_stats_distribution_PRNG.fypp
31+
stdlib_random.fypp
3232
stdlib_math.fypp
3333
stdlib_math_linspace.fypp
3434
stdlib_math_logspace.fypp

‎src/Makefile.manual

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ SRCFYPP = \
1212
stdlib_quadrature.fypp \
1313
stdlib_quadrature_trapz.fypp \
1414
stdlib_quadrature_simps.fypp \
15+
stdlib_random.fypp \
1516
stdlib_sorting.fypp \
1617
stdlib_sorting_ord_sort.fypp \
1718
stdlib_sorting_sort.fypp \
@@ -29,7 +30,6 @@ SRCFYPP = \
2930
stdlib_math.fypp \
3031
stdlib_math_linspace.fypp \
3132
stdlib_math_logspace.fypp \
32-
stdlib_stats_distribution_PRNG.fypp \
3333
stdlib_string_type.fypp \
3434
stdlib_string_type_constructor.fypp \
3535
stdlib_strings.fypp \
@@ -145,7 +145,7 @@ stdlib_stats_var.o: \
145145
stdlib_optval.o \
146146
stdlib_kinds.o \
147147
stdlib_stats.o
148-
stdlib_stats_distribution_PRNG.o: \
148+
stdlib_random.o: \
149149
stdlib_kinds.o \
150150
stdlib_error.o
151151
stdlib_string_type.o: stdlib_ascii.o \

‎src/stdlib_stats_distribution_PRNG.fypp renamed to ‎src/stdlib_random.fypp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#:include "common.fypp"
2-
module stdlib_stats_distribution_PRNG
2+
module stdlib_random
33
use stdlib_kinds, only: int8, int16, int32, int64
44
use stdlib_optval, only: optval
55
use stdlib_error, only: error_stop
@@ -18,8 +18,8 @@ module stdlib_stats_distribution_PRNG
1818
!! Version experimental
1919
!!
2020
!! Generation of random integers with different kinds
21-
!! ([Specification](../page/specs/stdlib_stats_distribution_PRNG.html#
22-
!! description))
21+
!! ([Specification](../page/specs/stdlib_random.html#
22+
!! dist_rand-get-a-random-integer-with-specified-kind))
2323
#:for k1, t1 in INT_KINDS_TYPES
2424
module procedure dist_rand_${t1[0]}$${k1}$
2525
#:endfor
@@ -29,8 +29,8 @@ module stdlib_stats_distribution_PRNG
2929
!! Version experimental
3030
!!
3131
!! Set seed value for random number generator
32-
!! ([Specification](../page/specs/stdlib_stats_distribution_PRNG.html#
33-
!! description))
32+
!! ([Specification](../page/specs/stdlib_random.html#
33+
!! random_seed-set-or-get-a-value-of-seed-to-the-probability-distribution-pseudorandom-number-generator))
3434
!!
3535
#:for k1, t1 in INT_KINDS_TYPES
3636
module procedure random_distribution_seed_${t1[0]}$${k1}$
@@ -148,4 +148,4 @@ module stdlib_stats_distribution_PRNG
148148
end subroutine random_distribution_seed_${t1[0]}$${k1}$
149149

150150
#:endfor
151-
end module stdlib_stats_distribution_PRNG
151+
end module stdlib_random

‎src/tests/stats/test_distribution_PRNG.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
program test_distribution_PRNG
22
use stdlib_error, only : check
33
use stdlib_kinds, only: int8, int16, int32, int64
4-
use stdlib_stats_distribution_PRNG, only : random_seed, dist_rand
4+
use stdlib_random, only : random_seed, dist_rand
55

66
implicit none
77
logical :: warn = .true.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /