# stdlib

**URL:** https://fortran-lang.discourse.group/c/help/stdlib/17.md

[Latest](https://fortran-lang.discourse.group/latest.md) · [Categories](https://fortran-lang.discourse.group/categories.md)

---

## [About the stdlib category](https://fortran-lang.discourse.group/t/about-the-stdlib-category/4500)

<div class="topic-metadata">

**Author:** [@awvwgk](https://fortran-lang.discourse.group/u/awvwgk)\
**Replies:** 0

</div>

This category is for asking questions about the Fortran standard library (stdlib)

---

## [Help in fixing the bug regarding xdp kind when used in a unique function](https://fortran-lang.discourse.group/t/help-in-fixing-the-bug-regarding-xdp-kind-when-used-in-a-unique-function/10981)

<div class="topic-metadata">

**Author:** [@Sinan](https://fortran-lang.discourse.group/u/Sinan)\
**Replies:** 4\
**Last updated:** [June 23, 2026, 6:48am UTC](https://fortran-lang.discourse.group/t/help-in-fixing-the-bug-regarding-xdp-kind-when-used-in-a-unique-function/10981 "2026-06-23T06:48:05Z")

</div>

Hi everyone, I’m working on an implementation for a unique function inside stdlib which returns unique values in an array. I implemented it and while testing, I am getting a bug for xdp kinds. I am giving a working ske…

---

## [Questions on stdlib CMake with MSVS & ifx in Windows](https://fortran-lang.discourse.group/t/questions-on-stdlib-cmake-with-msvs-ifx-in-windows/10769)

<div class="topic-metadata">

**Author:** [@TimNye](https://fortran-lang.discourse.group/u/TimNye)\
**Replies:** 2\
**Last updated:** [March 12, 2026, 2:17pm UTC](https://fortran-lang.discourse.group/t/questions-on-stdlib-cmake-with-msvs-ifx-in-windows/10769 "2026-03-12T14:17:14Z")

</div>

Hello everyone, I’m trying to build stdlib with MSVS 2022 Version 17.14.25, ifx 2025.3, CMake version 4.3.0-rc2 in Win11 x64 with limited success. Out of the box, CMake can’t find the identity of the Fortran compiler, …

---

## [Proposal: Add optional arguments to savetxt](https://fortran-lang.discourse.group/t/proposal-add-optional-arguments-to-savetxt/10587)

<div class="topic-metadata">

**Author:** [@fiolj](https://fortran-lang.discourse.group/u/fiolj)\
**Replies:** 26\
**Last updated:** [February 24, 2026, 8:31pm UTC](https://fortran-lang.discourse.group/t/proposal-add-optional-arguments-to-savetxt/10587 "2026-02-24T20:31:27Z")

</div>

Hello, I’ve been away from the stdlib project for a long time, and could not find discussions over some features of savetxt that I find useful, following mostly numpy savetxt behavior. I’ve opened an issue in github do …

---

## [Design decision needed for Big-Endian test failures](https://fortran-lang.discourse.group/t/design-decision-needed-for-big-endian-test-failures/10740)

<div class="topic-metadata">

**Author:** [@jatin](https://fortran-lang.discourse.group/u/jatin)\
**Replies:** 0\
**Last updated:** [February 24, 2026, 11:41am UTC](https://fortran-lang.discourse.group/t/design-decision-needed-for-big-endian-test-failures/10740 "2026-02-24T11:41:48Z")

</div>

Hi everyone, I’ve been working on a fix for the test\_hash\_functions failures on big-endian architectures (s390x, powerpc) reported in Debian Issue #1128. I have mapped out the fixes, but I need a maintainer’s decision …

---

## [Fixing the big-endian test failures (Issue #1128)](https://fortran-lang.discourse.group/t/fixing-the-big-endian-test-failures-issue-1128/10737)

<div class="topic-metadata">

**Author:** [@jatin](https://fortran-lang.discourse.group/u/jatin)\
**Replies:** 0\
**Last updated:** [February 23, 2026, 6:20pm UTC](https://fortran-lang.discourse.group/t/fixing-the-big-endian-test-failures-issue-1128/10737 "2026-02-23T18:20:10Z")

</div>

Hi everyone, I was looking at the recent Debian build failures for stdlib 0.8.1 on big-endian machines reported in Issue #1128, and noticed that test\_hash\_functions is failing. I dug into the code and found a few intert…

---

## [Stdlib Distribution Functions](https://fortran-lang.discourse.group/t/stdlib-distribution-functions/10646)

<div class="topic-metadata">

**Author:** [@callum](https://fortran-lang.discourse.group/u/callum)\
**Replies:** 3\
**Last updated:** [February 4, 2026, 5:26am UTC](https://fortran-lang.discourse.group/t/stdlib-distribution-functions/10646 "2026-02-04T05:26:16Z")

</div>

Hi! I’m relatively new to fortran only picking it up last year, but glad to be here looking deeper. Reading some multiple-year old discussions and pr’s on the stdlib repo it seems there was a desire for expanding the e…

---

## ["Failed"  during install/tests of stdlib (0.7.0) on ubuntu 22.04](https://fortran-lang.discourse.group/t/failed-during-install-tests-of-stdlib-0-7-0-on-ubuntu-22-04/10641)

<div class="topic-metadata">

**Author:** [@LionelG](https://fortran-lang.discourse.group/u/LionelG)\
**Replies:** 6\
**Last updated:** [January 28, 2026, 7:38am UTC](https://fortran-lang.discourse.group/t/failed-during-install-tests-of-stdlib-0-7-0-on-ubuntu-22-04/10641 "2026-01-28T07:38:42Z")

</div>

I’m trying to install stdlib on Ubuntu22.04 (on Windows-WSL). I have cloned stdlib and uses v0.7.0. I have followed the README and I am almost OK except I have a few “Failed” appearing during the install/test process, …

---

## [Stdlib installation location](https://fortran-lang.discourse.group/t/stdlib-installation-location/10610)

<div class="topic-metadata">

**Author:** [@fiolj](https://fortran-lang.discourse.group/u/fiolj)\
**Replies:** 0\
**Last updated:** [January 9, 2026, 10:21pm UTC](https://fortran-lang.discourse.group/t/stdlib-installation-location/10610 "2026-01-09T22:21:30Z")

</div>

Hi, after installing stdlib I’ve found a couple of inconsistencies (bugs?) with pkg-config that result in stdlib not “working with my programs” exactly as expected when using Make. When following the instructions I’ve fo…

---

## [Arithmetic overflow when building stdlib with gfortran 9](https://fortran-lang.discourse.group/t/arithmetic-overflow-when-building-stdlib-with-gfortran-9/10601)

<div class="topic-metadata">

**Author:** [@Machalot](https://fortran-lang.discourse.group/u/Machalot)\
**Replies:** 3\
**Last updated:** [January 6, 2026, 8:17am UTC](https://fortran-lang.discourse.group/t/arithmetic-overflow-when-building-stdlib-with-gfortran-9/10601 "2026-01-06T08:17:06Z")

</div>

I just attempted to build stdlib for the first time. I’m using fpm 0.12.0 alpha and gfortran 9.4.0 in WSL, compiling the stdlib-fpm branch. Is it expected to have a compiler error for integer overflow on the 64-bit hash…

---

## [Location for a new generalized lagtm routine within stdlib](https://fortran-lang.discourse.group/t/location-for-a-new-generalized-lagtm-routine-within-stdlib/10522)

<div class="topic-metadata">

**Author:** [@Sinan](https://fortran-lang.discourse.group/u/Sinan)\
**Replies:** 5\
**Last updated:** [December 6, 2025, 10:40am UTC](https://fortran-lang.discourse.group/t/location-for-a-new-generalized-lagtm-routine-within-stdlib/10522 "2025-12-06T10:40:31Z")

</div>

Hi everyone, I’m planning to work on a generalized lagtm subroutine within stdlib that @hkvzjal proposed. This subroutine will be used by the special matrices functionality. The existing lagtm inside BLAS/LAPACK only s…

---

## [Pure eigendecomposition procedure and question about stdlib\_linalg](https://fortran-lang.discourse.group/t/pure-eigendecomposition-procedure-and-question-about-stdlib-linalg/10001)

<div class="topic-metadata">

**Author:** [@fxm](https://fortran-lang.discourse.group/u/fxm)\
**Replies:** 12\
**Last updated:** [August 8, 2025, 10:18pm UTC](https://fortran-lang.discourse.group/t/pure-eigendecomposition-procedure-and-question-about-stdlib-linalg/10001 "2025-08-08T22:18:04Z")

</div>

Hi All, I’ve been using stdlib in new projects and replaced older linear algebra procedures (my own old poorly optimised ones or standalone lapack) with the stdlib\_linalg interfaces as much as possible. I like to keep t…

---

## [Excessive main memory usage by stdlib\_hashmaps routines](https://fortran-lang.discourse.group/t/excessive-main-memory-usage-by-stdlib-hashmaps-routines/9924)

<div class="topic-metadata">

**Author:** [@bjbraams](https://fortran-lang.discourse.group/u/bjbraams)\
**Replies:** 22\
**Last updated:** [July 23, 2025, 5:21pm UTC](https://fortran-lang.discourse.group/t/excessive-main-memory-usage-by-stdlib-hashmaps-routines/9924 "2025-07-23T17:21:46Z")

</div>

I am using the stdlib\_hashmaps module in an application that needs a large hash table (wishing for several times 100M entries) and each entry is of a small fixed size; a few default integers for key and data combined. Th…

---

## [API design and consistency for stdlib stats(\_distribution) modules](https://fortran-lang.discourse.group/t/api-design-and-consistency-for-stdlib-stats-distribution-modules/9614)

<div class="topic-metadata">

**Author:** [@fxm](https://fortran-lang.discourse.group/u/fxm)\
**Replies:** 3\
**Last updated:** [May 10, 2025, 5:52pm UTC](https://fortran-lang.discourse.group/t/api-design-and-consistency-for-stdlib-stats-distribution-modules/9614 "2025-05-10T17:52:56Z")

</div>

Following Monday’s discussion about stdlib release and API stability, I wanted to bring up a point about API design and consistency for the stats modules (with specifics from the distributions modules). I can also create…

---

## [Stdlib\_system+plotting (?)](https://fortran-lang.discourse.group/t/stdlib-system-plotting/9678)

<div class="topic-metadata">

**Author:** [@hkvzjal](https://fortran-lang.discourse.group/u/hkvzjal)\
**Replies:** 8\
**Last updated:** [May 8, 2025, 9:30am UTC](https://fortran-lang.discourse.group/t/stdlib-system-plotting/9678 "2025-05-08T09:30:27Z")

</div>

I was flexing with the newly added stdlib\_system module to see if it can be used as a backend to enable using plotting libraries through piping. For that I started from this reference Gnuplot | Programming in Modern For…

---

## [Stdlib: Solving a system of equations with a matrix right hand side](https://fortran-lang.discourse.group/t/stdlib-solving-a-system-of-equations-with-a-matrix-right-hand-side/9660)

<div class="topic-metadata">

**Author:** [@general\_rishkin](https://fortran-lang.discourse.group/u/general_rishkin)\
**Replies:** 9\
**Last updated:** [May 6, 2025, 12:15pm UTC](https://fortran-lang.discourse.group/t/stdlib-solving-a-system-of-equations-with-a-matrix-right-hand-side/9660 "2025-05-06T12:15:08Z")

</div>

I am trying to replicate this MATLAB code: P = (B\*D) \\ B. B and D are matrices. Using stdlib, I do: call solve\_lu( matmul(B, D), B ) I get the error: | call solve\_lu( (matmul(B, D)), B ) | …

---

## [What are the versioning/dev rules of stdlib?](https://fortran-lang.discourse.group/t/what-are-the-versioning-dev-rules-of-stdlib/9469)

<div class="topic-metadata">

**Author:** [@PierU](https://fortran-lang.discourse.group/u/PierU)\
**Replies:** 27\
**Last updated:** [March 29, 2025, 8:26am UTC](https://fortran-lang.discourse.group/t/what-are-the-versioning-dev-rules-of-stdlib/9469 "2025-03-29T08:26:57Z")

</div>

I recently downloaded the stdlib sources from the github repo, and was surprised to see that it was still marked as v0.7.0 (released 07/2024), although the files have been regularly updated since then (to be clear, I did…

---

## [Linear algebra support in stdlib](https://fortran-lang.discourse.group/t/linear-algebra-support-in-stdlib/6917)

<div class="topic-metadata">

**Author:** [@FedericoPerini](https://fortran-lang.discourse.group/u/FedericoPerini)\
**Replies:** 27\
**Last updated:** [March 27, 2025, 3:23pm UTC](https://fortran-lang.discourse.group/t/linear-algebra-support-in-stdlib/6917 "2025-03-27T15:23:16Z")

</div>

Hello Fortran Discourse readers, I’m initiating this thread to gather your thoughts and insights on the upcoming task of integrating linear algebra operations into stdlib. Here are the key developments we’d like to intr…

---

## [Subprocessing module proposal: seeking feedback](https://fortran-lang.discourse.group/t/subprocessing-module-proposal-seeking-feedback/9328)

<div class="topic-metadata">

**Author:** [@suprit05](https://fortran-lang.discourse.group/u/suprit05)\
**Replies:** 7\
**Last updated:** [March 12, 2025, 11:16am UTC](https://fortran-lang.discourse.group/t/subprocessing-module-proposal-seeking-feedback/9328 "2025-03-12T11:16:39Z")

</div>

Hello Fortran Community! A couple of days ago I proposed a subroutine to the sub-processing module in the stdlib (documentation) for sending POSIX signals to running processes, the implementation details and thoughts of …

---

## [Stdlib system interaction API: call for feedback](https://fortran-lang.discourse.group/t/stdlib-system-interaction-api-call-for-feedback/9037)

<div class="topic-metadata">

**Author:** [@FedericoPerini](https://fortran-lang.discourse.group/u/FedericoPerini)\
**Replies:** 29\
**Last updated:** [January 22, 2025, 1:11pm UTC](https://fortran-lang.discourse.group/t/stdlib-system-interaction-api-call-for-feedback/9037 "2025-01-22T13:11:09Z")

</div>

Dear Fortran enthusiasts, I have been proposing cross-platform system interaction APIs for stdlib: mainly subprocessing and filesystem operations. I would like to gather community feedback on the proposed API, for examp…

---

## [Fortran stdlib: sufficient for scientific programming?](https://fortran-lang.discourse.group/t/fortran-stdlib-sufficient-for-scientific-programming/8905)

<div class="topic-metadata">

**Author:** [@Bhanu](https://fortran-lang.discourse.group/u/Bhanu)\
**Replies:** 37\
**Last updated:** [December 26, 2024, 4:13pm UTC](https://fortran-lang.discourse.group/t/fortran-stdlib-sufficient-for-scientific-programming/8905 "2024-12-26T16:13:15Z")

</div>

I am very new to Fortran stdlib; however, I have been using C++ for my scientific programming since 2018. For fast analysis and a low program footprint, I wanted to switch to Fortran. As I am observing, LA algorithms are…

---

## [Recursive data structures with stdlib hash maps](https://fortran-lang.discourse.group/t/recursive-data-structures-with-stdlib-hash-maps/4501)

<div class="topic-metadata">

**Author:** [@awvwgk](https://fortran-lang.discourse.group/u/awvwgk)\
**Replies:** 6\
**Last updated:** [October 9, 2023, 5:05pm UTC](https://fortran-lang.discourse.group/t/recursive-data-structures-with-stdlib-hash-maps/4501 "2023-10-09T17:05:41Z")

</div>

I’m trying to understand whether it is possible / feasible to define recursive data structures using stdlib’s hash maps. For the most basic functionality, I would need a way to store maps and arrays, where the latter can…

---

## [Issues with User-Defined Derived-Type I/O](https://fortran-lang.discourse.group/t/issues-with-user-defined-derived-type-i-o/6016)

<div class="topic-metadata">

**Author:** [@han190](https://fortran-lang.discourse.group/u/han190)\
**Replies:** 3\
**Last updated:** [June 22, 2023, 5:21am UTC](https://fortran-lang.discourse.group/t/issues-with-user-defined-derived-type-i-o/6016 "2023-06-22T05:21:09Z")

</div>

The question is pretty long so I would really appreciate it if you can read it through. Let’s say I have two modules module\_a and module\_b, each containing a derived type a\_type and b\_type. Also, I used the User-Defined …

---

## [Building \`stdlib\` with openmp](https://fortran-lang.discourse.group/t/building-stdlib-with-openmp/5469)

<div class="topic-metadata">

**Author:** [@FedericoPerini](https://fortran-lang.discourse.group/u/FedericoPerini)\
**Replies:** 3\
**Last updated:** [March 30, 2023, 12:13pm UTC](https://fortran-lang.discourse.group/t/building-stdlib-with-openmp/5469 "2023-03-30T12:13:04Z")

</div>

I’m testing whether it is possible to build stdlib in a package that also requires OpenMP (e.g. via -fopenmp if gfortran). I get some nontrivial errors with some of the tests in the test-drive: \<ERROR\> Execution for ob…
