Skip to main content Accessibility help
×
Hostname: page-component-f554764f5-nt87m Total loading time: 0 Render date: 2025-04-09T09:27:29.554Z Has data issue: false hasContentIssue false

Appendix 4 - Utility programs and style notes

Published online by Cambridge University Press:  05 June 2012

Peter P. Silvester
Affiliation:
McGill University, Montréal
Ronald L. Ferrari
Affiliation:
University of Cambridge
Get access

Summary

Introduction

This Appendix lists several generally useful subprograms for matrix manipulation. It also clarifies some points of programming style as followed throughout this book. Most of the subprograms have no particularly close association with the material of any one chapter, but they are called upon to perform necessary services by programs listed in the several chapters. It therefore seems appropriate to group them in a single listing.

Input-data arrangements

Nearly all the programs in this book accept input data in roughly similar formats. Typically, a list of nodes is followed by a list of elements, which is in turn followed by a list of constraints. The lists are separated by lines blank except for a slant character / in the leading character position. This technique is based on the special meaning Fortran 77 assigns to the / character in list-directed input-output. It leads to program constructs a little different from C, Pascal, or many other languages, and therefore merits a brief discussion.

List-directed input–output is free-format. Numbers may be placed anywhere on the line, only their sequence need be correct. When input is requested, as many full lines are read in as is necessary to ensure that the input list has been fully satisfied, even if that means reading several lines. Since Fortran read statements always read full lines, a blank line will not be visible at all.

Type
Chapter
Information
Publisher: Cambridge University Press
Print publication year: 1996

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Book purchase

Temporarily unavailable

Save book to Kindle

To save this book to your Kindle, first ensure [email protected] is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

Available formats
×