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 of 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 digested the rest of Chapter 9 about various aspects of the corresponding Fortran implementation.
CITATION STYLE
C and C++ Programming with NumPy Arrays. (2007). In Python Scripting for Computational Science (pp. 483–528). Springer Berlin Heidelberg. https://doi.org/10.1007/978-3-540-73916-6_10
Mendeley helps you to discover research relevant for your work.