| Algorithm 892: DISPMODULE, a Fortran 95 module for pretty-printing matrices |
| Full text |
Pdf
(79 KB)
|
Source
|
ACM Transactions on Mathematical Software (TOMS)
archive
Volume 36 , Issue 1 (March 2009)
table of contents
Article No. 6
Year of Publication: 2009
ISSN:0098-3500
|
|
Author
|
|
| Publisher |
|
| Bibliometrics |
Downloads (6 Weeks): 17, Downloads (12 Months): 117, Citation Count: 0
|
|
ABSTRACT
A standard Fortran 95 module for printing scalars, vectors, and matrices to external files is provided. The module can display variables of default kind of all intrinsic types (integer, real, complex, logical, and character), and add-on modules are provided for data of the nondefault kind. The main module is self-contained and incorporating it only requires that it be compiled and linked with a program containing a “use dispmodule” statement. A generic interface and optional parameters are used, so that the same subroutine name, DISP, is used to display items of different data type and rank, irrespective of display options. The subroutine is quite versatile, and hopefully can improve Fortran's competitiveness against other array programming languages. The module also contains a function TOSTRING to convert numerical scalars and vectors to strings.
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
| |
1
|
|
| |
2
|
Eaton, J. W. 2002. GNU Octave Manual. Network Theory Limited, Bristol, U.K.
|
| |
3
|
ISO/IEC. 1997. Information technology—programming languages—Fortran-part 1: Base language. ISO/IEC Tech. rep. 1539-1:1997. ISO, Geneva, Switzerland.
|
| |
4
|
ISO/IEC. 2004. Information technology—programming languages—Fortran-part 1: Base language. ISO/IEC Tech. rep. 1539-1-2004. ISO, Geneva.
|
| |
5
|
|
| |
6
|
Krause, A. and Olson, M. 2000. The Basics of S and S-PLUS (second ed.), Springer-Verlag, New York.
|
| |
7
|
Metcalf, M., Reid, J. K. and Cohen, M. 2004. Fortran 95/2003 Explained. Oxford University Press, Oxford, U.K.
|
| |
8
|
Moler, C. 2004. Numerical Computing with MATLAB, SIAM, Philadelphia, PA.
|
| |
9
|
Mrkaic, M. 2001. Scilab as an econometric programming system. J. Appl. Econometr. Systems 16, 4, 553--559.
|
| |
10
|
NAG. 2000. NAG Fortran 90 Library Manual. Numerical Algorithms Group, Oxford, U.K.
|
| |
11
|
NAG. 2006. NAG Fortran Library Manual. Numerical Algorithms Group, Oxford, U.K.
|
| |
12
|
|
| |
13
|
Reid, J. K. 2006. Fortran is getting more and more powerful. In Applied Parallel Computing, State of the Art in Scientific Computing, J. Dongarra, K. Madsen, and J. Wasniewski, Eds. Lecture Notes in Computer Science, vol. 3732. Springer, Berlin, Germany, 33--42.
|
| |
14
|
Stewart, G. W. 2003. MATRAN: A Fortran-95 Matrix Wrapper. Tech. rep. 4522. University of Maryland, Department of Computer Science, College Park, MD.
|
INDEX TERMS
Primary Classification:
D.
Software
D.2
SOFTWARE ENGINEERING
D.2.2
Design Tools and Techniques
Subjects:
Software libraries
Additional Classification:
D.
Software
D.2
SOFTWARE ENGINEERING
D.2.5
Testing and Debugging
Subjects:
Debugging aids
D.3
PROGRAMMING LANGUAGES
D.4
OPERATING SYSTEMS
D.4.4
Communications Management
Subjects:
Input/output
E.
Data
E.1
DATA STRUCTURES
Subjects:
Arrays
G.
Mathematics of Computing
G.4
MATHEMATICAL SOFTWARE
Subjects:
User interfaces
H.
Information Systems
H.5
INFORMATION INTERFACES AND PRESENTATION (I.7)
H.5.2
User Interfaces (D.2.2, H.1.2, I.3.6)
Subjects:
Prototyping;
User-centered design;
Screen design (e.g., text, graphics, color)
General Terms:
Algorithms,
Design
Keywords:
Fortran 95,
array programming language,
matrix pretty-printing,
matrix printing,
output utilities
|