All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.math.array.booleanArray2D

java.lang.Object
   |
   +----com.ibm.math.array.Array
           |
           +----com.ibm.math.array.booleanArray
                   |
                   +----com.ibm.math.array.booleanArray2D

public final class booleanArray2D
extends booleanArray
booleanArray2D = 2-dimensional array of booleans

The booleanArray2D concrete class implements 2-dimensional arrays of booleans. 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 booleanArray2D(boolean[][])
Create a 2-dimensional array, with shape and values defined by a Java boolean[][].
 o booleanArray2D(booleanArray2D)
Create a new 2-dimensional array as a copy of a given booleanArray2D

 o booleanArray2D(int, int)
Create a 2-dimensional array of a certain shape.

Method Index

 o and(boolean)
Computes, element by element, the result of: this array and scalar and return all the results in a new booleanArray2D of the same shape as this array.
 o and(boolean, booleanArray2D)
Computes, element by element, the result of: this array and scalar and return all the results in the result array.
 o and(booleanArray2D)
Computes, element by element, the result of: this array and arrayin and return all the results in a new booleanArray2D of the same shape as both arrays.
 o and(booleanArray2D, booleanArray2D)
Computes, element by element, the result of: this array and arrayin and return all the results in the result array.
 o andAssign(boolean)
and combined with assignment to this array
 o andAssign(booleanArray2D)
and combined with assignment to this array
 o assign(boolean)
Assign a scalar value to all elements of the array.
 o assign(booleanArray2D)
Assign the values from another 2-dimensional array to this array.
 o get(Index, Index)
Extract selected elements of this booleanArray2D into a new booleanArray2D.
 o get(Index, Index, booleanArray2D)
Extract selected elements of this booleanArray2D into a booleanArray2D.
 o get(Index, int)
Extract selected elements of this booleanArray2D into a new booleanArray1D.
 o get(Index, int, booleanArray1D)
Extract selected elements of this booleanArray2D into a booleanArray1D.
 o get(Index, Range)
Extract selected elements of this booleanArray2D into a new booleanArray2D.
 o get(Index, Range, booleanArray2D)
Extract selected elements of this booleanArray2D into a booleanArray2D.
 o get(int, Index)
Extract selected elements of this booleanArray2D into a new booleanArray1D.
 o get(int, Index, booleanArray1D)
Extract selected elements of this booleanArray2D into a booleanArray1D.
 o get(int, int)
Return the value of an element of the array.
 o get(int, Range)
Extract selected elements of this booleanArray2D into a new booleanArray1D.
 o get(int, Range, booleanArray1D)
Extract selected elements of this booleanArray2D into a booleanArray1D.
 o get(int[])
Return the value of an element of the array.
 o get(Range, Index)
Extract selected elements of this booleanArray2D into a new booleanArray2D.
 o get(Range, Index, booleanArray2D)
Extract selected elements of this booleanArray2D into a booleanArray2D.
 o get(Range, int)
Extract selected elements of this booleanArray2D into a new booleanArray1D.
 o get(Range, int, booleanArray1D)
Extract selected elements of this booleanArray2D into a booleanArray1D.
 o get(Range, Range)
Extract selected elements of this booleanArray2D into a new booleanArray2D.
 o get(Range, Range, booleanArray2D)
Extract selected elements of this booleanArray2D into a booleanArray2D.
 o last(int)
Return the index of the last element along its i-th axis.
 o not()
this method computes the logical not of this array and return the data in a new array
 o not(booleanArray2D)
this method computes the logical not of this array and return the data in the result parameter

 o notAssign()
this method computes the logical not of this array, element by element, and store the result of the operation in this array.
 o or(boolean)
Computes, element by element, the result of: this array or scalar and return all the results in a new booleanArray2D of the same shape as this array.
 o or(boolean, booleanArray2D)
Computes, element by element, the result of: this array or scalar and return all the results in the result array.
 o or(booleanArray2D)
Computes, element by element, the result of: this array or arrayin and return all the results in a new booleanArray2D of the same shape as both arrays.
 o or(booleanArray2D, booleanArray2D)
Computes, element by element, the result of: this array or arrayin and return all the results in the result array.
 o orAssign(boolean)
or combined with assignment to this array
 o orAssign(booleanArray2D)
or 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 rank()
Return the rank of the 2-dimensional array, 2.
 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, boolean)
Update the value of the selected elements of this booleanArray2D with the data in datain.
 o set(Index, Index, booleanArray2D)
