All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.math.array.shortArray2D

java.lang.Object
   |
   +----com.ibm.math.array.Array
           |
           +----com.ibm.math.array.shortArray
                   |
                   +----com.ibm.math.array.shortArray2D

public final class shortArray2D
extends shortArray
shortArray2D = 2-dimensional array of shorts

The shortArray2D concrete class implements 2-dimensional arrays of shorts. 2-dimensional arrays can either be instantiated directly through constructors, or they can begenerated by extracting sections from other 2- or higher-dimensional arrays.


Constructor Index

 o shortArray2D(int, int)
Create a 2-dimensional array of a certain shape.
 o shortArray2D(short[][])
Create a 2-dimensional array, with shape and values defined by a Java short[][].
 o shortArray2D(shortArray2D)
Create a new 2-dimensional array as a copy of a given shortArray2D

Method Index

 o assign(short)
Assign a scalar value to all elements of the array.
 o assign(shortArray2D)
Assign the values from another 2-dimensional array to this array.
 o div(short)
Each array element is divided by a scalar and the data computed is returned in a new array

 o div(short, shortArray2D)
Each array element is divided by a scalar and the data computed is returned in the result array parameter

 o div(shortArray2D)
Divides each array element by the corresponding array element and return the data computed in a new array

 o div(shortArray2D, shortArray2D)
Divides each array element by the corresponding array element and return the data computed in the result array parameter

 o divAssign(short)
div combined with assignment to this array
 o divAssign(shortArray2D)
div combined with assignment to this array
 o equals(short)
Computes, element by element, the result of the comparison: element of this array equals to scalar and return all the results in a new booleanArray2D of the same shape as this array.
 o equals(short, booleanArray2D)
Computes, element by element, the result of the comparison: element of this array equals to scalar and return all the results in the result array.
 o equals(shortArray2D)
Computes, element by element, the result of the comparison: element of this array equals to parameter array (arrayin) element and return all the results in a new booleanArray2D of the same shape as both arrays.
 o equals(shortArray2D, booleanArray2D)
Computes, element by element, the result of the comparison: element of this array equals to parameter array (arrayin) element and return all the results in the result array.
 o get(Index, Index)
Extract selected elements of this shortArray2D into a new shortArray2D.
 o get(Index, Index, shortArray2D)
Extract selected elements of this shortArray2D into a shortArray2D.
 o get(Index, int)
Extract selected elements of this shortArray2D into a new shortArray1D.
 o get(Index, int, shortArray1D)
Extract selected elements of this shortArray2D into a shortArray1D.
 o get(Index, Range)
Extract selected elements of this shortArray2D into a new shortArray2D.
 o get(Index, Range, shortArray2D)
Extract selected elements of this shortArray2D into a shortArray2D.
 o get(int, Index)
Extract selected elements of this shortArray2D into a new shortArray1D.
 o get(int, Index, shortArray1D)
Extract selected elements of this shortArray2D into a shortArray1D.
 o get(int, int)
Return the value of an element of the array.
 o get(int, Range)
Extract selected elements of this shortArray2D into a new shortArray1D.
 o get(int, Range, shortArray1D)
Extract selected elements of this shortArray2D into a shortArray1D.
 o get(int[])
Return the value of an element of the array.
 o get(Range, Index)
Extract selected elements of this shortArray2D into a new shortArray2D.
 o get(Range, Index, shortArray2D)
Extract selected elements of this shortArray2D into a shortArray2D.
 o get(Range, int)
Extract selected elements of this shortArray2D into a new shortArray1D.
 o get(Range, int, shortArray1D)
Extract selected elements of this shortArray2D into a shortArray1D.
 o get(Range, Range)
Extract selected elements of this shortArray2D into a new shortArray2D.
 o get(Range, Range, shortArray2D)
Extract selected elements of this shortArray2D into a shortArray2D.
 o greater(short)
Computes, element by element, the result of the comparison: element of this array greater than scalar and return all the results in a new booleanArray2D of the same shape as this array.
 o greater(short, booleanArray2D)
Computes, element by element, the result of the comparison: element of this array greater than scalar and return all the results in the result array.
 o greater(shortArray2D)
Computes, element by element, the result of the comparison: element of this array greater than parameter array (arrayin) element and return all the results in a new booleanArray2D of the same shape as both arrays.
 o greater(shortArray2D, booleanArray2D)
Computes, element by element, the result of the comparison: element of this array greater than parameter array (arrayin) element and return all the results in the result array.
 o greaterEquals(short)
Computes, element by element, the result of the comparison: element of this array greater than or equals to scalar and return all the results in a new booleanArray2D of the same shape as this array.
 o greaterEquals(short, booleanArray2D)
Computes, element by element, the result of the comparison: element of this array greater than or equals to scalar and return all the results in the result array.
 o greaterEquals(shortArray2D)
Computes, element by element, the result of the comparison: element of this array greater than or equals to parameter array (arrayin) element and return all the results in a new booleanArray2D of the same shape as both arrays.
 o greaterEquals(shortArray2D, booleanArray2D)
Computes, element by element, the result of the comparison: element of this array greater than or equals to parameter array (arrayin) element and return all the results in the result array.
 o last(int)
Return the index of the last element along its i-th axis.
 o less(short)
Computes, element by element, the result of the comparison: element of this array less than scalar and return all the results in a new booleanArray2D of the same shape as this array.
 o less(short, booleanArray2D)
Computes, element by element, the result of the comparison: element of this array less than scalar and return all the results in the result array.
 o less(shortArray2D)
Computes, element by element, the result of the comparison: element of this array less than parameter array (arrayin) element and return all the results in a new booleanArray2D of the same shape as both arrays.
 o less(shortArray2D, booleanArray2D)
Computes, element by element, the result of the comparison: element of this array less than parameter array (arrayin) element and return all the results in the result array.
 o lessEquals(short)
Computes, element by element, the result of the comparison: element of this array less than or equals to scalar and return all the results in a new booleanArray2D of the same shape as this array.
 o lessEquals(short, booleanArray2D)
Computes, element by element, the result of the comparison: element of this array less than or equals to scalar and return all the results in the result array.
 o lessEquals(shortArray2D)
