home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.graphics.explorer
- Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!mips!odin!homebrew.asd.sgi.com!foulser
- From: foulser@homebrew.asd.sgi.com (David Foulser)
- Subject: Re: More information about the Shape language?
- Message-ID: <1992Aug17.184410.21264@odin.corp.sgi.com>
- Sender: news@odin.corp.sgi.com (Net News)
- Nntp-Posting-Host: homebrew.asd.sgi.com
- Reply-To: foulser@homebrew.asd.sgi.com (David Foulser)
- Organization: sgi
- References: <1992Aug17.143209.14091@mnemosyne.cs.du.edu>
- Date: Mon, 17 Aug 1992 18:44:10 GMT
- Lines: 17
-
- subshape( lo, hi, array ) = values;
-
- is the best way to fill an array. Doing it with a double/triple loop will
- be very inefficient. You'll need to make sure that your left and right
- hand sides of the previous assignment statement are compatibly sized,
- which you can do by trying
-
- write(shape(values));
- write(shape(subshape( lo, hi, array )));
-
- Dave
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- David Foulser foulser@sgi.com
- MS 7U-545
- Silicon Graphics, Inc 415/390-5338
- 2011 N. Shoreline Blvd. 415/969-6412 FAX
- Mountain View, CA 94039-7311
-