Skip to content

Commit 3517656

Browse files
committed
1 parent 6ab8f80 commit 3517656

File tree

3 files changed

+26
-10
lines changed

3 files changed

+26
-10
lines changed

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -707,12 +707,8 @@ Test and build infrastructure is generously provided by the following services:
707707
708708
[coverage-url-develop]: https://codecov.io/github/stdlib-js/stdlib/branch/develop
709709
710-
[dependencies-image]: https://img.shields.io/david/stdlib-js/stdlib
711-
712710
[dependencies-url]: https://socket.dev/npm/package/@stdlib/stdlib/dependencies
713711
714-
[dev-dependencies-image]: https://img.shields.io/david/dev/stdlib-js/stdlib
715-
716712
[dev-dependencies-url]: https://socket.dev/npm/package/@stdlib/stdlib/dependencies -->
717713
718714
[chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg

docs/gfortran.md

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
<!--
2+
3+
@license Apache-2.0
4+
5+
Copyright (c) 2024 The Stdlib Authors.
6+
7+
Licensed under the Apache License, Version 2.0 (the "License");
8+
you may not use this file except in compliance with the License.
9+
You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing, software
14+
distributed under the License is distributed on an "AS IS" BASIS,
15+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
See the License for the specific language governing permissions and
17+
limitations under the License.
18+
19+
-->
20+
121
# gfortran
222

323
> GNU Fortran [compiler][gfortran].
@@ -77,7 +97,7 @@ $ gfortran [options] -fsyntax-only <file>
7797

7898
### Combining C and Fortran
7999

80-
A common scenario in numeric computing is exposing numeric computing libraries written in Fortran as C functions. To illustrate how one might proceed, consider a Fortran function which adds two numbers and returns the sum.
100+
A common scenario in numerical computing is exposing numerical computing libraries written in Fortran as C functions. To illustrate how one might proceed, consider a Fortran function which adds two numbers and returns the sum.
81101

82102
```fortran
83103
!>
@@ -201,7 +221,7 @@ $ gfortran -std=f95 -free-form -O3 -fno-underscoring -c -o add.o add.f
201221
$ gfortran -std=f95 -free-form -O3 -fno-underscoring -c -o addsub.o addsub.f
202222
```
203223

204-
Note that `-fno-underscoring` prevents [gfortran][gfortran] from modifying function names. This ensures that the name used in our C code matches the exported symbol. Be careful, however, as non-mangled names may conflict with existing symbols.
224+
Note that `-fno-underscoring` prevents [GFortran][gfortran] from modifying function names. This ensures that the name used in our C code matches the exported symbol. Be careful, however, as non-mangled names may conflict with existing symbols.
205225

206226
Next, we compile our C files.
207227

@@ -210,7 +230,7 @@ $ gcc -std=c99 -O3 -I add_fortran.h -I add.h -c -o add_f.o add_f.c
210230
$ gcc -std=c99 -O3 -I add_fortran.h -I add.h -c -o main.o main.c
211231
```
212232

213-
Finally, we link the object files using [gfortran][gfortran], thus generating an executable.
233+
Finally, we link the object files using [GFortran][gfortran], thus generating an executable.
214234

215235
```bash
216236
$ gfortran -o main add.o addsub.o add_f.o main.o
@@ -249,6 +269,6 @@ $ ./main
249269

250270
[c-with-fortran]: https://www.math.utah.edu/software/c-with-fortran.html
251271

252-
[intel-mkl]: https://software.intel.com/en-us/node/528729#IX_COMPLEX_BLAS_LEVEL_1_1
272+
[intel-mkl]: https://www.intel.com/content/www/us/en/docs/onemkl/developer-guide-windows/2023-1/call-blas-funcs-return-complex-values-in-c-code.html
253273

254274
<!-- </definitions> -->

lib/node_modules/@stdlib/blas/base/drotg/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ var bool = ( y === out );
6868

6969
## Notes
7070

71-
- `drotg()` corresponds to the [BLAS][blas] level 1 function [`drotg`][drotg].
71+
- `drotg()` corresponds to the [BLAS][blas] level 1 function [`drotg`][blas-drotg].
7272

7373
</section>
7474

@@ -107,7 +107,7 @@ for ( i = 0; i < 100; i++ ) {
107107

108108
[blas]: http://www.netlib.org/blas
109109

110-
[drotg]: https://netlib.org/lapack/explore-html/df/d28/group__single__blas__level1_gaafa91c51f75df6c3f2182032a221c2db.html
110+
[blas-drotg]: https://www.netlib.org/lapack/explore-html/d7/dc5/group__rotg_gaafa91c51f75df6c3f2182032a221c2db.html#gaafa91c51f75df6c3f2182032a221c2db
111111

112112
</section>
113113

0 commit comments

Comments
 (0)