Ivan Pribec
Ivan Pribec
The codes of John Burkardt all contain a timestamp subroutine (GPL-licensed) with fixed format: subroutine timestamp() ```fortran subroutine timestamp ( ) !*****************************************************************************80 ! !! TIMESTAMP prints the current YMDHMS date...
Perhaps this is a bad idea, but I wonder if there is any advantage to write into the format string directly? ```fortran integer :: dat(8) call date_and_time(values=dat) write(*,fmtdate(dat)) ! vs...
> How about simply creating a fixed format `time_stamp` function to **start** `stdlib_time`. It's simple, but it's also useful. NAG has a simple function called [nagf_time_date_array_string](https://www.nag.com/numeric/nl/nagdoc_27.2/flhtml/x05/x05abf.html) that takes as input...
I think many of the projects in the [list of popular projects](https://github.com/fortran-lang/stdlib/wiki/List-of-popular-open-source-Fortran-projects) contain linked list implementations. Perhaps it would be good to do a grep over all of those repositories...
Great advice @rouson! It would fit well into a Fortran book similar to the Effective C++ series by Scott Meyers. I never realized one can make a forward list using...
> For the _mat_ format I found a specification of the layout (linked in description at the top), should be straight-forward to code up, but I don't think I have...
While scrolling through the ARCHER2 super-computing service documentation I learned there is BSD-licensed library for MATLAB MAT files called [`matio`](https://github.com/tbeu/matio). It also has a [Fortran interface](https://github.com/tbeu/matio/tree/master/src/fortran) (help wanted https://github.com/tbeu/matio/issues/51), however...
> How do we want to handle the _npz_ format? It is a _zip_ archive with _npy_ files. Probably, we have to develop a general interface for interacting with compressed...
Since Fortran doesn't have positional or keyword arguments in the way Python does, for `.npz` files it seems more natural to adopt an API similar to the one in [NPY...
The `.npz` format is also useful to read Scipy sparse matrix formats (CSC, CSR, BSR, DIA, COO). See [`scipy.sparse.save_npz`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.save_npz.html#scipy-sparse-save-npz) for a description. The implementation can be found [here](https://github.com/scipy/scipy/blob/v1.8.1/scipy/sparse/_matrix_io.py#L11-L72). Note the...