Skip to content

Commit 47ff547

Browse files
author
AshleySetter
committed
updated readme
1 parent b4692b6 commit 47ff547

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎README.md‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,9 @@ In SumNumpyArray I have implemented a function to sum an array of double precisi
1313
| Python sum() | 7.326408 |
1414
| numpy np.sum() | 0.038284 |
1515
| C++ sum | 0.108173 |
16-
| C++ sum with OpenMP | 0.042143 |
16+
| C++ sum with OpenMP | 0.042143 |
17+
18+
In ClassCythonCPP I have implemented a simple class in C++ and wrapped it in cython such that you may create an instance in python of this class.
19+
20+
In ClassCythoncppWithMemberFunctions I have extended this simple class to take a numpy array in the constructor and convert it to a C array stored in the object. I have then added a member function to the class which sums the elements in this list and returns a double containing this sum total. The returned number may be accessed from Python.
21+

0 commit comments

Comments
 (0)