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.
-
booleanArray2D(boolean[][])
- Create a 2-dimensional array, with shape and values defined by
a Java boolean[][].
-
booleanArray2D(booleanArray2D)
- Create a new 2-dimensional array as a copy of a given
booleanArray2D
-
booleanArray2D(int, int)
- Create a 2-dimensional array of a certain shape.
-
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.
-
and(boolean, booleanArray2D)
- Computes, element by element, the result of: this array and scalar
and return all the results in the result array.
-
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.
-
and(booleanArray2D, booleanArray2D)
- Computes, element by element, the result of: this array and arrayin
and return all the results in the result array.
-
andAssign(boolean)
- and combined with assignment to this array
-
andAssign(booleanArray2D)
- and combined with assignment to this array
-
assign(boolean)
- Assign a scalar value to all elements of the array.
-
assign(booleanArray2D)
- Assign the values from another 2-dimensional array to this array.
-
get(Index, Index)
- Extract selected elements of this booleanArray2D into a new booleanArray2D.
-
get(Index, Index, booleanArray2D)
- Extract selected elements of this booleanArray2D into a booleanArray2D.
-
get(Index, int)
- Extract selected elements of this booleanArray2D into a new booleanArray1D.
-
get(Index, int, booleanArray1D)
- Extract selected elements of this booleanArray2D into a booleanArray1D.
-
get(Index, Range)
- Extract selected elements of this booleanArray2D into a new booleanArray2D.
-
get(Index, Range, booleanArray2D)
- Extract selected elements of this booleanArray2D into a booleanArray2D.
-
get(int, Index)
- Extract selected elements of this booleanArray2D into a new booleanArray1D.
-
get(int, Index, booleanArray1D)
- Extract selected elements of this booleanArray2D into a booleanArray1D.
-
get(int, int)
- Return the value of an element of the array.
-
get(int, Range)
- Extract selected elements of this booleanArray2D into a new booleanArray1D.
-
get(int, Range, booleanArray1D)
- Extract selected elements of this booleanArray2D into a booleanArray1D.
-
get(int[])
- Return the value of an element of the array.
-
get(Range, Index)
- Extract selected elements of this booleanArray2D into a new booleanArray2D.
-
get(Range, Index, booleanArray2D)
- Extract selected elements of this booleanArray2D into a booleanArray2D.
-
get(Range, int)
- Extract selected elements of this booleanArray2D into a new booleanArray1D.
-
get(Range, int, booleanArray1D)
- Extract selected elements of this booleanArray2D into a booleanArray1D.
-
get(Range, Range)
- Extract selected elements of this booleanArray2D into a new booleanArray2D.
-
get(Range, Range, booleanArray2D)
- Extract selected elements of this booleanArray2D into a booleanArray2D.
-
last(int)
- Return the index of the last element along its i-th axis.
-
not()
- this method computes the logical not of this array and
return the data in a new array
-
not(booleanArray2D)
- this method computes the logical not of this array and
return the data in the result parameter
-
notAssign()
- this method computes the logical not of this array, element by element, and store
the result of the operation in this array.
-
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.
-
or(boolean, booleanArray2D)
- Computes, element by element, the result of: this array or scalar
and return all the results in the result array.
-
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.
-
or(booleanArray2D, booleanArray2D)
- Computes, element by element, the result of: this array or arrayin
and return all the results in the result array.
-
orAssign(boolean)
- or combined with assignment to this array
-
orAssign(booleanArray2D)
- or combined with assignment to this array
-
permuteAxes(int, int)
- Permute the axes of this array, thus creating a reference
to its (generic) transpose.
-
permuteAxes(int[])
- Permute the axes of this array, thus creating a reference
to its (generic) transpose.
-
rank()
- Return the rank of the 2-dimensional array, 2.
-
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
-
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
-
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
-
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
-
reshape(int[])
- This method is the implementation of the Array interface
reshape that simply call the apropriate version of reshape
given the target rank.
-
section(int, int)
- Extract a 0-dimensional section from the array.
-
section(int, Range)
- Extract a 1-dimensional section from the array.
-
section(Range, int)
- Extract a 1-dimensional section from the array.
-
section(Range, Range)
- Extract a 2-dimensional section from the array.
-
set(Index, Index, boolean)
- Update the value of the selected elements of this booleanArray2D with the data in datain.
-
set(Index, Index, booleanArray2D)
- Update the value of the selected elements of this booleanArray2D with the data in a booleanArray2D.
-
set(Index, int, boolean)
- Update the value of the selected elements of this booleanArray2D with the data in datain.
-
set(Index, int, booleanArray1D)
- Update the value of the selected elements of this booleanArray2D with the data in a booleanArray1D.
-
set(Index, Range, boolean)
- Update the value of the selected elements of this booleanArray2D with the data in datain.
-
set(Index, Range, booleanArray2D)
- Update the value of the selected elements of this booleanArray2D with the data in a booleanArray2D.
-
set(int, Index, boolean)
- Update the value of the selected elements of this booleanArray2D with the data in datain.
-
set(int, Index, booleanArray1D)
- Update the value of the selected elements of this booleanArray2D with the data in a booleanArray1D.
-
set(int, int, boolean)
- Set the value of an element of the array.
-
set(int, Range, boolean)
- Update the value of the selected elements of this booleanArray2D with the data in datain.
-
set(int, Range, booleanArray1D)
- Update the value of the selected elements of this booleanArray2D with the data in a booleanArray1D.
-
set(int[], boolean)
- Set the value of an element of the array.
-
set(Range, Index, boolean)
- Update the value of the selected elements of this booleanArray2D with the data in datain.
-
set(Range, Index, booleanArray2D)
- Update the value of the selected elements of this booleanArray2D with the data in a booleanArray2D.
-
set(Range, int, boolean)
- Update the value of the selected elements of this booleanArray2D with the data in datain.
-
set(Range, int, booleanArray1D)
- Update the value of the selected elements of this booleanArray2D with the data in a booleanArray1D.
-
set(Range, Range, boolean)
- Update the value of the selected elements of this booleanArray2D with the data in datain.
-
set(Range, Range, booleanArray2D)
- Update the value of the selected elements of this booleanArray2D with the data in a booleanArray2D.
-
shape()
- Return the shape of the array as an int[] I of length 2.
-
size()
- Return the number of elements in the array.
-
size(int)
- Return the extent of the array along its i-th axis.
-
toJava()
- Transforms this booleanArray2D to a boolean[][].
-
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.
-
xor(boolean, booleanArray2D)
- Computes, element by element, the result of: this array exclusive-or scalar
and return all the results in the result array.
-
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.
-
xor(booleanArray2D, booleanArray2D)
- Computes, element by element, the result of: this array exclusive-or arrayin
and return all the results in the result array.
-
xorAssign(boolean)
- xor combined with assignment to this array
-
xorAssign(booleanArray2D)
- xor combined with assignment to this array
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
booleanArray2D
public booleanArray2D(booleanArray2D arrayin)
- Create a new 2-dimensional array as a copy of a given
booleanArray2D
- Parameters:
- arrayin - Array to copy
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
assign
public void assign(boolean value)
- Assign a scalar value to all elements of the array.
- Parameters:
- d - value to be assigned
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
rank
public int rank()
- Return the rank of the 2-dimensional array, 2.
- Overrides:
- rank in class Array
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
size
public int size()
- Return the number of elements in the array.
- Returns:
- the total number of elements
- Overrides:
- size in class Array
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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.
andAssign
public booleanArray2D andAssign(boolean scalar)
- and combined with assignment to this array
- Parameters:
- scalar - The second source operand
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
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
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.
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
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.
orAssign
public booleanArray2D orAssign(boolean scalar)
- or combined with assignment to this array
- Parameters:
- scalar - The second source operand
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
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
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.
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
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.
xorAssign
public booleanArray2D xorAssign(boolean scalar)
- xor combined with assignment to this array
- Parameters:
- scalar - The second source operand
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
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
not
public booleanArray2D not()
- this method computes the logical not of this array and
return the data in a new array
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.
toJava
public boolean[][] toJava()
- Transforms this booleanArray2D to a boolean[][].
All Packages Class Hierarchy This Package Previous Next Index