Skip to main content

Whole Array and Additional Array Features

  • Chapter
Introduction to Programming with Fortran
  • 3943 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 69.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

11.9 Bibliography

  • Bhandarkar D.P., Alpha Implementation and Architecture: Complete Reference and Guide, Digital Press.

    Google Scholar 

  • Intel, Intel Architecture Software Developer’s Manual Volume 3: System Programming

    Google Scholar 

Download references

Rights and permissions

Reprints 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)

Publish with us

Policies and ethics