Dear all,<br><br>if I have two ndarray arr1 and arr2 (with the same shape), is there some difference when I do:<br><br>arr = arr1 + arr2 <br><br>and <br><br>arr = np.add(arr1, arr2),<br><br>and then if I have more than 2 arrays: arr1, arr2, arr3, arr4, arr5, then I cannot use np.add anymore as it only recieves 2 arguments.<br>
then what's the best practice to add these arrays? should I do<br><br>arr = arr1 + arr2 + arr3 + arr4 + arr5<br><br>or I do<br><br>arr = np.sum(np.array([arr1, arr2, arr3, arr4, arr5]), axis=0)? <br><br>because I just noticed recently that there are functions like np.add, np.divide, np.substract... before I am using all like directly arr1/arr2, rather than np.divide(arr1,arr2).<br>
<br>best regards,<br><br>Chao<br><br>-- <br><div>***********************************************************************************</div>
<div>Chao YUE<br>Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)<br>UMR 1572 CEA-CNRS-UVSQ<br>Batiment 712 - Pe 119<br>91191 GIF Sur YVETTE Cedex</div>
<div>Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16<br></div>

<div>************************************************************************************</div><br>