ubsuny / CP1-24-HW2

Homework2 template for CP1-24
1 stars 15 forks source link

Array Axis Summation ENHANCED #105

Open haiderabbas007 opened 1 month ago

haiderabbas007 commented 1 month ago

This file builds on the excellent code written by Patrick Pampo in Array Axis Summations.ipynb. The following additions/enhancements/modifications have been made:

1) Matrix, times, sums, and time lists are printed for the first 5 iterations to explicitly show what the code is doing.

2) The original code computes data only for 'Even' matrices. I have expanded the code to include data for 'Odd' matrices as well to see if the 'parity' plays any role in the computing time.

3) The original file produces 2 fits, one each for the column and row summation data for the 'Even' matrices. Since I have included the 'Odd' matrices as well, the enhanced code produces 4 fits overlayed to inspect any 'parity' dependence in the computation time.

4) I also combine the 'Odd' and 'Even' times together by averaging them to preserve the 1:1 correspondence with N_values and generate a grand plot with 2 fit curves, one each for the two cases.

review-notebook-app[bot] commented 1 month ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB