appliedprotocolresearch / blockchain-simulator

An experimental blockchain simulator written in python
0 stars 4 forks source link

Numpy array #11

Open bagavi opened 6 years ago

bagavi commented 6 years ago
  1. Use arr.shape[0] instead of len(arr).
  2. To create an arr2 of same length as array aar1, use arr2 = np.zeros_like(arr1).

I will add more to this list later.

vishaalagartha commented 6 years ago

@bagavi , I think I've migrated from python lists to arrays mostly. Where do you want me to implement further changes?