Update the value of the selected elements of this booleanArray2D with the data in a booleanArray2D.
 o set(Index, int, boolean)
Update the value of the selected elements of this booleanArray2D with the data in datain.
 o set(Index, int, booleanArray1D)
Update the value of the selected elements of this booleanArray2D with the data in a booleanArray1D.
 o set(Index, Range, boolean)
Update the value of the selected elements of this booleanArray2D with the data in datain.
 o set(Index, Range, booleanArray2D)
Update the value of the selected elements of this booleanArray2D with the data in a booleanArray2D.
 o set(int, Index, boolean)
Update the value of the selected elements of this booleanArray2D with the data in datain.
 o set(int, Index, booleanArray1D)
Update the value of the selected elements of this booleanArray2D with the data in a booleanArray1D.
 o set(int, int, boolean)
Set the value of an element of the array.
 o set(int, Range, boolean)
Update the value of the selected elements of this booleanArray2D with the data in datain.
 o set(int, Range, booleanArray1D)
Update the value of the selected elements of this booleanArray2D with the data in a booleanArray1D.
 o set(int[], boolean)
Set the value of an element of the array.
 o set(Range, Index, boolean)
Update the value of the selected elements of this booleanArray2D with the data in datain.
 o set(Range, Index, booleanArray2D)
Update the value of the selected elements of this booleanArray2D with the data in a booleanArray2D.
 o set(Range, int, boolean)
Update the value of the selected elements of this booleanArray2D with the data in datain.
 o set(Range, int, booleanArray1D)
Update the value of the selected elements of this booleanArray2D with the data in a booleanArray1D.
 o set(Range, Range, boolean)
Update the value of the selected elements of this booleanArray2D with the data in datain.
 o set(Range, Range, booleanArray2D)
Update the value of the selected elements of this booleanArray2D with the data in a booleanArray2D.
 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 toJava()
Transforms this booleanArray2D to a boolean[][].
 o xor(boolean)
Computes, element by element, the result of: this array exclusive-or scalar and return all the results in a new booleanArray2D of the same shape as this array.
 o xor(boolean, booleanArray2D)
Computes, element by element, the result of: this array exclusive-or scalar and return all the results in the result array.
 o xor(booleanArray2D)
Computes, element by element, the result of: this array exclusive-or arrayin and return all the results in a new booleanArray2D of the same shape as both arrays.
 o xor(booleanArray2D, booleanArray2D)
Computes, element by element, the result of: this array exclusive-or arrayin and return all the results in the result array.
 o xorAssign(boolean)
xor combined with assignment to this array
 o xorAssign(booleanArray2D)
xor combined with assignment to this array

Constructors

 o booleanArray2D
 public booleanArray2D(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 booleanArray2D
 public booleanArray2D(booleanArray2D arrayin)
Create a new 2-dimensional array as a copy of a given booleanArray2D

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

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

Methods

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

Parameters:
d - value to be assigned
 o assign
 public void assign(booleanArray2D 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 booleanArray2D 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 booleanArray0D 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 booleanArray1D 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 booleanArray2D 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 booleanArray3D 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 booleanArray0D 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 booleanArray1D 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 booleanArray1D 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 booleanArray2D 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 boolean 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 booleanArray
 o get
 public boolean 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 booleanArray1D get(int idx0,
                           Range idx1) throws ArrayIndexOutOfBoundsException
Extract selected elements of this booleanArray2D into a new booleanArray1D.

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,
                 booleanArray1D result) throws ArrayIndexOutOfBoundsException, NonconformingArrayException
Extract selected elements of this booleanArray2D into a booleanArray1D.

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 booleanArray1D get(int idx0,
                           Index idx1) throws ArrayIndexOutOfBoundsException
Extract selected elements of this booleanArray2D into a new booleanArray1D.

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,
                 booleanArray1D result) throws ArrayIndexOutOfBoundsException, NonconformingArrayException
Extract selected elements of this booleanArray2D into a booleanArray1D.

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 booleanArray1D get(Range idx0,
                           int idx1) throws ArrayIndexOutOfBoundsException
Extract selected elements of this booleanArray2D into a new booleanArray1D.

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,
                 booleanArray1D result) throws ArrayIndexOutOfBoundsException, NonconformingArrayException
Extract selected elements of this booleanArray2D into a booleanArray1D.

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 booleanArray2D get(Range idx0,
                           Range idx1) throws ArrayIndexOutOfBoundsException
Extract selected elements of this booleanArray2D into a new booleanArray2D.

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,
                 booleanArray2D result) throws ArrayIndexOutOfBoundsException, NonconformingArrayException
