11.7 Summary
We can now perform operations on whole arrays and partial arrays (array sections) without having to refer to individual elements. This shortens program development time and greatly clarifies the meaning of programs.
Array constructors can be used to assign values to rank 1 arrays within a program unit. The RESHAPE function allows us to assign values to a two or higher rank array when used in conjunction with an array constructor.
We have introduced the concept of a deferred-shape array. Arrays do not need to have their shape specified at compile time, only their rank. Their actual shape is deferred until runtime. We achieve this by the combined use of the ALLOCATABLE attribute on the variable declaration and the ALLOCATE statement, which makes Fortran a very flexible language for array manipulation.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
11.9 Bibliography
Bhandarkar D.P., Alpha Implementation and Architecture: Complete Reference and Guide, Digital Press.
Intel, Intel Architecture Software Developer’s Manual Volume 3: System Programming
Rights and permissions
Copyright information
© 2006 Springer-Verlag London Limited
About this chapter
Cite this chapter
(2006). Whole Array and Additional Array Features. In: Introduction to Programming with Fortran. Springer, London. https://doi.org/10.1007/1-84628-054-0_11
Download citation
DOI: https://doi.org/10.1007/1-84628-054-0_11
Publisher Name: Springer, London
Print ISBN: 978-1-84628-053-5
Online ISBN: 978-1-84628-054-2
eBook Packages: Computer ScienceComputer Science (R0)