Supporting multidimensional arrays in Java
✍ Scribed by José E. Moreira; Samuel P. Midkiff; Manish Gupta
- Book ID
- 102115411
- Publisher
- John Wiley and Sons
- Year
- 2003
- Tongue
- English
- Weight
- 399 KB
- Volume
- 15
- Category
- Article
- ISSN
- 1532-0626
- DOI
- 10.1002/cpe.661
No coin nor oath required. For personal study only.
✦ Synopsis
Abstract
The lack of direct support for multidimensional arrays in Java^TM^ has been recognized as a major deficiency in the language's applicability to numerical computing. It has been shown that, when augmented with multidimensional arrays, Java can achieve very high‐performance for numerical computing through the use of compiler techniques and efficient implementations of aggregate array operations. Three approaches have been discussed in the literature for extending Java with support for multidimensional arrays: class libraries that implement these structures; extending the Java language with new syntactic constructs for multidimensional arrays that are directly translated to bytecode; and relying on the Java Virtual Machine to recognize those arrays of arrays that are being used to simulate multidimensional arrays. This paper presents a balanced presentation of the pros and cons of each technique in the areas of functionality, language and virtual machine impact, implementation effort, and effect on performance. We show that the best choice depends on the relative importance attached to the different metrics, and thereby provide a common ground for a rational discussion and comparison of the techniques. Copyright © 2003 John Wiley & Sons, Ltd.
📜 SIMILAR VOLUMES
We study the following tiling problem in d dimensions: given a d-dimensional rectangular array of nonnegative numbers and an integer p, partition the array into at most p rectangular subarrays so that the maximum weight of any subarray is minimized; the weight of a subarray is the sum of its element