previous up next print clean
Next: Header Up: ACCESSORS Previous: ACCESSORS

Data

In building the accessor routines we were confronted with the opposing objectives of ease of use and efficiency. On the one hand you would ideally like to access data, regardless of type, in a simple uniform manner. Such an approach would, however, require an ``if'' statement being evaluated with each access, something that is computationally wasteful, especially inside loops. Our decision was to offer the programmer either alternative. When speed is not an issue, a simple data call can be used to access the data. In most cases, the user will have for-knowledge of his data type, in which case we provide the simple routines: rdata, for real data; cdata, for complex data; and idata, for integer data.


previous up next print clean
Next: Header Up: ACCESSORS Previous: ACCESSORS
Stanford Exploration Project
11/12/1997