Skip to content

Commit 0ecaed5

Browse files
authored
Merge pull request #199 from jvdp1/docimp
Addition of links for Ford
2 parents 699c134 + 40033e1 commit 0ecaed5

13 files changed

+136
-99
lines changed

doc/specs/index.md

+8-15
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,17 @@ This is and index/directory of the specifications (specs) for each new module/fe
1111

1212
## Experimental Features & Modules
1313

14-
- [error](./stdlib_experimental_error.html)
15-
- Catching and handling errors
16-
- [IO](./stdlib_experimental_io.html)
17-
- Input/output helper & convenience
18-
- [linalg](./stdlib_experimental_linalg.html)
19-
- Linear Algebra
20-
- [optval](./stdlib_experimental_optval.html)
21-
- Fallback value for optional arguments
22-
- [quadrature](./stdlib_experimental_quadrature.html)
23-
- Numerical integration
24-
- [stats](./stdlib_experimental_stats.html)
25-
- Descriptive Statistics
14+
- [error](./stdlib_experimental_error.html) - Catching and handling errors
15+
- [IO](./stdlib_experimental_io.html) - Input/output helper & convenience
16+
- [linalg](./stdlib_experimental_linalg.html) - Linear Algebra
17+
- [optval](./stdlib_experimental_optval.html) - Fallback value for optional arguments
18+
- [quadrature](./stdlib_experimental_quadrature.html) - Numerical integration
19+
- [stats](./stdlib_experimental_stats.html) - Descriptive Statistics
2620

2721
## Missing specs
2822

