All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.math.array.intArray1D

java.lang.Object
   |
   +----com.ibm.math.array.Array
           |
           +----com.ibm.math.array.intArray
                   |
                   +----com.ibm.math.array.intArray1D

public final class intArray1D
extends intArray
intArray1D = 1-dimensional array of ints

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


Constructor Index

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

Method Index

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

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

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

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

 o divAssign(int)
div combined with assignment to this array
 o divAssign(intArray1D)
div combined with assignment to this array
 o equals(int)
Computes, element by element, the result of the comparison: element of this array equals to scalar and return all the results in a new booleanArray1D of the same shape as this array.
 o equals(int, booleanArray1D)
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(intArray1D)
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 booleanArray1D of the same shape as both arrays.
 o equals(intArray1D, booleanArray1D)
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)
Extract selected elements of this intArray1D into a new intArray1D.
 o get(Index, intArray1D)
Extract selected elements of this intArray1D into a intArray1D.
 o get(int)
Return the value of an element of the array.
 o get(int[])
Return the value of an element of the array.
 o get(Range)
Extract selected elements of this intArray1D into a new intArray1D.
 o get(Range, intArray1D)
Extract selected elements of this intArray1D into a intArray1D.
 o greater(int)
Computes, element by element, the result of the comparison: element of this array greater than scalar and return all the results in a new booleanArray1D of the same shape as this array.
 o greater(int, booleanArray1D)
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(intArray1D)
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 booleanArray1D of the same shape as both arrays.
 o greater(intArray1D, booleanArray1D)
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(int)
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 booleanArray1D of the same shape as this array.
 o greaterEquals(int, booleanArray1D)
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(intArray1D)
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 booleanArray1D of the same shape as both arrays.
 o greaterEquals(intArray1D, booleanArray1D)
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(int)
Computes, element by element, the result of the comparison: element of this array less than scalar and return all the results in a new booleanArray1D of the same shape as this array.
 o less(int, booleanArray1D)
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(intArray1D)
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 booleanArray1D of the same shape as both arrays.
 o less(intArray1D, booleanArray1D)
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(int)
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 booleanArray1D of the same shape as this array.
 o lessEquals(int, booleanArray1D)
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(intArray1D)
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 booleanArray1D of the same shape as both arrays.
 o lessEquals(intArray1D, booleanArray1D)
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(int)
Subtracts a scalar from each array element and return the data computed in a new array

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

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

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

 o minusAssign(int)
minus combined with assignment to this array
 o minusAssign(intArray1D)
minus combined with assignment to this array
 o permuteAxes(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(int)
Adds a scalar to each array element and return the data computed in a new array

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

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

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

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

 o rem(int, intArray1D)
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(intArray1D)
Each array element is divided by a scalar and the remaining of the integer division computed is returned in a new array

 o rem(intArray1D, intArray1D)
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(int)
rem combined with assignment to this array
 o remAssign(intArray1D)
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)
Extract a 0-dimensional section from the array.
 o section(Range)
Extract a 1-dimensional section from the array.
 o set(Index, int)
Update the value of the selected elements of this intArray1D with the data in datain.
 o set(Index, intArray1D)
Update the value of the selected elements of this intArray1D with the data in a intArray1D.
 o set(int, int)
Set the value of an element of the array.
 o set(int[], int)
Set the value of an element of the array.
 o set(Range, int)
Update the value of the selected elements of this intArray1D with the data in datain.
 o set(Range, intArray1D)
Update the value of the selected elements of this intArray1D with the data in a intArray1D.
 o shape()
Return the shape of the array as an int[] I of length 1.
 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(int)
Each array element is multiplied by the scalar parameter and the data computed is returned in a new array

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

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

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

 o timesAssign(int)
times combined with assignment to this array
 o timesAssign(intArray1D)
times combined with assignment to this array
 o toJava()
Transforms this intArray1D to a int[].
 o unequals(int)
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 booleanArray1D of the same shape as this array.
 o unequals(int, booleanArray1D)
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(intArray1D)
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 booleanArray1D of the same shape as both arrays.
 o unequals(intArray1D, booleanArray1D)
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 intArray1D
 public intArray1D(int n0) throws InvalidArrayShapeException
Create a 1-dimensional array of a certain shape. Elements are 0-valued

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

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

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

Methods

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

Parameters:
d - value to be assigned
 o assign
 public void assign(intArray1D arrayin) throws NonconformingArrayException
Assign the values from another 1-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 1-dimensional array, 1.

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

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 0
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 0
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 intArray1D permuteAxes(int a0) 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 0)
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 intArray0D 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 intArray1D 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 intArray2D 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 intArray3D 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 intArray0D section(int idx0) throws ArrayIndexOutOfBoundsException
Extract a 0-dimensional section from the array.

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

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

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

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

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

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

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

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

