Home My Page Projects Code Snippets Project Openings diderot

# SCM Repository

[diderot] Diff of /branches/pure-cfg/doc/report/basis.tex
 [diderot] / branches / pure-cfg / doc / report / basis.tex

# Diff of /branches/pure-cfg/doc/report/basis.tex

revision 477, Sat Nov 13 16:02:07 2010 UTC revision 699, Fri Mar 25 19:56:38 2011 UTC
# Line 3  Line 3
3  \chapter{The Diderot Basis Environment}  \chapter{The Diderot Basis Environment}
4  \label{chap:basis}  \label{chap:basis}
5
6    % polymorphic function
7  \newcommand{\PFNSPEC}[4]{\item[\normalfont{$\mathtt{#1} : (#2) #3 \rightarrow #4$}]\mbox{}\\}  \newcommand{\PFNSPEC}[4]{\item[\normalfont{$\mathtt{#1} : (#2) #3 \rightarrow #4$}]\mbox{}\\}
8  \newcommand{\FNSPEC}[3]{\item[\normalfont{$\mathtt{#1} : #2 \rightarrow #3$}]\mbox{}\\}  \newcommand{\FNSPEC}[3]{\item[\normalfont{$\mathtt{#1} : #2 \rightarrow #3$}]\mbox{}\\}
9  \newcommand{\imageTy}[2]{\mkw{image}(#1)[#2]}  \newcommand{\imageTy}[2]{\mkw{image}(#1)[#2]}
# Line 15  Line 16
16
17  \section{Functions}  \section{Functions}
18  \begin{description}  \begin{description}
19      \FNSPEC{atan2}{(\mkw{real},\,\mkw{real})}{\mkw{real}}
20        returns the principal value of the arc tangent of $\frac{y}{x}$,
21        using the signs of both arguments to determine the quadrant of the return
22        value.
23    \FNSPEC{CL}{\mkw{tensor}[3,3]}{\mkw{real}}    \FNSPEC{CL}{\mkw{tensor}[3,3]}{\mkw{real}}
24    \PFNSPEC{convolve}{d,k,\sigma}{(\imageTy{d}{\sigma},\,\kernelTy{k})}{\fieldTy{k}{d}{\sigma}}    \PFNSPEC{convolve}{d,k,\sigma}{(\imageTy{d}{\sigma},\,\kernelTy{k})}{\fieldTy{k}{d}{\sigma}}
25    \FNSPEC{cos}{\mkw{real}}{\mkw{real}}    \FNSPEC{cos}{\mkw{real}}{\mkw{real}}
26      returns the cosine of its argument.      returns the cosine of its argument (measured in radians).
27    \PFNSPEC{dot}{d}{(\mkw{tensor}[d],\,\mkw{tensor}[d])}{\mkw{real}}    \PFNSPEC{dot}{d}{(\mkw{tensor}[d],\,\mkw{tensor}[d])}{\mkw{real}}
28    \PFNSPEC{inside}{k,d,\sigma}{(\fieldTy{k}{d}{\sigma},\,\mkw{tensor}[d])}{\mkw{bool}}    \PFNSPEC{inside}{k,d,\sigma}{(\fieldTy{k}{d}{\sigma},\,\mkw{tensor}[d])}{\mkw{bool}}
# Line 34  Line 39
39      returns the first argument raised to the power of the second argument.      returns the first argument raised to the power of the second argument.
40    \PFNSPEC{principleEvec}{d}{\mkw{tensor}[d,d]}{\mkw{tensor}[d]}    \PFNSPEC{principleEvec}{d}{\mkw{tensor}[d,d]}{\mkw{tensor}[d]}
41    \FNSPEC{sin}{\mkw{real}}{\mkw{real}}    \FNSPEC{sin}{\mkw{real}}{\mkw{real}}
42      returns the sine of its argument.      returns the sine of its argument (measured in radians).
43      \FNSPEC{sqrt}{\mkw{real}}{\mkw{real}}
44        returns the square root of its argument.
45      \FNSPEC{tan}{\mkw{real}}{\mkw{real}}
46        returns the tangent of its argument (measured in radians).
47  \end{description}%  \end{description}%
48
49  \section{Kernels}  \section{Kernels}

Legend:
 Removed from v.477 changed lines Added in v.699