User`s guide

Using Class Methods
System.out.println();
When run, the example displays this output:
Data read from matrix A is:
171328143915410165111761218
set. This method replaces the element at a specified index in the MWArray
object with the input element.
To set the element at a specific index, use one of the following:
public void set(int index, Object element)
public void set(int[] index, Object element)
Use the first syntax (int index) to return the ele ment at the specified
one-based offset in the a rray, accessing elements in column-wise order. Us e the
second syntax (
int[] index) to return the element at the specified array of
one-based indices. The first syntax offers better performance than the second.
Input Parameters
element
New element to replace at index
index
Index of the requested element in the MWArray.
In the case where
index is of type int, the valid range for index is 1<=index
<= N
,whereN is the total number of elements in the array.
Inthecasewhere
index is of type int[],eachelementoftheindex vector is
an index along one dimension of the
MWArray object. The valid range for any
index is
1 <= index[i] <= N[i],whereN[i] is the size of the ith dime nsion.
4-47