Computes, element by element, the result of the comparison: element of this array less than or equals to parameter array (arrayin) element and return all the results in a new booleanArray2D of the same shape as both arrays.
 o lessEquals(shortArray2D, booleanArray2D)
Computes, element by element, the result of the comparison: element of this array less than or equals to parameter array (arrayin) element and return all the results in the result array.
 o minus(short)
Subtracts a scalar from each array element and return the data computed in a new array

 o minus(short, shortArray2D)
Subtracts a scalar from each array element and return the data computed in the result array parameter

 o minus(shortArray2D)
Subtracts the corresponding array element from each array element and return the data computed in a new array

 o minus(shortArray2D, shortArray2D)
Subtracts the corresponding array element from each array element and return the data computed in the result array parameter

 o minusAssign(short)
minus combined with assignment to this array
 o minusAssign(shortArray2D)
minus combined with assignment to this array
 o permuteAxes(int, int)
Permute the axes of this array, thus creating a reference to its (generic) transpose.
 o permuteAxes(int[])
Permute the axes of this array, thus creating a reference to its (generic) transpose.
 o plus(short)
Adds a scalar to each array element and return the data computed in a new array

 o plus(short, shortArray2D)
Adds a scalar to each array element and return the data computed in the result array parameter

 o plus(shortArray2D)
Adds the corresponding array element to each array element and return the data computed in a new array

 o plus(shortArray2D, shortArray2D)
Adds the corresponding array element to each array element and return the data computed in the result array parameter

 o plusAssign(short)
plus combined with assignment to this array
 o plusAssign(shortArray2D)
plus combined with assignment to this array
 o rank()
Return the rank of the 2-dimensional array, 2.
 o rem(short)
Each array element is divided by a scalar and the remaining of the integer division computed is returned in a new array

 o rem(short, shortArray2D)
Each array element is divided by a scalar and the remaining of the integer division computed is returned in the result array parameter

 o rem(shortArray2D)
Each array element is divided by a scalar and the remaining of the integer division computed is returned in a new array

 o rem(shortArray2D, shortArray2D)
Each array element is divided by a scalar and the remaining of the integer division computed is returned in the result array parameter

 o remAssign(short)
rem combined with assignment to this array
 o remAssign(shortArray2D)
rem combined with assignment to this array
 o reshape()
This method reshapes this array into an array with rank 0, each parameter gives the size in each array dimension, the array returned has a copy of the data from this array, it does not share data with this array

 o reshape(int)
This method reshapes this array into an array with rank 1, each parameter gives the size in each array dimension, the array returned has a copy of the data from this array, it does not share data with this array

 o reshape(int, int)
This method reshapes this array into an array with rank 2, each parameter gives the size in each array dimension, the array returned has a copy of the data from this array, it does not share data with this array

 o reshape(int, int, int)
This method reshapes this array into an array with rank 3, each parameter gives the size in each array dimension, the array returned has a copy of the data from this array, it does not share data with this array

 o reshape(int[])
This method is the implementation of the Array interface reshape that simply call the apropriate version of reshape given the target rank.
 o section(int, int)
Extract a 0-dimensional section from the array.
 o section(int, Range)
Extract a 1-dimensional section from the array.
 o section(Range, int)
Extract a 1-dimensional section from the array.
 o section(Range, Range)
Extract a 2-dimensional section from the array.
 o set(Index, Index, short)
Update the value of the selected elements of this shortArray2D with the data in datain.
 o set(Index, Index, shortArray2D)
Update the value of the selected elements of this shortArray2D with the data in a shortArray2D.
 o set(Index, int, short)
Update the value of the selected elements of this shortArray2D with the data in datain.
 o set(Index, int, shortArray1D)
Update the value of the selected elements of this shortArray2D with the data in a shortArray1D.
 o set(Index, Range, short)
Update the value of the selected elements of this shortArray2D with the data in datain.
 o set(Index, Range, shortArray2D)
Update the value of the selected elements of this shortArray2D with the data in a shortArray2D.
 o set(int, Index, short)
Update the value of the selected elements of this shortArray2D with the data in datain.
 o set(int, Index, shortArray1D)
Update the value of the selected elements of this shortArray2D with the data in a shortArray1D.
 o set(int, int, short)
Set the value of an element of the array.
 o set(int, Range, short)
Update the value of the selected elements of this shortArray2D with the data in datain.
 o set(int, Range, shortArray1D)
Update the value of the selected elements of this shortArray2D with the data in a shortArray1D.
 o set(int[], short)
Set the value of an element of the array.
 o set(Range, Index, short)
Update the value of the selected elements of this shortArray2D with the data in datain.
 o set(Range, Index, shortArray2D)
Update the value of the selected elements of this shortArray2D with the data in a shortArray2D.
 o set(Range, int, short)
Update the value of the selected elements of this shortArray2D with the data in datain.
 o set(Range, int, shortArray1D)
Update the value of the selected elements of this shortArray2D with the data in a shortArray1D.
 o set(Range, Range, short)
Update the value of the selected elements of this shortArray2D with the data in datain.
 o set(Range, Range, shortArray2D)
Update the value of the selected elements of this shortArray2D with the data in a shortArray2D.
 o shape()
Return the shape of the array as an int[] I of length 2.
 o size()
Return the number of elements in the array.
 o size(int)
Return the extent of the array along its i-th axis.
 o times(short)
Each array element is multiplied by the scalar parameter and the data computed is returned in a new array

 o times(short, shortArray2D)
Each array element is multiplied by scalar and the data computed is returned in result array parameter

 o times(shortArray2D)
Multiplies each array element by its corresponding array element and return the data computed in a new array

 o times(shortArray2D, shortArray2D)
Multiplies each array element by its corresponding array element and return the data computed in the result array parameter

 o timesAssign(short)
times combined with assignment to this array
 o timesAssign(shortArray2D)
times combined with assignment to this array
 o toJava()
Transforms this shortArray2D to a short[][].
 o unequals(short)
Computes, element by element, the result of the comparison: element of this array not equals to scalar and return all the results in a new booleanArray2D of the same shape as this array.
 o unequals(short, booleanArray2D)
Computes, element by element, the result of the comparison: element of this array not equals to scalar and return all the results in the result array.
 o unequals(shortArray2D)
Computes, element by element, the result of the comparison: element of this array not equals to parameter array (arrayin) element and return all the results in a new booleanArray2D of the same shape as both arrays.
 o unequals(shortArray2D, booleanArray2D)
