##// 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 2822 </div>
2823 2823 </div>
2824 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 />
2826 </p>
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>
2827 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 2827 </div>
2829 2828 <div class="cell border-box-sizing code_cell vbox">
@@ -2184,7 +2184,7 b''
2184 2184 "cell_type": "markdown",
2185 2185 "metadata": {},
2186 2186 "source": [
2187 "As you can see in this example, the value of the `axis` parameter is the dimension which will be *consumed* once the operation has been carried out. This is why to sum along the rows we use `axis=0`. \n",
2187 "As you can see in this example, the value of the `axis` parameter is the dimension which will be *consumed* once the operation has been carried out. This is why to sum along the rows we use `axis=0`.\n",
2188 2188 "\n",
2189 2189 "This can be easily illustrated with an example that has more dimensions; we create an array with 4 dimensions and shape `(3,4,5,6)` and sum along the axis number 2 (i.e. the *third* 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 `(3,4,6)`:"
2190 2190 ]
@@ -29006,4 +29006,4 b''
29006 29006 "metadata": {}
29007 29007 }
29008 29008 ]
29009 } No newline at end of file
29009 }
General Comments 0
You need to be logged in to leave comments. Login now