# Diff of /trunk/doc/user/escript.tex

revision 660 by gross, Fri Mar 24 08:43:21 2006 UTC revision 804 by gross, Thu Aug 10 01:12:16 2006 UTC
# Line 770  and for a \RankFour function and  \code{ Line 770  and for a \RankFour function and  \code{
770  \code{trace(a,1)}\left[i,j\right]=\sum\hackscore{k} \var{a} \left[i,k,k,j\right]  \code{trace(a,1)}\left[i,j\right]=\sum\hackscore{k} \var{a} \left[i,k,k,j\right]
771
772  \end{funcdesc}  \end{funcdesc}
773
774  \begin{funcdesc}{transpose}{a\optional{, axis_offset=None}}  \begin{funcdesc}{transpose}{a\optional{, axis_offset=None}}
775  returns the transpose of \var{a}. This swaps the first \var{axis_offset} components of \var{a} with the rest. If \var{axis_offset} is not  returns the transpose of \var{a}. This swaps the first \var{axis_offset} components of \var{a} with the rest. If \var{axis_offset} is not
776  present \code{int(r/2)} is used where \var{r} is the rank of \var{a}.  present \code{int(r/2)} is used where \var{r} is the rank of \var{a}.
# Line 783  and for a \RankFour function and  \code{ Line 784  and for a \RankFour function and  \code{
784  \code{transpose(a,1)}\left[i,j,k,l\right]=\var{a} \left[j,k,l,i\right]  \code{transpose(a,1)}\left[i,j,k,l\right]=\var{a} \left[j,k,l,i\right]
785
786  \end{funcdesc}  \end{funcdesc}
787
788    \begin{funcdesc}{swap_axes}{a\optional{, axis0=0 \optional{, axis1=1 }}}
789    returns \var{a} but with swapped componets \var{axis0} and  \var{axis1}. The argument \var{a} must be
790    at least of \RankTwo. For instance in the
791    for a \RankFour argument, \code{axis0=1} and \code{axis1=2} this is
792
793    \code{swap_axes(a,1,2)}\left[i,j,k,l\right]=\var{a} \left[i,k,j,l\right]
794
795    \end{funcdesc}
796
797  \begin{funcdesc}{symmetric}{a}  \begin{funcdesc}{symmetric}{a}
798  returns the symmetric part of \var{a}. This is \code{(a+transpose(a))/2}.  returns the symmetric part of \var{a}. This is \code{(a+transpose(a))/2}.
799  \end{funcdesc}  \end{funcdesc}

Legend:
 Removed from v.660 changed lines Added in v.804