Computes, element by element, the result of the comparison: element of this array not equals to parameter array (arrayin) element and return all the results in the result array.

Constructors

 o shortArray2D
 public shortArray2D(int n0,
                     int n1) throws InvalidArrayShapeException
Create a 2-dimensional array of a certain shape. Elements are 0-valued

Parameters:
n0 - extent of the array along 0th axis
n1 - extent of the array along 1th axis
Throws: InvalidArrayShapeException
all extents must be nonnegative
 o shortArray2D
 public shortArray2D(shortArray2D arrayin)
Create a new 2-dimensional array as a copy of a given shortArray2D

Parameters:
arrayin - Array to copy
 o shortArray2D
 public shortArray2D(short datain[][]) throws InvalidArrayShapeException
Create a 2-dimensional array, with shape and values defined by a Java short[][].

Parameters:
datain - Java short[][] defining shape and values of the array
Throws: InvalidArrayShapeException
The Java array must be rectangular

Methods

 o assign
 public void assign(short value)
Assign a scalar value to all elements of the array.

Parameters:
d - value to be assigned
 o assign
 public void assign(shortArray2D arrayin) throws NonconformingArrayException
Assign the values from another 2-dimensional array to this array.

Parameters:
a - array with source values
Throws: NonconformingArrayException
arrays must be of same shape
 o rank
 public int rank()
Return the rank of the 2-dimensional array, 2.

Overrides:
rank in class Array
 o shape
 public int[] shape()
Return the shape of the array as an int[] I of length 2. ret[0] = size(0) ret[1] = size(1)

Overrides:
shape in class Array
 o size
 public int size()
Return the number of elements in the array.

Returns:
the total number of elements
Overrides:
size in class Array
 o size
 public int size(int i) throws InvalidArrayAxisException
Return the extent of the array along its i-th axis.

Parameters:
i - array axis (0 <= i < rank())
Returns:
the number of elements along axis i
Throws: InvalidArrayAxisException
i must be between 0 and 1
Overrides:
size in class Array
 o last
 public int last(int i) throws InvalidArrayAxisException
Return the index of the last element along its i-th axis. the value returned is simply size(i)-1, but is convenient to have such a method because last(i) is more readable than size(i)-1.

Parameters:
i - array axis (0 <= i < rank())
Returns:
the index of the last element along axis i
Throws: InvalidArrayAxisException
i must be between 0 and 1
Overrides:
last in class Array
 o permuteAxes
 public Array permuteAxes(int permarray[]) throws InvalidArrayAxisException
Permute the axes of this array, thus creating a reference to its (generic) transpose.

Parameters:
array - an array indicating the permutation to be done. ex: for a 2D array array2D.PermuteAxis({1,0}); would permute the array, but array2D.PermuteAxis({0,1}); returns the same array
Throws: InvalidArrayAxisException
0 <= a0,a1 <= 1
Overrides:
permuteAxes in class Array
 o permuteAxes
 public shortArray2D permuteAxes(int a0,
                                 int a1) throws InvalidArrayAxisException
Permute the axes of this array, thus creating a reference to its (generic) transpose.

Parameters:
a0 - Axis to appear as 0 axis (0 to 1)
a1 - Axis to appear as 0 axis (0 to 1)
Throws: InvalidArrayAxisException
Axes must be in valid range and all different
 o reshape
 public Array reshape(int size[]) throws NonconformingArrayException
This method is the implementation of the Array interface reshape that simply call the apropriate version of reshape given the target rank.

Parameters:
size - size[i] is the extent of the result array along the i axis.
Throws: NonconformingArrayException
The size of the resulting array must be compatible with this array, and in the range of ranks supported by this implementation.
Overrides:
reshape in class Array
 o reshape
 public shortArray0D reshape() throws NonconformingArrayException
This method reshapes this array into an array with rank 0, each parameter gives the size in each array dimension, the array returned has a copy of the data from this array, it does not share data with this array

Throws: NonconformingArrayException
the product of all parameters must be equal to size of this array
 o reshape
 public shortArray1D reshape(int size0) throws NonconformingArrayException
This method reshapes this array into an array with rank 1, each parameter gives the size in each array dimension, the array returned has a copy of the data from this array, it does not share data with this array

Parameters:
size0: - extent of resulting array along axis #0
Throws: NonconformingArrayException
the product of all parameters must be equal to size of this array
 o reshape
 public shortArray2D reshape(int size0,
                             int size1) throws NonconformingArrayException
This method reshapes this array into an array with rank 2, each parameter gives the size in each array dimension, the array returned has a copy of the data from this array, it does not share data with this array

Parameters:
size0: - extent of resulting array along axis #0
size1: - extent of resulting array along axis #1
Throws: NonconformingArrayException
the product of all parameters must be equal to size of this array
 o reshape
 public shortArray3D reshape(int size0,
                             int size1,
                             int size2) throws NonconformingArrayException
This method reshapes this array into an array with rank 3, each parameter gives the size in each array dimension, the array returned has a copy of the data from this array, it does not share data with this array

Parameters:
size0: - extent of resulting array along axis #0
size1: - extent of resulting array along axis #1
size2: - extent of resulting array along axis #2
Throws: NonconformingArrayException
the product of all parameters must be equal to size of this array
 o section
 public shortArray0D section(int idx0,
                             int idx1) throws ArrayIndexOutOfBoundsException
Extract a 0-dimensional section from the array.

Parameters:
i0 - index along axis n# 0 defining the section
i1 - index along axis n# 1 defining the section
Throws: ArrayIndexOutOfBoundsException
indices must be valid
 o section
 public shortArray1D section(int idx0,
                             Range idx1) throws ArrayIndexOutOfBoundsException
Extract a 1-dimensional section from the array.

Parameters:
i0 - index along axis n# 0 defining the section
i1 - range of indices along axis n# 1 defining the section
Throws: ArrayIndexOutOfBoundsException
indices must be valid
 o section
 public shortArray1D section(Range idx0,
                             int idx1) throws ArrayIndexOutOfBoundsException
Extract a 1-dimensional section from the array.

