Skip to content

Files

Latest commit

ad717bc · Sep 6, 2019

History

History
This branch is 21 commits behind csc-training/hpc-python:master.

split-combine

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Sep 6, 2019
Aug 6, 2019

Split and combine arrays

Create a new 8x8 array with some values (or continue with the one created in the Array slicing exercise).

  1. Use np.split() function for splitting the array into two new 4x8 arrays. Reconstruct the original 8x8 array by using np.concatenate().
  2. Repeat the above exercise but create now 8x4 subarrays and then combine them.