Basic HTML version of Foils prepared July 6 99

Foil 73 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


1 There is a rectangular array interface, which would allow multiple implementations.
2 Class doubleArray implements part of the interface by providing get and set methods for indexing elements.
3 Classes doubleArray1D, doubleArray2D, . . . implement the various ranks
4 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.
5 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.

in Table To:


© 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