Parameters:
i0 - range of indices along axis n# 0 defining the section
i1 - index along axis n# 1 defining the section
Throws: ArrayIndexOutOfBoundsException
indices must be valid
 o section
 public shortArray2D section(Range idx0,
                             Range idx1) throws ArrayIndexOutOfBoundsException
Extract a 2-dimensional section from the array.

Parameters:
i0 - range of indices along axis n# 0 defining the section
i1 - range of indices along axis n# 1 defining the section
Throws: ArrayIndexOutOfBoundsException
indices must be valid
 o get
 public short 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 2
Overrides:
get in class shortArray
 o get
 public short get(int idx0,
                  int idx1) throws ArrayIndexOutOfBoundsException
Return the value of an element of the array.

Parameters:
idx0 - index along the axis n# 0 of the array.
idx1 - index along the axis n# 1 of the array.
 o get
 public shortArray1D get(int idx0,
                         Range idx1) throws ArrayIndexOutOfBoundsException
Extract selected elements of this shortArray2D into a new shortArray1D.

Parameters:
idx0 - indexes along the axis n# 0 of the array
idx1 - indexes along the axis n# 1 of the array
Throws: NonconformingArrayException
shapes must match
Throws: ArrayIndexOutOfBoundsException
indices must be valid
 o get
 public void get(int idx0,
                 Range idx1,
                 shortArray1D result) throws ArrayIndexOutOfBoundsException, NonconformingArrayException
Extract selected elements of this shortArray2D into a shortArray1D.

Parameters:
idx0 - indexes along the axis n# 0 of the array
idx1 - indexes along the axis n# 1 of the array
result - resulting array
Throws: NonconformingArrayException
shapes must match
Throws: ArrayIndexOutOfBoundsException
indices must be valid
 o get
 public shortArray1D get(int idx0,
                         Index idx1) throws ArrayIndexOutOfBoundsException
Extract selected elements of this shortArray2D into a new shortArray1D.

Parameters:
idx0 - indexes along the axis n# 0 of the array
idx1 - indexes along the axis n# 1 of the array
Throws: NonconformingArrayException
shapes must match
Throws: ArrayIndexOutOfBoundsException
indices must be valid
 o get
 public void get(int idx0,
                 Index idx1,
                 shortArray1D result) throws ArrayIndexOutOfBoundsException, NonconformingArrayException
Extract selected elements of this shortArray2D into a shortArray1D.

Parameters:
idx0 - indexes along the axis n# 0 of the array
idx1 - indexes along the axis n# 1 of the array
result - resulting array
Throws: NonconformingArrayException
shapes must match
Throws: ArrayIndexOutOfBoundsException
indices must be valid
 o get
 public shortArray1D get(Range idx0,
                         int idx1) throws ArrayIndexOutOfBoundsException
Extract selected elements of this shortArray2D into a new shortArray1D.

Parameters:
idx0 - indexes along the axis n# 0 of the array
idx1 - indexes along the axis n# 1 of the array
Throws: NonconformingArrayException
shapes must match
Throws: ArrayIndexOutOfBoundsException
indices must be valid
 o get
 public void get(Range idx0,
                 int idx1,
                 shortArray1D result) throws ArrayIndexOutOfBoundsException, NonconformingArrayException
Extract selected elements of this shortArray2D into a shortArray1D.

Parameters:
idx0 - indexes along the axis n# 0 of the array
idx1 - indexes along the axis n# 1 of the array
result - resulting array
Throws: NonconformingArrayException
shapes must match
Throws: ArrayIndexOutOfBoundsException
indices must be valid
 o get
 public shortArray2D get(Range idx0,
                         Range idx1) throws ArrayIndexOutOfBoundsException
Extract selected elements of this shortArray2D into a new shortArray2D.

Parameters:
idx0 - indexes along the axis n# 0 of the array
idx1 - indexes along the axis n# 1 of the array
Throws: NonconformingArrayException
shapes must match
Throws: ArrayIndexOutOfBoundsException
indices must be valid
 o get
 public void get(Range idx0,
                 Range idx1,
                 shortArray2D result) throws ArrayIndexOutOfBoundsException, NonconformingArrayException
Extract selected elements of this shortArray2D into a shortArray2D.

Parameters:
idx0 - indexes along the axis n# 0 of the array
idx1 - indexes along the axis n# 1 of the array
result - resulting array
Throws: NonconformingArrayException
shapes must match
Throws: ArrayIndexOutOfBoundsException
indices must be valid
 o get
 public shortArray2D get(Range idx0,
                         Index idx1) throws ArrayIndexOutOfBoundsException
Extract selected elements of this shortArray2D into a new shortArray2D.

Parameters:
idx0 - indexes along the axis n# 0 of the array
idx1 - indexes along the axis n# 1 of the array
Throws: NonconformingArrayException
shapes must match
Throws: ArrayIndexOutOfBoundsException
indices must be valid
 o get
 public void get(Range idx0,
                 Index idx1,
                 shortArray2D result) throws ArrayIndexOutOfBoundsException, NonconformingArrayException
Extract selected elements of this shortArray2D into a shortArray2D.

Parameters:
idx0 - indexes along the axis n# 0 of the array
idx1 - indexes along the axis n# 1 of the array
result - resulting array
Throws: NonconformingArrayException
shapes must match
Throws: ArrayIndexOutOfBoundsException
indices must be valid
 o get
 public shortArray1D get(Index idx0,
                         int idx1) throws ArrayIndexOutOfBoundsException
Extract selected elements of this shortArray2D into a new shortArray1D.

Parameters:
idx0 - indexes along the axis n# 0 of the array
idx1 - indexes along the axis n# 1 of the array
Throws: NonconformingArrayException
shapes must match
Throws: ArrayIndexOutOfBoundsException
indices must be valid
 o get
 public void get(Index idx0,
                 int idx1,
                 shortArray1D result) throws ArrayIndexOutOfBoundsException, NonconformingArrayException
Extract selected elements of this shortArray2D into a shortArray1D.

Parameters:
idx0 - indexes along the axis n# 0 of the array
idx1 - indexes along the axis n# 1 of the array
result - resulting array
Throws: NonconformingArrayException
shapes must match
Throws: ArrayIndexOutOfBoundsException
indices must be valid
 o get
 public shortArray2D get(Index idx0,
                         Range idx1) throws ArrayIndexOutOfBoundsException
