193 |
\begin{python} |
\begin{python} |
194 |
x=mydomain.getX() |
x=mydomain.getX() |
195 |
\end{python} |
\end{python} |
196 |
In fact \var{x} is a \Data object which we will learn more about in Chapter~\ref{X}. At this stage we only have to know |
The method \method{getX} of the \Domain \var{mydomain} |
|
that \var{x} has a |
|
|
|
|
|
In the first statement, the method \method{getX} of the \Domain \var{mydomain} |
|
197 |
gives access to locations |
gives access to locations |
198 |
in the domain defined by \var{mydomain}. The object \var{x} is actually a \Data object which is |
in the domain defined by \var{mydomain}. The object \var{x} is actually a \Data object which is |
199 |
discussed in Chpater\ref{X} in more details. What we need to know here is that |
discussed in \Chap{ESCRIPT CHAP} in more details. What we need to know here is that |
200 |
|
|
201 |
\var{x} has \Rank (=number of dimensions) and a \Shape (=tuple of dimensions) which can be checked by |
\var{x} has \Rank (=number of dimensions) and a \Shape (=tuple of dimensions) which can be checked by |
202 |
calling the \method{getRank} and \method{getShape} methods: |
calling the \method{getRank} and \method{getShape} methods: |
203 |
\begin{python} |
\begin{python} |