29-
@todo
30-
Populate this section with a list of missing specs and link to their
31-
[sources on GH](https://github.com/fortran-lang/stdlib/tree/master/src).
23+
- [ascii](https://github.com/fortran-lang/stdlib/blob/master/src/stdlib_experimental_ascii.f90)
24+
- [kinds](https://github.com/fortran-lang/stdlib/blob/master/src/stdlib_experimental_kinds.f90)
3225

3326
## Released/Stable Features & Modules
3427

doc/specs/stdlib_experimental_error.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: experimental_error
66

77
[TOC]
88

9-
## `[[stdlib_experimental_error(module):check(subroutine)]]` - Checks the value of a logical condition
9+
## `check` - Checks the value of a logical condition
1010

1111
### Description
1212

@@ -78,7 +78,7 @@ program demo_check3
7878
end program demo_check3
7979
```
8080

81-
## `[[stdlib_experimental_error:error_stop]]` - aborts the program
81+
## `error_stop` - aborts the program
8282

8383
### Description
8484

doc/specs/stdlib_experimental_io.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Loads a rank-2 `array` from a text file.
1313

1414
### Syntax
1515

16-
`call loadtxt(filename, array)`
16+
`call [[stdlib_experimental_io(module):loadtxt(interface)]](filename, array)`
1717

1818
### Arguments
1919

@@ -45,7 +45,7 @@ Returns the unit number of a file opened to read, to write, or to read and write
4545

4646
### Syntax
4747

48-
`u = open(filename [, mode] [, iostat])`
48+
`u = [[stdlib_experimental_io(module):open(function)]](filename [, mode] [, iostat])`
4949

5050
### Arguments
5151

@@ -97,7 +97,7 @@ Saves a rank-2 `array` into a text file.
9797

9898
### Syntax
9999

100-
`call savetxt(filename, array)`
100+
`call [[stdlib_experimental_io(module):savetxt(interface)]](filename, array)`
101101

102102
### Arguments
103103

doc/specs/stdlib_experimental_linalg.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Create a diagonal array or extract the diagonal elements of an array
1414

1515
### Syntax
1616

17-
`d = diag(a [, k])`
17+
`d = [[stdlib_experimental_linalg(module):diag(interface)]](a [, k])`
1818

1919
### Arguments
2020

@@ -99,7 +99,7 @@ Construct the identity matrix
9999

100100
## Syntax
101101

102-
`I = eye(n)`
102+
`I = [[stdlib_experimental_linalg(module):eye(function)]](n)`
103103

104104
### Arguments
105105

@@ -136,7 +136,7 @@ Trace of a matrix (rank-2 array)
136136

137137
### Syntax
138138

139-
`result = trace(A)`
139+
`result = [stdlib_experimental_linalg(module):trace(interface)](A)`
140140

141141
### Arguments
142142

doc/specs/stdlib_experimental_optval.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This function is intended to be called in a procedure with one or more `optional
1616

1717
### Syntax
1818

19-
`result = optval(x, default)`
19+
`result = [[stdlib_experimental_optval(module):optval(interface)]](x, default)`
2020

2121
### Arguments
2222

doc/specs/stdlib_experimental_quadrature.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ Returns the trapezoidal rule integral of an array `y` representing discrete samp
1414

1515
### Syntax
1616

17-
`result = trapz(y, x)`
17+
`result = [[stdlib_experimental_quadrature(module):trapz(interface)]](y, x)`
1818

19-
`result = trapz(y, dx)`
19+
`result = [[stdlib_experimental_quadrature(module):trapz(interface)]](y, dx)`
2020

2121
### Arguments
2222

@@ -44,7 +44,7 @@ program demo_trapz
4444
! 22.0
4545
print *, trapz(y, 0.5)
4646
! 11.0
47-
end program
47+
end program demo_trapz
4848
```
4949

5050
## `trapz_weights` - trapezoidal rule weights for given abscissas
@@ -55,7 +55,7 @@ Given an array of abscissas `x`, computes the array of weights `w` such that if
5555

5656
### Syntax
5757

58-
`result = trapz_weights(x)`
58+
`result = [[stdlib_experimental_quadrature(module):trapz_weights(interface)]](x)`
5959

6060
### Arguments
6161

@@ -79,7 +79,7 @@ program demo_trapz_weights
7979
w = trapz_weight(x)
8080
print *, dot_product(w, y)
8181
! 22.0
82-
end program
82+
end program demo_trapz_weights
8383
8484
```
8585

doc/specs/stdlib_experimental_stats.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The scaling can be changed with the logical argument `corrected`. If `corrected`
2525

2626
### Syntax
2727

28-
`result = cov(array, dim [, mask [, corrected]])`
28+
`result = [[stdlib_experimental_stats(module):cov(interface)]](array, dim [, mask [, corrected]])`
2929

3030
### Arguments
3131

@@ -70,9 +70,9 @@ Returns the mean of all the elements of `array`, or of the elements of `array` a
7070

7171
### Syntax
7272

73-
`result = mean(array [, mask])`
73+
`result = [[stdlib_experimental_stats(module):mean(interface)]](array [, mask])`
7474

75-
`result = mean(array, dim [, mask])`
75+
`result = [[stdlib_experimental_stats(module):mean(interface)]](array, dim [, mask])`
7676

7777
### Arguments
7878

@@ -131,9 +131,9 @@ The _k_-th order moment about `center` is defined as :
131131

132132
### Syntax
133133

134-
`result = moment(array, order [, center [, mask]])`
134+
`result = [[stdlib_experimental_stats(module):moment(interface)]](array, order [, center [, mask]])`
135135

136-
`result = moment(array, order, dim [, center [, mask]])`
136+
`result = [[stdlib_experimental_stats(module):moment(interface)]](array, order, dim [, center [, mask]])`
137137

138138
### Arguments
139139

@@ -192,9 +192,9 @@ The use of the term `n-1` for scaling is called Bessel 's correction. The scalin
192192

193193
### Syntax
194194

195-
`result = var(array [, mask [, corrected]])`
195+
`result = [[stdlib_experimental_stats(module):var(interface)]](array [, mask [, corrected]])`
196196

197-
`result = var(array, dim [, mask [, corrected]])`
197+
`result = [[stdlib_experimental_stats(module):var(interface)]](array, dim [, mask [, corrected]])`
198198

199199
### Arguments
200200

src/stdlib_experimental_error.f90

+6-9
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
module stdlib_experimental_error
2-
!! Provide support for catching and handling errors ([spec](../page/specs/stdlib_experimental_error.html))
3-
!!
4-
!! __Read the [specification here](../page/specs/stdlib_experimental_error.html).__
2+
!! Provides support for catching and handling errors
3+
!! ([Specification](../page/specs/stdlib_experimental_error.html))
54
use, intrinsic :: iso_fortran_env, only: stderr => error_unit
65
use stdlib_experimental_optval, only: optval
76
implicit none
87
private
98

109
interface ! f{08,18}estop.f90
1110
module subroutine error_stop(msg, code)
12-
!! Provides a call to `error stop` and allows the user to specify a code and message.
13-
!!
14-
!! __Read the [specification here](..//page/specs/stdlib_experimental_error.html#description_1).__
11+
!! Provides a call to `error stop` and allows the user to specify a code and message
12+
!! ([Specification](..//page/specs/stdlib_experimental_error.html#description_1))
1513
character(*), intent(in) :: msg
1614
integer, intent(in), optional :: code
1715
end subroutine error_stop
@@ -22,9 +20,8 @@ end subroutine error_stop
2220
contains
2321

2422
subroutine check(condition, msg, code, warn)
25-
!! Checks the value of a logical condition. ([spec](../page/specs/stdlib_experimental_error.html#description))
26-
!!
27-
!! __Read the [specification here](../page/specs/stdlib_experimental_error.html#description).__
23+
!! Checks the value of a logical condition
24+
!! ([Specification](../page/specs/stdlib_experimental_error.html#description))
2825
!!
2926
!!##### Behavior
3027
!!

0 commit comments

Comments
 (0)