Ondřej Čertík

Results 350 issues of Ondřej Čertík

Anybody who knows C can use your `mini-c` as the minimal self-hosting subset of C compiler and can implement the whole C compiler or other languages. What would also be...

* NumPy: https://numpy.org/devdocs/reference/generated/numpy.lib.format.html * Matlab: https://www.mathworks.com/help/matlab/import_export/mat-file-versions.html * SciPy code to load/write MAT files: https://docs.scipy.org/doc/scipy/reference/generated/scipy.io.loadmat.html * Julia library to read/write MAT files: https://github.com/JuliaIO/MAT.jl * Specification of MAT file format: https://www.mathworks.com/help/pdf_doc/matlab/matfile_format.pdf First...

topic: IO

Here is an example implementation of loading and saving ppm: https://github.com/certik/fortran-utils/blob/b43bd24cd421509a5bc6d3b9c3eeae8ce856ed88/src/ppm.f90. The advantage of the ppm format is that it is simple to write such readers and writers. Then one...

topic: IO

Here is a paper from 2007 that was submitted to the Fortran Committee, but ultimately rejected: https://wg5-fortran.org/N1651-N1700/N1688.pdf The functions there seem to be exactly in the scope of stdlib, so...

topic: mathematics

One thing that I am worried is that we are making the same mistake as the standards committee, often standardizing things before we get actual experience with using it. Now...

meta

Idea: * https://twitter.com/arclight/status/1371676228856463364 Preliminary repository: * https://twitter.com/arclight/status/1371913313211273216 * https://gitlab.com/apthorpe/stdlib-codata/-/blob/1c541b3a71556fd89cc6a9f03d401c757d182ceb/src/STDLIB_CODATA_2018.f90 Prior art: * Scipy: https://docs.scipy.org/doc/scipy/reference/constants.html * fundamental_constants: https://github.com/vmagnin/fundamental_constants * QCElemental: https://github.com/MolSSI/QCElemental/blob/master/qcelemental/physical_constants/context.py

duplicate
topic: utilities

Currently the standard Fortran's `print *, A` prints a 2D array `A` as a 1D list of numbers. Rather, I would like `stdlib` to have a function `print_array` (we can...

good first issue
in progress
topic: utilities
easy

I am using PGI 18.10 and the latest master (f300f4a609ab02620b82ee2c79566361d84505c4): 1. It does not support `error stop` and `stderr`: ```diff --- a/src/f08estop.f90 +++ b/src/f08estop.f90 @@ -19,22 +19,22 @@ module procedure...

compiler: nvfortran

Prior art in other languages: * SciPy: https://docs.scipy.org/doc/scipy/reference/sparse.html * Matlab: https://www.mathworks.com/help/matlab/ref/sparse.html * Julia: https://docs.julialang.org/en/v1/stdlib/SparseArrays/index.html In Fortran (I keep this list updated with all implementations posted in this issue): * @certik:...

topic: mathematics

For NAG 6.2 and the latest master (f300f4a609ab02620b82ee2c79566361d84505c4): 1. Does not seem to support submodules. ```diff diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 72b3d25..6a11a43 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -9,12 +9,6...

compiler: nagfor