ACM Home Page
Please provide us with feedback. Feedback
Algorithm 892: DISPMODULE, a Fortran 95 module for pretty-printing matrices
Full text PdfPdf (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
Kristjan Jonasson  University of Iceland, Reykjavik, Iceland
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 17,   Downloads (12 Months): 117,   Citation Count: 0
Additional Information:

appendices and supplements   abstract   references   index terms  

Tools and Actions: Request Permissions Request Permissions    Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/1486525.1486531
What is a DOI?

APPENDICES and SUPPLEMENTS
ZipZip (349 KB)
Software for DISPMODULE, a Fortran 95 module for pretty-printing matrices


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.