<li><p><strong>s</strong> (<em>Optional</em><em>[</em><em>Sequence</em><em>[</em><em>int</em><em>]</em><em>]</em>) – <p>number of elements along the transformed axes (dimensions) specified by <code class="docutils literal notranslate"><span class="pre">axes</span></code> in the <strong>output array</strong>. Let <code class="docutils literal notranslate"><span class="pre">i</span></code> be the index of the <code class="docutils literal notranslate"><span class="pre">n</span></code>-th axis specified by <code class="docutils literal notranslate"><span class="pre">axes</span></code> (i.e., <code class="docutils literal notranslate"><span class="pre">i</span> <span class="pre">=</span> <span class="pre">axes[n]</span></code>) and <code class="docutils literal notranslate"><span class="pre">M[i]</span></code> be the size of the input array along axis <code class="docutils literal notranslate"><span class="pre">i</span></code>. When <code class="docutils literal notranslate"><span class="pre">s</span></code> is <code class="docutils literal notranslate"><span class="pre">None</span></code>, the function must set <code class="docutils literal notranslate"><span class="pre">s</span></code> equal to a sequence of integers such that <code class="docutils literal notranslate"><span class="pre">s[i]</span></code> equals <code class="docutils literal notranslate"><span class="pre">M[i]</span></code> for all <code class="docutils literal notranslate"><span class="pre">i</span></code>, except for the last transformed axis in which <code class="docutils literal notranslate"><span class="pre">s[i]</span></code> equals <code class="docutils literal notranslate"><span class="pre">2*(M[i]-1)</span></code>. For each <code class="docutils literal notranslate"><span class="pre">i</span></code>, let <code class="docutils literal notranslate"><span class="pre">n</span></code> equal <code class="docutils literal notranslate"><span class="pre">s[i]</span></code>, except for the last transformed axis in which <code class="docutils literal notranslate"><span class="pre">n</span></code> equals <code class="docutils literal notranslate"><span class="pre">s[i]//2+1</span></code>.</p>
0 commit comments