Extract selected elements of this shortArray2D into a new shortArray2D.

Parameters:
idx0 - indexes along the axis n# 0 of the array
idx1 - indexes along the axis n# 1 of the array
Throws: NonconformingArrayException
shapes must match
Throws: ArrayIndexOutOfBoundsException
indices must be valid
 o get
 public void get(Index idx0,
                 Range idx1,
                 shortArray2D result) throws ArrayIndexOutOfBoundsException, NonconformingArrayException
Extract selected elements of this shortArray2D into a shortArray2D.

Parameters:
idx0 - indexes along the axis n# 0 of the array
idx1 - indexes along the axis n# 1 of the array
result - resulting array
Throws: NonconformingArrayException
shapes must match
Throws: ArrayIndexOutOfBoundsException
indices must be valid
 o get
 public shortArray2D get(Index idx0,
                         Index idx1) throws ArrayIndexOutOfBoundsException
Extract selected elements of this shortArray2D into a new shortArray2D.

Parameters:
idx0 - indexes along the axis n# 0 of the array
idx1 - indexes along the axis n# 1 of the array
Throws: NonconformingArrayException
shapes must match
Throws: ArrayIndexOutOfBoundsException
indices must be valid
 o get
 public void get(Index idx0,
                 Index idx1,
                 shortArray2D result) throws ArrayIndexOutOfBoundsException, NonconformingArrayException
Extract selected elements of this shortArray2D into a shortArray2D.