Parameters:
idx0 - indexes along the axis n# 0 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 datain) throws ArrayIndexOutOfBoundsException
Update the value of the selected elements of this intArray1D with the data in datain.

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

Parameters:
idx0 - indexes along the axis n# 0 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 datain) throws ArrayIndexOutOfBoundsException
Update the value of the selected elements of this intArray1D with the data in datain.

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

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

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

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

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

Parameters:
scalar - The second source operand
 o plusAssign
 public intArray1D plusAssign(intArray1D 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(int scalar,
                   intArray1D result) throws NonconformingArrayException
Subtracts a scalar from each array element and return the data computed in the result array parameter

@param scalar int to be subtracted from each array element

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

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

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

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

Parameters:
scalar - The second source operand
 o minusAssign
 public intArray1D minusAssign(intArray1D 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(int scalar,
                   intArray1D 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 int value
result - intArray1D Object that will store the result
Throws: NonconformingArrayException
shapes must match
 o times
 public intArray1D times(int 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 int value
 o times
 public void times(intArray1D arrayin,
                   intArray1D result) throws NonconformingArrayException
Multiplies each array element by its corresponding array element and return the data computed in the result array parameter

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

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

Parameters:
scalar - The second source operand
 o timesAssign
 public intArray1D timesAssign(intArray1D 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(int scalar,
                 intArray1D 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 int
result - intArray1D Object that will store the result
Throws: NonconformingArrayException
shapes must match
 o div
 public intArray1D div(int 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 int
Throws: NonconformingArrayException
shapes must match
 o div
 public void div(intArray1D arrayin,
                 intArray1D 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 intArray1D containing the divisors
result - intArray1D Object that will store the result
Throws: NonconformingArrayException
shapes must match
 o div
 public intArray1D div(intArray1D array) throws NonconformingArrayException
Divides each array element by the corresponding array element and return the data computed in a new array

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

Parameters:
scalar - The second source operand
 o divAssign
 public intArray1D divAssign(intArray1D 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(int scalar,
                 intArray1D 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 - intArray1D Object that will store the result
Throws: NonconformingArrayException
shapes must match
 o rem
 public intArray1D rem(int 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(intArray1D arrayin,
                 intArray1D 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 intArray1D containing the divisors
result - intArray1D Object that will store the result
Throws: NonconformingArrayException
shapes must match
 o rem
 public intArray1D rem(intArray1D 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 intArray1D containing the divisors
Throws: NonconformingArrayException
shapes must match
 o remAssign
 public intArray1D remAssign(int scalar)
rem combined with assignment to this array

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

Parameters:
array - The second source operand
Throws: NonconformingArrayException
shapes must match
 o equals
 public booleanArray1D equals(int 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 booleanArray1D of the same shape as this array.

Parameters:
scalar - scalar to compare element by element with this array
 o equals
 public void equals(int scalar,
                    booleanArray1D 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 booleanArray1D equals(intArray1D 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 booleanArray1D 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(intArray1D arrayin,
                    booleanArray1D 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 booleanArray1D unequals(int 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 booleanArray1D of the same shape as this array.

Parameters:
scalar - scalar to compare element by element with this array
 o unequals
 public void unequals(int scalar,
                      booleanArray1D 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 booleanArray1D unequals(intArray1D 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 booleanArray1D 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(intArray1D arrayin,
                      booleanArray1D 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 booleanArray1D greater(int 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 booleanArray1D of the same shape as this array.

Parameters:
scalar - scalar to compare element by element with this array
 o greater
 public void greater(int scalar,
                     booleanArray1D 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 booleanArray1D greater(intArray1D 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 booleanArray1D 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(intArray1D arrayin,
                     booleanArray1D 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 booleanArray1D greaterEquals(int 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 booleanArray1D of the same shape as this array.

Parameters:
scalar - scalar to compare element by element with this array
 o greaterEquals
 public void greaterEquals(int scalar,
                           booleanArray1D 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 booleanArray1D greaterEquals(intArray1D 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 booleanArray1D 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(intArray1D arrayin,
                           booleanArray1D 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 booleanArray1D less(int 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 booleanArray1D of the same shape as this array.

Parameters:
scalar - scalar to compare element by element with this array
 o less
 public void less(int scalar,
                  booleanArray1D 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 booleanArray1D less(intArray1D 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 booleanArray1D 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(intArray1D arrayin,
                  booleanArray1D 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 booleanArray1D lessEquals(int 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 booleanArray1D of the same shape as this array.

Parameters:
scalar - scalar to compare element by element with this array
 o lessEquals
 public void lessEquals(int scalar,
                        booleanArray1D 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 booleanArray1D lessEquals(intArray1D 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 booleanArray1D 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(intArray1D arrayin,
                        booleanArray1D 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 int[] toJava()
Transforms this intArray1D to a int[].


All Packages  Class Hierarchy  This Package  Previous  Next  Index