~pauli-virtanen/scipy/numpy-refguide

« back to all changes in this revision

Viewing changes to source/reference/internals.code-explanations.rst

  • Committer: Pauli Virtanen
  • Date: 2008-10-01 18:56:05 UTC
  • Revision ID: pauli.virtanen@iki.fi-20081001185605-8352rsha0ypsu6lt
Fix some math that offends Sphinx's math:: directive

Show diffs side-by-side

added added

removed removed

Lines of Context:
583
583
way, the operation performed is 
584
584
 
585
585
.. math::
 
586
   :nowrap:
586
587
 
587
 
    \begin{eqnarray*} o & = & i[0]\\ o & = & i[k]\textrm{ <op> }o\quad k=1\ldots N\end{eqnarray*}
 
588
   \begin{align*}
 
589
   o & = & i[0] \\
 
590
   o & = & i[k]\textrm{<op>}o\quad k=1\ldots N
 
591
   \end{align*}
588
592
 
589
593
where :math:`N+1` is the number of elements in the input, :math:`i`,
590
594
:math:`o` is the output, and :math:`i[k]` is the
614
618
the current output pointer. Thus, the operation performed is 
615
619
 
616
620
.. math::
 
621
   :nowrap:
617
622
 
618
 
    \begin{eqnarray*} o[0] & = & i[0]\\ o[k] & = & i[k]\textrm{ <op> }o[k-1]\quad k=1\ldots N.\end{eqnarray*}
 
623
   \begin{align*}
 
624
   o[0] & = & i[0] \\
 
625
   o[k] & = & i[k]\textrm{<op>}o[k-1]\quad k=1\ldots N.
 
626
   \end{align*}
619
627
 
620
628
The output has the same shape as the input and each 1-d loop operates
621
629
over :math:`N` elements when the shape in the selected axis is :math:`N+1`. Again, buffered loops take care to copy and cast the data before