-
Notifications
You must be signed in to change notification settings - Fork 224
Pretty printing of matrices (and multidimensional arrays) #40
Copy link
Copy link
Open
Labels
easyDifficulty level is easy and good for starting into this projectDifficulty level is easy and good for starting into this projectgood first issueGood for newcomersGood for newcomersin progressThis proposal is being worked onThis proposal is being worked ontopic: utilitiescontainers, strings, files, OS/environment integration, unit testing, assertions, logging, ...containers, strings, files, OS/environment integration, unit testing, assertions, logging, ...
Metadata
Metadata
Assignees
Labels
easyDifficulty level is easy and good for starting into this projectDifficulty level is easy and good for starting into this projectgood first issueGood for newcomersGood for newcomersin progressThis proposal is being worked onThis proposal is being worked ontopic: utilitiescontainers, strings, files, OS/environment integration, unit testing, assertions, logging, ...containers, strings, files, OS/environment integration, unit testing, assertions, logging, ...
Currently the standard Fortran's
print *, Aprints a 2D arrayAas a 1D list of numbers. Rather, I would likestdlibto have a functionprint_array(we can discuss a better name) that would print the array as NumPy:or Julia:
Julia can also use nice unicode characters for ... and vertical ... if the array is too large.
Then we should use this function at
stdlib/src/tests/loadtxt/test_loadtxt.f90
Line 21 in ae5591f
Then compilers can perhaps optionally use such
print_arrayas default in the Fortran's languageprintstatement.