04.04.2013 Views

Prism User's Guide - CSAIL People - MIT

Prism User's Guide - CSAIL People - MIT

Prism User's Guide - CSAIL People - MIT

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

80<br />

where (a .eq. maxval(a)) print a<br />

<strong>Prism</strong> User f <strong>Guide</strong><br />

prints the element of a that has the largest value. (Ihis is equivalent to the mAX-<br />

LOC intrinsic function.) See Section 2.9 for more information on writing<br />

expressions in <strong>Prism</strong>.<br />

Note that setting the context affects only the rinting or displavine of the vari-<br />

_ ___ -- w -- - -able.<br />

It does not affect the actual context of the program as it executes.<br />

5.3 Working with Visualizers<br />

The window that contains the data being printed or displayed is called a visualizer.<br />

Figure 19 shows a visualizer for a 3-dimensional array.<br />

menus--<br />

display<br />

window<br />

Z31 Zz 223 224 225<br />

231 232 233 234 235<br />

241 242 243 244 245<br />

251 252 253 254 255<br />

261 262 263 264 265<br />

A 272 273 274 275<br />

282 283 284 285<br />

291 292 293 294 295<br />

301 302 303 304 305<br />

311 312 313 314 315<br />

321 322 323 324 325<br />

331 332 333 334 335<br />

341 342 343 344 345<br />

351 352 353 354 355<br />

361 362 363 364 365<br />

371 372. 373 374 375<br />

381 382 383 384 385<br />

391 392 393 394 395<br />

401 402 403 404 405<br />

Figme 19. A visualize for a 3-dimensional array.<br />

~ data<br />

navigator<br />

The visualizer consists of two parts: the data navigator and the display window.<br />

There are also File and Options pulldown menus.<br />

The data navigator shows which portion of the data is being displayed, and provides<br />

a quick method for moving through the data. The data navigator looks<br />

different depending on the number of dimensions in the data. It is described in<br />

more detail in Section 5.3.1.<br />

Version 1.2, March 1993<br />

Copyright C 1993 Thinking Machines Corporation<br />

I<br />

i<br />

l<br />

I i,

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!