##// END OF EJS Templates
try to fix stupid travis build failing...
Matthias BUSSONNIER -
Show More
@@ -2822,8 +2822,7 b' The sum of elements along the columns is : [ 4 6 8 10]'
2822 </div>
2822 </div>
2823 </div>
2823 </div>
2824 <div class="text_cell_render border-box-sizing rendered_html">
2824 <div class="text_cell_render border-box-sizing rendered_html">
2825 <p>As you can see in this example, the value of the <code>axis</code> parameter is the dimension which will be <em>consumed</em> once the operation has been carried out. This is why to sum along the rows we use <code>axis=0</code>.<br />
2825 <p>As you can see in this example, the value of the <code>axis</code> parameter is the dimension which will be <em>consumed</em> once the operation has been carried out. This is why to sum along the rows we use <code>axis=0</code>.</p>
2826 </p>
2827 <p>This can be easily illustrated with an example that has more dimensions; we create an array with 4 dimensions and shape <code>(3,4,5,6)</code> and sum along the axis number 2 (i.e. the <em>third</em> axis, since in Python all counts are 0-based). That consumes the dimension whose length was 5, leaving us with a new array that has shape <code>(3,4,6)</code>:</p>
2826 <p>This can be easily illustrated with an example that has more dimensions; we create an array with 4 dimensions and shape <code>(3,4,5,6)</code> and sum along the axis number 2 (i.e. the <em>third</em> axis, since in Python all counts are 0-based). That consumes the dimension whose length was 5, leaving us with a new array that has shape <code>(3,4,6)</code>:</p>
2828 </div>
2827 </div>
2829 <div class="cell border-box-sizing code_cell vbox">
2828 <div class="cell border-box-sizing code_cell vbox">
1 NO CONTENT: modified file
NO CONTENT: modified file
General Comments 0
You need to be logged in to leave comments. Login now