You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* stdlib_io: add skiprows to loadtxt
* Add test for skiprows in loadtxt
* stdlib_io: add check for skiprows >= 0
* stdlib_io: add max_rows to loadtxt
* Update src/stdlib_io.fypp
Co-authored-by: Ivan Pribec <[email protected]>
* loadtxt: Add test for max_rows
* loadtxt: treat negative skiprows as 0 (numpy like)
* stdlib_io: cut off skiprows
* stdlib_io: docs for cut off skiprows
* rename test in src/tests/io/test_loadtxt.f90
Co-authored-by: Ian Giestas Pauli <[email protected]>
* update specs docs of loadtxt
* Update doc/specs/stdlib_io.md
Co-authored-by: Milan Curcic <[email protected]>
* Update src/stdlib_io.fypp
Co-authored-by: Milan Curcic <[email protected]>
* loadtxt: determine number of columns from first line to be read
* number_of_columns: bugfix for missing int
Co-authored-by: Ivan Pribec <[email protected]>
Co-authored-by: Ian Giestas Pauli <[email protected]>
Co-authored-by: Milan Curcic <[email protected]>
`filename`: Shall be a character expression containing the file name from which to load the rank-2 `array`.
25
25
26
26
`array`: Shall be an allocatable rank-2 array of type `real`, `complex` or `integer`.
27
27
28
+
`skiprows` (optional): Skip the first `skiprows` lines. If skipping more rows than present, a 0-sized array will be returned. The default is 0.
29
+
30
+
`max_rows` (optional): Read `max_rows` lines of content after `skiprows` lines. A negative value results in reading all lines. A value of zero results in no lines to be read. The default value is -1.
31
+
28
32
### Return value
29
33
30
34
Returns an allocated rank-2 `array` with the content of `filename`.
0 commit comments