Extract selected elements of this booleanArray2D into a booleanArray2D.

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 booleanArray2D get(Range idx0,
                           Index idx1) throws ArrayIndexOutOfBoundsException
Extract selected elements of this booleanArray2D into a new booleanArray2D.

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,
                 booleanArray2D result) throws ArrayIndexOutOfBoundsException, NonconformingArrayException
Extract selected elements of this booleanArray2D into a booleanArray2D.

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 booleanArray1D get(Index idx0,
                           int idx1) throws ArrayIndexOutOfBoundsException
Extract selected elements of this booleanArray2D into a new booleanArray1D.

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,
                 booleanArray1D result) throws ArrayIndexOutOfBoundsException, NonconformingArrayException
Extract selected elements of this booleanArray2D into a booleanArray1D.

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 booleanArray2D get(Index idx0,
                           Range idx1) throws ArrayIndexOutOfBoundsException
Extract selected elements of this booleanArray2D into a new booleanArray2D.

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,
                 booleanArray2D result) throws ArrayIndexOutOfBoundsException, NonconformingArrayException
Extract selected elements of this booleanArray2D into a booleanArray2D.

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 booleanArray2D get(Index idx0,
                           Index idx1) throws ArrayIndexOutOfBoundsException
Extract selected elements of this booleanArray2D into a new booleanArray2D.

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,
                 booleanArray2D result) throws ArrayIndexOutOfBoundsException, NonconformingArrayException
Extract selected elements of this booleanArray2D into a booleanArray2D.

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[],
                 boolean 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 booleanArray
 o set
 public void set(int idx0,
                 int idx1,
                 boolean 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,
                 booleanArray1D arrayin) throws ArrayIndexOutOfBoundsException, NonconformingArrayException
Update the value of the selected elements of this booleanArray2D with the data in a booleanArray1D.

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,
                 boolean datain) throws ArrayIndexOutOfBoundsException
Update the value of the selected elements of this booleanArray2D 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,
                 booleanArray1D arrayin) throws ArrayIndexOutOfBoundsException, NonconformingArrayException
Update the value of the selected elements of this booleanArray2D with the data in a booleanArray1D.

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,
                 boolean datain) throws ArrayIndexOutOfBoundsException
Update the value of the selected elements of this booleanArray2D 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,
                 booleanArray1D arrayin) throws ArrayIndexOutOfBoundsException, NonconformingArrayException
Update the value of the selected elements of this booleanArray2D with the data in a booleanArray1D.

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,
                 boolean datain) throws ArrayIndexOutOfBoundsException
Update the value of the selected elements of this booleanArray2D 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,
                 booleanArray2D arrayin) throws ArrayIndexOutOfBoundsException, NonconformingArrayException
Update the value of the selected elements of this booleanArray2D with the data in a booleanArray2D.

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,
                 boolean datain) throws ArrayIndexOutOfBoundsException
Update the value of the selected elements of this booleanArray2D 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,
                 booleanArray2D arrayin) throws ArrayIndexOutOfBoundsException, NonconformingArrayException
Update the value of the selected elements of this booleanArray2D with the data in a booleanArray2D.

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,
                 boolean datain) throws ArrayIndexOutOfBoundsException
Update the value of the selected elements of this booleanArray2D 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,
                 booleanArray1D arrayin) throws ArrayIndexOutOfBoundsException, NonconformingArrayException
Update the value of the selected elements of this booleanArray2D with the data in a booleanArray1D.

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,
                 boolean datain) throws ArrayIndexOutOfBoundsException
Update the value of the selected elements of this booleanArray2D 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,
                 booleanArray2D arrayin) throws ArrayIndexOutOfBoundsException, NonconformingArrayException
Update the value of the selected elements of this booleanArray2D with the data in a booleanArray2D.

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,
                 boolean datain) throws ArrayIndexOutOfBoundsException
Update the value of the selected elements of this booleanArray2D 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,
                 booleanArray2D arrayin) throws ArrayIndexOutOfBoundsException, NonconformingArrayException
Update the value of the selected elements of this booleanArray2D with the data in a booleanArray2D.

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,
                 boolean datain) throws ArrayIndexOutOfBoundsException
Update the value of the selected elements of this booleanArray2D 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 and
 public booleanArray2D and(boolean scalar)
Computes, element by element, the result of: this array and scalar and return all the results in a new booleanArray2D of the same shape as this array.

