Basic HTML version of Foils prepared July 6 99

Foil 74 Proposal for Rectangular Array class

From Use of Java Language in Computational Science DoD Modernization Users Group Conference Monterey -- June 7 99. by Nancy McCracken, Geoffrey C. Fox


There is a rectangular array interface, which would allow multiple implementations.
Class doubleArray implements part of the interface by providing get and set methods for indexing elements.
Classes doubleArray1D, doubleArray2D, . . . implement the various ranks
One of the constructors: new doubleArray2D ( a ); takes a Java array a of type double[ ] [ ] and makes a rectangular array of the same shape and values.
Various get methods allow to select elements, rows, columns, or various slices. The implementation may store the array as a 1D object and can thus optimize these operations.



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Tue Jul 6 1999