Parameters:
idx0 - indexes along the axis n# 0 of the array
idx1 - indexes along the axis n# 1 of the array
result - resulting array
Throws: NonconformingArrayException
shapes must match
Throws: ArrayIndexOutOfBoundsException
indices must be valid
 o set
 public void set(int index[],
                 short 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 2
Overrides:
set in class shortArray
 o set
 public void set(int idx0,
                 int idx1,
                 short val) throws ArrayIndexOutOfBoundsException
Set the value of an element of the array.

Parameters:
idx0 - index along the axis n# 0 of the array
idx1 - index along the axis n# 1 of the array
val - value to which element is set
 o set
 public void set(int idx0,
                 Range idx1,
                 shortArray1D arrayin) throws ArrayIndexOutOfBoundsException, NonconformingArrayException
Update the value of the selected elements of this shortArray2D with the data in a shortArray1D.

Parameters:
idx0 - indexes along the axis n# 0 of the array
idx1 - indexes along the axis n# 1 of the array
arrayin - array containing the input data
Throws: NonconformingArrayException
shapes must match
Throws: ArrayIndexOutOfBoundsException
indices must be valid
 o set
 public void set(int idx0,
                 Range idx1,
                 short datain) throws ArrayIndexOutOfBoundsException
Update the value of the selected elements of this shortArray2D with the data in datain.

Parameters:
idx0 - indexes along the axis n# 0 of the array
idx1 - indexes along the axis n# 1 of the array
datain - set all elements with this value
Throws: ArrayIndexOutOfBoundsException
indices must be valid
 o set
 public void set(int idx0,
                 Index idx1,
                 shortArray1D arrayin) throws ArrayIndexOutOfBoundsException, NonconformingArrayException
Update the value of the selected elements of this shortArray2D with the data in a shortArray1D.

Parameters:
idx0 - indexes along the axis n# 0 of the array
idx1 - indexes along the axis n# 1 of the array
arrayin - array containing the input data
Throws: NonconformingArrayException
shapes must match
Throws: ArrayIndexOutOfBoundsException
indices must be valid
 o set
 public void set(int idx0,
                 Index idx1,
                 short datain) throws ArrayIndexOutOfBoundsException
Update the value of the selected elements of this shortArray2D with the data in datain.

Parameters:
idx0 - indexes along the axis n# 0 of the array
idx1 - indexes along the axis n# 1 of the array
datain - set all elements with this value
Throws: ArrayIndexOutOfBoundsException
indices must be valid
 o set
 public void set(Range idx0,
                 int idx1,
                 shortArray1D arrayin) throws ArrayIndexOutOfBoundsException, NonconformingArrayException
Update the value of the selected elements of this shortArray2D with the data in a shortArray1D.

Parameters:
idx0 - indexes along the axis n# 0 of the array
idx1 - indexes along the axis n# 1 of the array
arrayin - array containing the input data
Throws: NonconformingArrayException
shapes must match
Throws: ArrayIndexOutOfBoundsException
indices must be valid
 o set
 public void set(Range idx0,
                 int idx1,
                 short datain) throws ArrayIndexOutOfBoundsException
Update the value of the selected elements of this shortArray2D with the data in datain.

Parameters:
idx0 - indexes along the axis n# 0 of the array
idx1 - indexes along the axis n# 1 of the array
datain - set all elements with this value
Throws: ArrayIndexOutOfBoundsException
indices must be valid
 o set
 public void set(Range idx0,
                 Range idx1,
                 shortArray2D arrayin) throws ArrayIndexOutOfBoundsException, NonconformingArrayException
Update the value of the selected elements of this shortArray2D with the data in a shortArray2D.

Parameters:
idx0 - indexes along the axis n# 0 of the array
idx1 - indexes along the axis n# 1 of the array
arrayin - array containing the input data
Throws: NonconformingArrayException
shapes must match
Throws: ArrayIndexOutOfBoundsException
indices must be valid
 o set
 public void set(Range idx0,
                 Range idx1,
                 short datain) throws ArrayIndexOutOfBoundsException
Update the value of the selected elements of this shortArray2D with the data in datain.

Parameters:
idx0 - indexes along the axis n# 0 of the array
idx1 - indexes along the axis n# 1 of the array
datain - set all elements with this value
Throws: ArrayIndexOutOfBoundsException
indices must be valid
 o set
 public void set(Range idx0,
                 Index idx1,
                 shortArray2D arrayin) throws ArrayIndexOutOfBoundsException, NonconformingArrayException
Update the value of the selected elements of this shortArray2D with the data in a shortArray2D.

Parameters:
idx0 - indexes along the axis n# 0 of the array
idx1 - indexes along the axis n# 1 of the array
arrayin - array containing the input data
Throws: NonconformingArrayException
shapes must match
Throws: ArrayIndexOutOfBoundsException
indices must be valid
 o set
 public void set(Range idx0,
                 Index idx1,
                 short datain) throws ArrayIndexOutOfBoundsException
Update the value of the selected elements of this shortArray2D with the data in datain.

Parameters:
idx0 - indexes along the axis n# 0 of the array
idx1 - indexes along the axis n# 1 of the array
datain - set all elements with this value
Throws: ArrayIndexOutOfBoundsException
indices must be valid
 o set
 public void set(Index idx0,
                 int idx1,
                 shortArray1D arrayin) throws ArrayIndexOutOfBoundsException, NonconformingArrayException
Update the value of the selected elements of this shortArray2D with the data in a shortArray1D.

Parameters:
idx0 - indexes along the axis n# 0 of the array
idx1 - indexes along the axis n# 1 of the array
arrayin - array containing the input data
Throws: NonconformingArrayException
shapes must match
Throws: ArrayIndexOutOfBoundsException
indices must be valid
 o set
 public void set(Index idx0,
                 int idx1,
                 short datain) throws ArrayIndexOutOfBoundsException
Update the value of the selected elements of this shortArray2D with the data in datain.

Parameters:
idx0 - indexes along the axis n# 0 of the array
idx1 - indexes along the axis n# 1 of the array
datain - set all elements with this value
Throws: ArrayIndexOutOfBoundsException
indices must be valid
 o set
 public void set(Index idx0,
                 Range idx1,
                 shortArray2D arrayin) throws ArrayIndexOutOfBoundsException, NonconformingArrayException
Update the value of the selected elements of this shortArray2D with the data in a shortArray2D.

Parameters:
idx0 - indexes along the axis n# 0 of the array
idx1 - indexes along the axis n# 1 of the array
arrayin - array containing the input data
Throws: NonconformingArrayException
shapes must match
Throws: ArrayIndexOutOfBoundsException
indices must be valid
 o set
 public void set(Index idx0,
                 Range idx1,
                 short datain) throws ArrayIndexOutOfBoundsException
Update the value of the selected elements of this shortArray2D with the data in datain.

Parameters:
idx0 - indexes along the axis n# 0 of the array
idx1 - indexes along the axis n# 1 of the array
datain - set all elements with this value
Throws: ArrayIndexOutOfBoundsException
indices must be valid
 o set
 public void set(Index idx0,
                 Index idx1,
                 shortArray2D arrayin) throws ArrayIndexOutOfBoundsException, NonconformingArrayException
Update the value of the selected elements of this shortArray2D with the data in a shortArray2D.

Parameters:
idx0 - indexes along the axis n# 0 of the array
idx1 - indexes along the axis n# 1 of the array
arrayin - array containing the input data
Throws: NonconformingArrayException
shapes must match
Throws: ArrayIndexOutOfBoundsException
indices must be valid
 o set
 public void set(Index idx0,
                 Index idx1,
                 short datain) throws ArrayIndexOutOfBoundsException
Update the value of the selected elements of this shortArray2D with the data in datain.

Parameters:
idx0 - indexes along the axis n# 0 of the array
idx1 - indexes along the axis n# 1 of the array
datain - set all elements with this value
Throws: ArrayIndexOutOfBoundsException
indices must be valid
 o plus
 public void plus(short scalar,
                  shortArray2D result) throws NonconformingArrayException
Adds a scalar to each array element and return the data computed in the result array parameter

Parameters:
scalar - short to be added to each array element
result - shortArray2D Object that will store the result
Throws: NonconformingArrayException
shapes must match
 o plus
 public shortArray2D plus(short scalar)
Adds a scalar to each array element and return the data computed in a new array

Parameters:
scalar - short to be added to each array element
 o plus
 public void plus(shortArray2D arrayin,
                  shortArray2D result) throws NonconformingArrayException
Adds the corresponding array element to each array element and return the data computed in the result array parameter

Parameters:
arrayin - shortArray2D to be added element by element
result - shortArray2D Object that will store the result
Throws: NonconformingArrayException
shapes must match
 o plus
 public shortArray2D plus(shortArray2D array) throws NonconformingArrayException
Adds the corresponding array element to each array element and return the data computed in a new array

Parameters:
array - shortArray2D to be added element by element
Throws: NonconformingArrayException
shapes must match
 o plusAssign
 public shortArray2D plusAssign(short scalar)
plus combined with assignment to this array

Parameters:
scalar - The second source operand
 o plusAssign
 public shortArray2D plusAssign(shortArray2D array) throws NonconformingArrayException
plus combined with assignment to this array

Parameters:
array - The second source operand
Throws: NonconformingArrayException
shapes must match
 o minus
 public void minus(short scalar,
                   shortArray2D result) throws NonconformingArrayException
Subtracts a scalar from each array element and return the data computed in the result array parameter

@param scalar short to be subtracted from each array element

Parameters:
result - shortArray2D Object that will store the result
Throws: NonconformingArrayException
shapes must match
 o minus
 public shortArray2D minus(short scalar)
Subtracts a scalar from each array element and return the data computed in a new array

Parameters:
scalar - short to be subtracted from each array element
Throws: NonconformingArrayException
shapes must match
 o minus
 public void minus(shortArray2D arrayin,
                   shortArray2D result) throws NonconformingArrayException
Subtracts the corresponding array element from each array element and return the data computed in the result array parameter

Parameters:
arrayin - shortArray2D to be subtracted element by element
result - shortArray2D Object that will store the result
Throws: NonconformingArrayException
shapes must match
 o minus
 public shortArray2D minus(shortArray2D array) throws NonconformingArrayException
Subtracts the corresponding array element from each array element and return the data computed in a new array

Parameters:
array - shortArray2D to be added element by element
Throws: NonconformingArrayException
shapes must match
 o minusAssign
 public shortArray2D minusAssign(short scalar)
minus combined with assignment to this array

Parameters:
scalar - The second source operand
 o minusAssign
 public shortArray2D minusAssign(shortArray2D array) throws NonconformingArrayException
minus combined with assignment to this array

Parameters:
array - The second source operand
Throws: NonconformingArrayException
shapes must match
 o times
 public void times(short scalar,
                   shortArray2D result) throws NonconformingArrayException
Each array element is multiplied by scalar and the data computed is returned in result array parameter

Parameters:
scalar - each array element is multiplied by this short value
result - shortArray2D Object that will store the result
Throws: NonconformingArrayException
shapes must match
 o times
 public shortArray2D times(short scalar)
Each array element is multiplied by the scalar parameter and the data computed is returned in a new array

Parameters:
scalar - each array element is multiplied by this short value
 o times
 public void times(shortArray2D arrayin,
                   shortArray2D result) throws NonconformingArrayException
Multiplies each array element by its corresponding array element and return the data computed in the result array parameter

Parameters:
arrayin - shortArray2D to be multiplied element by element
result - shortArray2D Object that will store the result
Throws: NonconformingArrayException
shapes must match
 o times
 public shortArray2D times(shortArray2D array) throws NonconformingArrayException
Multiplies each array element by its corresponding array element and return the data computed in a new array

Parameters:
array - shortArray2D to be added element by element
Throws: NonconformingArrayException
shapes must match
 o timesAssign
 public shortArray2D timesAssign(short scalar)
times combined with assignment to this array

Parameters:
scalar - The second source operand
 o timesAssign
 public shortArray2D timesAssign(shortArray2D array) throws NonconformingArrayException
times combined with assignment to this array

Parameters:
array - The second source operand
Throws: NonconformingArrayException
shapes must match
 o div
 public void div(short scalar,
                 shortArray2D result) throws NonconformingArrayException
Each array element is divided by a scalar and the data computed is returned in the result array parameter

Parameters:
scalar - Each array element is divided by this short
result - shortArray2D Object that will store the result
Throws: NonconformingArrayException
shapes must match
 o div
 public shortArray2D div(short scalar)
Each array element is divided by a scalar and the data computed is returned in a new array

Parameters:
scalar - Each array element is divided by this short
Throws: NonconformingArrayException
shapes must match
 o div
 public void div(shortArray2D arrayin,
                 shortArray2D result) throws NonconformingArrayException
Divides each array element by the corresponding array element and return the data computed in the result array parameter

Parameters:
arrayin - the shortArray2D containing the divisors
result - shortArray2D Object that will store the result
Throws: NonconformingArrayException
shapes must match
 o div
 public shortArray2D div(shortArray2D array) throws NonconformingArrayException
Divides each array element by the corresponding array element and return the data computed in a new array

Parameters:
array - the shortArray2D containing the divisors
Throws: NonconformingArrayException
shapes must match
 o divAssign
 public shortArray2D divAssign(short scalar)
div combined with assignment to this array

Parameters:
scalar - The second source operand
 o divAssign
 public shortArray2D divAssign(shortArray2D array) throws NonconformingArrayException
div combined with assignment to this array

Parameters:
array - The second source operand
Throws: NonconformingArrayException
shapes must match
 o rem
 public void rem(short scalar,
                 shortArray2D result) throws NonconformingArrayException
Each array element is divided by a scalar and the remaining of the integer division computed is returned in the result array parameter

Parameters:
scalar - The remaing operation second operand
result - shortArray2D Object that will store the result
Throws: NonconformingArrayException
shapes must match
 o rem
 public shortArray2D rem(short scalar)
Each array element is divided by a scalar and the remaining of the integer division computed is returned in a new array

Parameters:
scalar - The remaing operation second operand
Throws: NonconformingArrayException
shapes must match
 o rem
 public void rem(shortArray2D arrayin,
                 shortArray2D result) throws NonconformingArrayException
Each array element is divided by a scalar and the remaining of the integer division computed is returned in the result array parameter

Parameters:
arrayin - the shortArray2D containing the divisors
result - shortArray2D Object that will store the result
Throws: NonconformingArrayException
shapes must match
 o rem
 public shortArray2D rem(shortArray2D array) throws NonconformingArrayException
Each array element is divided by a scalar and the remaining of the integer division computed is returned in a new array

Parameters:
array - the shortArray2D containing the divisors
Throws: NonconformingArrayException
shapes must match
 o remAssign
 public shortArray2D remAssign(short scalar)
rem combined with assignment to this array

Parameters:
scalar - The second source operand
 o remAssign
 public shortArray2D remAssign(shortArray2D array) throws NonconformingArrayException
rem combined with assignment to this array

Parameters:
array - The second source operand
Throws: NonconformingArrayException
shapes must match
 o equals
 public booleanArray2D equals(short scalar)
Computes, element by element, the result of the comparison: element of this array equals to scalar and return all the results in a new booleanArray2D of the same shape as this array.

Parameters:
scalar - scalar to compare element by element with this array
 o equals
 public void equals(short scalar,
                    booleanArray2D result) throws NonconformingArrayException
Computes, element by element, the result of the comparison: element of this array equals to scalar and return all the results in the result array.

Parameters:
scalar - scalar to compare element by element with this array
result - boolean array to store the result of the comparison
Throws: NonconformingArrayException
shapes must match.
 o equals
 public booleanArray2D equals(shortArray2D arrayin) throws NonconformingArrayException
Computes, element by element, the result of the comparison: element of this array equals to parameter array (arrayin) element and return all the results in a new booleanArray2D of the same shape as both arrays.

Parameters:
arrayin - Array to compare element by element with this array
Throws: NonconformingArrayException
Shapes must match.
 o equals
 public void equals(shortArray2D arrayin,
                    booleanArray2D result) throws NonconformingArrayException
Computes, element by element, the result of the comparison: element of this array equals to parameter array (arrayin) element and return all the results in the result array.

Parameters:
arrayin - Array to compare element by element with this array
result - Boolean array to store the result of the comparison
Throws: NonconformingArrayException
Shapes must match.
 o unequals
 public booleanArray2D unequals(short scalar)
Computes, element by element, the result of the comparison: element of this array not equals to scalar and return all the results in a new booleanArray2D of the same shape as this array.

Parameters:
scalar - scalar to compare element by element with this array
 o unequals
 public void unequals(short scalar,
                      booleanArray2D result) throws NonconformingArrayException
Computes, element by element, the result of the comparison: element of this array not equals to scalar and return all the results in the result array.

Parameters:
scalar - scalar to compare element by element with this array
result - boolean array to store the result of the comparison
Throws: NonconformingArrayException
shapes must match.
 o unequals
 public booleanArray2D unequals(shortArray2D arrayin) throws NonconformingArrayException
Computes, element by element, the result of the comparison: element of this array not equals to parameter array (arrayin) element and return all the results in a new booleanArray2D of the same shape as both arrays.

Parameters:
arrayin - Array to compare element by element with this array
Throws: NonconformingArrayException
Shapes must match.
 o unequals
 public void unequals(shortArray2D arrayin,
                      booleanArray2D result) throws NonconformingArrayException
Computes, element by element, the result of the comparison: element of this array not equals to parameter array (arrayin) element and return all the results in the result array.

Parameters:
arrayin - Array to compare element by element with this array
result - Boolean array to store the result of the comparison
Throws: NonconformingArrayException
Shapes must match.
 o greater
 public booleanArray2D greater(short scalar)
Computes, element by element, the result of the comparison: element of this array greater than scalar and return all the results in a new booleanArray2D of the same shape as this array.

Parameters:
scalar - scalar to compare element by element with this array
 o greater
 public void greater(short scalar,
                     booleanArray2D result) throws NonconformingArrayException
Computes, element by element, the result of the comparison: element of this array greater than scalar and return all the results in the result array.

Parameters:
scalar - scalar to compare element by element with this array
result - boolean array to store the result of the comparison
Throws: NonconformingArrayException
shapes must match.
 o greater
 public booleanArray2D greater(shortArray2D arrayin) throws NonconformingArrayException
Computes, element by element, the result of the comparison: element of this array greater than parameter array (arrayin) element and return all the results in a new booleanArray2D of the same shape as both arrays.

Parameters:
arrayin - Array to compare element by element with this array
Throws: NonconformingArrayException
Shapes must match.
 o greater
 public void greater(shortArray2D arrayin,
                     booleanArray2D result) throws NonconformingArrayException
Computes, element by element, the result of the comparison: element of this array greater than parameter array (arrayin) element and return all the results in the result array.

Parameters:
arrayin - Array to compare element by element with this array
result - Boolean array to store the result of the comparison
Throws: NonconformingArrayException
Shapes must match.
 o greaterEquals
 public booleanArray2D greaterEquals(short scalar)
Computes, element by element, the result of the comparison: element of this array greater than or equals to scalar and return all the results in a new booleanArray2D of the same shape as this array.

Parameters:
scalar - scalar to compare element by element with this array
 o greaterEquals
 public void greaterEquals(short scalar,
                           booleanArray2D result) throws NonconformingArrayException
Computes, element by element, the result of the comparison: element of this array greater than or equals to scalar and return all the results in the result array.

Parameters:
scalar - scalar to compare element by element with this array
result - boolean array to store the result of the comparison
Throws: NonconformingArrayException
shapes must match.
 o greaterEquals
 public booleanArray2D greaterEquals(shortArray2D arrayin) throws NonconformingArrayException
Computes, element by element, the result of the comparison: element of this array greater than or equals to parameter array (arrayin) element and return all the results in a new booleanArray2D of the same shape as both arrays.

Parameters:
arrayin - Array to compare element by element with this array
Throws: NonconformingArrayException
Shapes must match.
 o greaterEquals
 public void greaterEquals(shortArray2D arrayin,
                           booleanArray2D result) throws NonconformingArrayException
Computes, element by element, the result of the comparison: element of this array greater than or equals to parameter array (arrayin) element and return all the results in the result array.

Parameters:
arrayin - Array to compare element by element with this array
result - Boolean array to store the result of the comparison
Throws: NonconformingArrayException
Shapes must match.
 o less
 public booleanArray2D less(short scalar)
Computes, element by element, the result of the comparison: element of this array less than scalar and return all the results in a new booleanArray2D of the same shape as this array.

Parameters:
scalar - scalar to compare element by element with this array
 o less
 public void less(short scalar,
                  booleanArray2D result) throws NonconformingArrayException
Computes, element by element, the result of the comparison: element of this array less than scalar and return all the results in the result array.

Parameters:
scalar - scalar to compare element by element with this array
result - boolean array to store the result of the comparison
Throws: NonconformingArrayException
shapes must match.
 o less
 public booleanArray2D less(shortArray2D arrayin) throws NonconformingArrayException
Computes, element by element, the result of the comparison: element of this array less than parameter array (arrayin) element and return all the results in a new booleanArray2D of the same shape as both arrays.

Parameters:
arrayin - Array to compare element by element with this array
Throws: NonconformingArrayException
Shapes must match.
 o less
 public void less(shortArray2D arrayin,
                  booleanArray2D result) throws NonconformingArrayException
Computes, element by element, the result of the comparison: element of this array less than parameter array (arrayin) element and return all the results in the result array.

Parameters:
arrayin - Array to compare element by element with this array
result - Boolean array to store the result of the comparison
Throws: NonconformingArrayException
Shapes must match.
 o lessEquals
 public booleanArray2D lessEquals(short scalar)
Computes, element by element, the result of the comparison: element of this array less than or equals to scalar and return all the results in a new booleanArray2D of the same shape as this array.

Parameters:
scalar - scalar to compare element by element with this array
 o lessEquals
 public void lessEquals(short scalar,
                        booleanArray2D result) throws NonconformingArrayException
Computes, element by element, the result of the comparison: element of this array less than or equals to scalar and return all the results in the result array.

Parameters:
scalar - scalar to compare element by element with this array
result - boolean array to store the result of the comparison
Throws: NonconformingArrayException
shapes must match.
 o lessEquals
 public booleanArray2D lessEquals(shortArray2D arrayin) throws NonconformingArrayException
Computes, element by element, the result of the comparison: element of this array less than or equals to parameter array (arrayin) element and return all the results in a new booleanArray2D of the same shape as both arrays.

Parameters:
arrayin - Array to compare element by element with this array
Throws: NonconformingArrayException
Shapes must match.
 o lessEquals
 public void lessEquals(shortArray2D arrayin,
                        booleanArray2D result) throws NonconformingArrayException
Computes, element by element, the result of the comparison: element of this array less than or equals to parameter array (arrayin) element and return all the results in the result array.

Parameters:
arrayin - Array to compare element by element with this array
result - Boolean array to store the result of the comparison
Throws: NonconformingArrayException
Shapes must match.
 o toJava
 public short[][] toJava()
Transforms this shortArray2D to a short[][].


All Packages  Class Hierarchy  This Package  Previous  Next  Index