3 |
\chapter{The Diderot Basis Environment} |
\chapter{The Diderot Basis Environment} |
4 |
\label{chap:basis} |
\label{chap:basis} |
5 |
|
|
6 |
|
\newcommand{\PFNSPEC}[4]{\item[\normalfont{$\mathtt{#1} : (#2) #3 \rightarrow #4$}]\mbox{}\\} |
7 |
|
\newcommand{\FNSPEC}[3]{\item[\normalfont{$\mathtt{#1} : #2 \rightarrow #3$}]\mbox{}\\} |
8 |
\newcommand{\imageTy}[2]{\mkw{image}(#1)[#2]} |
\newcommand{\imageTy}[2]{\mkw{image}(#1)[#2]} |
9 |
\newcommand{\kernelTy}[2]{\mkw{kernel\#}#2} |
\newcommand{\kernelTy}[2]{\mkw{kernel\#}#2} |
10 |
\newcommand{\fieldTy}[3]{\mkw{field\#}#1(#2)[#3]} |
\newcommand{\fieldTy}[3]{\mkw{field\#}#1(#2)[#3]} |
14 |
\section{Other operators} |
\section{Other operators} |
15 |
|
|
16 |
\section{Functions} |
\section{Functions} |
|
\newcommand{\PFNSPEC}[4]{\item[\normalfont{$\mathtt{#1} : (#2) #3 \rightarrow #4$}]\mbox{}\\} |
|
|
\newcommand{\FNSPEC}[3]{\item[\normalfont{$\mathtt{#1} : #2 \rightarrow #3$}]\mbox{}\\} |
|
17 |
\begin{description} |
\begin{description} |
18 |
\FNSPEC{CL}{\mkw{tensor}[3,3]}{\mkw{real}} |
\FNSPEC{CL}{\mkw{tensor}[3,3]}{\mkw{real}} |
19 |
\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}} |
22 |
\PFNSPEC{dot}{d}{(\mkw{tensor}[d],\,\mkw{tensor}[d])}{\mkw{real}} |
\PFNSPEC{dot}{d}{(\mkw{tensor}[d],\,\mkw{tensor}[d])}{\mkw{real}} |
23 |
\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}} |
24 |
\PFNSPEC{load}{d,\sigma}{\mkw{string}}{\imageTy{d}{\sigma}} |
\PFNSPEC{load}{d,\sigma}{\mkw{string}}{\imageTy{d}{\sigma}} |
25 |
|
loads the named image file, which should be a Nrrd file. |
26 |
|
Note that this function may only be used in the global initialization part of a Diderot |
27 |
|
program. |
28 |
\FNSPEC{max}{(\mkw{real},\,\mkw{real})}{\mkw{real}} |
\FNSPEC{max}{(\mkw{real},\,\mkw{real})}{\mkw{real}} |
29 |
returns the minimum of its two arguments. |
returns the minimum of its two arguments. |
30 |
\FNSPEC{min}{(\mkw{real},\,\mkw{real})}{\mkw{real}} |
\FNSPEC{min}{(\mkw{real},\,\mkw{real})}{\mkw{real}} |