Abstract
Our purpose with this chapter is to implement the gridloop1 and gridloop2 functions from Chapter 9 in C and C++. The goal is the same: we want to increase the computational efficiency by moving loops from Python to compiled code, but now we use C and C++ instead for Fortran. Before proceeding the reader should be familiar with the gridloop1 and gridloop2 functions and the calling Python code as defined in Chapter 9.1. It is not necessary to have read the rest of Chapter 9 about various aspects of the corresponding Fortran implementation.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2004 Springer-Verlag Berlin Heidelberg
About this chapter
Cite this chapter
Langtangen, H.P. (2004). C and C++ Programming with NumPy Arrays. In: Python Scripting for Computational Science. Texts in Computational Science and Engineering, vol 3. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-662-05450-5_10
Download citation
DOI: https://doi.org/10.1007/978-3-662-05450-5_10
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-662-05452-9
Online ISBN: 978-3-662-05450-5
eBook Packages: Springer Book Archive