Parameters:
scalar - The scalar, the second operand
 o and
 public void and(boolean scalar,
                 booleanArray2D result) throws NonconformingArrayException
Computes, element by element, the result of: this array and scalar and return all the results in the result array.

Parameters:
scalar - The scalar, the second operand
result - Boolean array to store the result of the operation
Throws: NonconformingArrayException
Shapes must match.
 o and
 public booleanArray2D and(booleanArray2D arrayin) throws NonconformingArrayException
Computes, element by element, the result of: this array and arrayin and return all the results in a new booleanArray2D of the same shape as both arrays.

Parameters:
arrayin - The array with the second operands
Throws: NonconformingArrayException
shapes must match
 o and
 public void and(booleanArray2D arrayin,
                 booleanArray2D result) throws NonconformingArrayException
Computes, element by element, the result of: this array and arrayin and return all the results in the result array.

Parameters:
arrayin - The array with the second operands
result - Boolean array to store the result of the operation
Throws: NonconformingArrayException
Shapes must match.
 o andAssign
 public booleanArray2D andAssign(boolean scalar)
and combined with assignment to this array

Parameters:
scalar - The second source operand
 o andAssign
 public booleanArray2D andAssign(booleanArray2D array) throws NonconformingArrayException
and combined with assignment to this array

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

Parameters:
scalar - The scalar, the second operand
 o or
 public void or(boolean scalar,
                booleanArray2D result) throws NonconformingArrayException
Computes, element by element, the result of: this array or scalar and return all the results in the result array.

Parameters:
scalar - The scalar, the second operand
result - Boolean array to store the result of the operation
Throws: NonconformingArrayException
Shapes must match.
 o or
 public booleanArray2D or(booleanArray2D arrayin) throws NonconformingArrayException
Computes, element by element, the result of: this array or arrayin and return all the results in a new booleanArray2D of the same shape as both arrays.

Parameters:
arrayin - The array with the second operands
Throws: NonconformingArrayException
shapes must match
 o or
 public void or(booleanArray2D arrayin,
                booleanArray2D result) throws NonconformingArrayException
Computes, element by element, the result of: this array or arrayin and return all the results in the result array.

Parameters:
arrayin - The array with the second operands
result - Boolean array to store the result of the operation
Throws: NonconformingArrayException
Shapes must match.
 o orAssign
 public booleanArray2D orAssign(boolean scalar)
or combined with assignment to this array

Parameters:
scalar - The second source operand
 o orAssign
 public booleanArray2D orAssign(booleanArray2D array) throws NonconformingArrayException
or combined with assignment to this array

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

Parameters:
scalar - The scalar, the second operand
 o xor
 public void xor(boolean scalar,
                 booleanArray2D result) throws NonconformingArrayException
Computes, element by element, the result of: this array exclusive-or scalar and return all the results in the result array.

Parameters:
scalar - The scalar, the second operand
result - Boolean array to store the result of the operation
Throws: NonconformingArrayException
Shapes must match.
 o xor
 public booleanArray2D xor(booleanArray2D arrayin) throws NonconformingArrayException
Computes, element by element, the result of: this array exclusive-or arrayin and return all the results in a new booleanArray2D of the same shape as both arrays.

Parameters:
arrayin - The array with the second operands
Throws: NonconformingArrayException
shapes must match
 o xor
 public void xor(booleanArray2D arrayin,
                 booleanArray2D result) throws NonconformingArrayException
Computes, element by element, the result of: this array exclusive-or arrayin and return all the results in the result array.

Parameters:
arrayin - The array with the second operands
result - Boolean array to store the result of the operation
Throws: NonconformingArrayException
Shapes must match.
 o xorAssign
 public booleanArray2D xorAssign(boolean scalar)
xor combined with assignment to this array

Parameters:
scalar - The second source operand
 o xorAssign
 public booleanArray2D xorAssign(booleanArray2D array) throws NonconformingArrayException
xor combined with assignment to this array

Parameters:
array - The second source operand
Throws: NonconformingArrayException
shapes must match
 o not
 public void not(booleanArray2D result) throws NonconformingArrayException
this method computes the logical not of this array and return the data in the result parameter

Parameters:
result - The array that will receive the result
 o not
 public booleanArray2D not()
this method computes the logical not of this array and return the data in a new array

 o notAssign
 public booleanArray2D notAssign()
this method computes the logical not of this array, element by element, and store the result of the operation in this array.

 o toJava
 public boolean[][] toJava()
Transforms this booleanArray2D to a boolean[][].


All Packages  Class Hierarchy  This Package  Previous  Next  Index