All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class array.doubleArray

java.lang.Object
   |
   +----array.doubleArray

public abstract class doubleArray
extends Object
implements Array
doubleArray = abstract class for arrays of doubles

The doubleArray abstract class is the parent class of all concrete arrays of doubles. It implements the Array.getAsObject and Array.setToObject methods of interface Array. It also declares the methods get and set, that must be implemented by all doubleArray<rank> classes.

The following <rank>s are valid:

0D (for 0-dimensional arrays), 1D (for 1-dimensional arrays), 2D, 3D, 4D, 5D, 6D, 7D.


Constructor Index

 o doubleArray()

Method Index

 o get(int[])
Return the value of an element of the array.
 o getAsObject(int[])
Return a Double object which has the same value as the specified element of the array.
 o rank()
Return the rank of the array.
 o set(int[], double)
Set the value of an element of the array.
 o setToObject(int[], Object)
Sets the specified element of the array to a particular value.
 o shape()
Return the shape of the array as an int[] I of length rank().
 o size()
Return the number of elements in the array.
 o size(int)
Return the extent of the array along its i-th axis.

Constructors

 o doubleArray
 public doubleArray()

Methods

 o get
 public abstract double get(int index[]) throws InvalidArrayIndexException, ArrayIndexOutOfBoundsException
Return the value of an element of the array.

Parameters:
index - index[i] = index along i-th axis, 0 <= index[i] < size(i)
Throws: InvalidArrayIndexException
index[] must be of length equal to rank
 o set
 public abstract void set(int index[],
                          double d) throws InvalidArrayIndexException, ArrayIndexOutOfBoundsException
Set the value of an element of the array.

Parameters:
index - index[i] = index along i-th axis, 0 <= index[i] < size(i)
d - value to which element is set
Throws: InvalidArrayIndexException
index[] must be of length equal to rank
 o getAsObject
 public Object getAsObject(int index[]) throws InvalidArrayIndexException, ArrayIndexOutOfBoundsException
Return a Double object which has the same value as the specified element of the array.

Parameters:
index - index[i] = index along i-th axis, 0 <= index[i] < size(i)
Throws: InvalidArrayIndexException
index[] must be of length equal to rank
 o setToObject
 public void setToObject(int index[],
                         Object obj) throws InvalidArrayIndexException, ArrayIndexOutOfBoundsException, NullPointerException
Sets the specified element of the array to a particular value.

Parameters:
index - index[i] = index along i-th axis, 0 <= index[i] < size(i)
obj - the array element is set to the value of this Object
Throws: InvalidArrayIndexException
index[] must be of length equal to rank

All Packages  Class Hierarchy  This Package  Previous  Next  Index