All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.math.array.shortArray1D
java.lang.Object
|
+----com.ibm.math.array.Array
|
+----com.ibm.math.array.shortArray
|
+----com.ibm.math.array.shortArray1D
- public final class shortArray1D
- extends shortArray
shortArray1D = 1-dimensional array of shorts
The shortArray1D concrete class implements 1-dimensional arrays
of shorts. 1-dimensional arrays can either be instantiated directly
through constructors, or they can begenerated by extracting sections
from other 1- or higher-dimensional arrays.
-
shortArray1D(int)
- Create a 1-dimensional array of a certain shape.
-
shortArray1D(short[])
- Create a 1-dimensional array, with shape and values defined by
a Java short[].
-
shortArray1D(shortArray1D)
- Create a new 1-dimensional array as a copy of a given
shortArray1D
-
assign(short)
- Assign a scalar value to all elements of the array.
-
assign(shortArray1D)
- Assign the values from another 1-dimensional array to this array.
-
div(short)
- Each array element is divided by a scalar and the data
computed is returned in a new array
-
div(short, shortArray1D)
- Each array element is divided by a scalar and the data
computed is returned in the result array parameter
-
div(shortArray1D)
- Divides each array element by the corresponding array element and return the data
computed in a new array
-
div(shortArray1D, shortArray1D)
- Divides each array element by the corresponding array element and return the data
computed in the result array parameter
-
divAssign(short)
- div combined with assignment to this array
-
divAssign(shortArray1D)
- div combined with assignment to this array
-
equals(short)
- Computes, element by element, the result of the comparison:
element of this array equals to scalar
and return all the results in a new booleanArray1D of the
same shape as this array.
-
equals(short, 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.
-
equals(shortArray1D)
- 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.
-
equals(shortArray1D, 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.
-
get(Index)
- Extract selected elements of this shortArray1D into a new shortArray1D.
-
get(Index, shortArray1D)
- Extract selected elements of this shortArray1D into a shortArray1D.
-
get(int)
- Return the value of an element of the array.
-
get(int[])
- Return the value of an element of the array.
-
get(Range)
- Extract selected elements of this shortArray1D into a new shortArray1D.
-
get(Range, shortArray1D)
- Extract selected elements of this shortArray1D into a shortArray1D.
-
greater(short)
- Computes, element by element, the result of the comparison:
element of this array greater than scalar
and return all the results in a new booleanArray1D of the
same shape as this array.
-
greater(short, 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.
-
greater(shortArray1D)
- 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.
-
greater(shortArray1D, 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.
-
greaterEquals(short)
- Computes, element by element, the result of the comparison:
element of this array greater than or equals to scalar
and return all the results in a new booleanArray1D of the
same shape as this array.
-
greaterEquals(short, 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.
-
greaterEquals(shortArray1D)
- 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.
-
greaterEquals(shortArray1D, 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.
-
last(int)
- Return the index of the last element along its i-th axis.
-
less(short)
- Computes, element by element, the result of the comparison:
element of this array less than scalar
and return all the results in a new booleanArray1D of the
same shape as this array.
-
less(short, 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.
-
less(shortArray1D)
- 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.
-
less(shortArray1D, 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.
-
lessEquals(short)
- Computes, element by element, the result of the comparison:
element of this array less than or equals to scalar
and return all the results in a new booleanArray1D of the
same shape as this array.
-
lessEquals(short, 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.
-
lessEquals(shortArray1D)
- 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.
-
lessEquals(shortArray1D, 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.
-
minus(short)
- Subtracts a scalar from each array element and return the data
computed in a new array
-
minus(short, shortArray1D)
- Subtracts a scalar from each array element and return the data
computed in the result array parameter
-
minus(shortArray1D)
- Subtracts the corresponding array element from each array element and return the data
computed in a new array
-
minus(shortArray1D, shortArray1D)
- Subtracts the corresponding array element from each array element and return the data
computed in the result array parameter
-
minusAssign(short)
- minus combined with assignment to this array
-
minusAssign(shortArray1D)
- minus combined with assignment to this array
-
permuteAxes(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.
-
plus(short)
- Adds a scalar to each array element and return the data
computed in a new array
-
plus(short, shortArray1D)
- Adds a scalar to each array element and return the data
computed in the result array parameter
-
plus(shortArray1D)
- Adds the corresponding array element to each array element and return the data
computed in a new array
-
plus(shortArray1D, shortArray1D)
- Adds the corresponding array element to each array element and return the data
computed in the result array parameter
-
plusAssign(short)
- plus combined with assignment to this array
-
plusAssign(shortArray1D)
- plus combined with assignment to this array
-
rank()
- Return the rank of the 1-dimensional array, 1.
-
rem(short)
- Each array element is divided by a scalar and the remaining of
the integer division computed is returned in a new array
-
rem(short, shortArray1D)
- Each array element is divided by a scalar and the remaining of
the integer division computed is returned in the result array parameter
-
rem(shortArray1D)
- Each array element is divided by a scalar and the remaining of
the integer division computed is returned in a new array
-
rem(shortArray1D, shortArray1D)
- Each array element is divided by a scalar and the remaining of
the integer division computed is returned in the result array parameter
-
remAssign(short)
- rem combined with assignment to this array
-
remAssign(shortArray1D)
- rem combined with assignment to this array
-
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)
- Extract a 0-dimensional section from the array.
-
section(Range)
- Extract a 1-dimensional section from the array.
-
set(Index, short)
- Update the value of the selected elements of this shortArray1D with the data in datain.
-
set(Index, shortArray1D)
- Update the value of the selected elements of this shortArray1D with the data in a shortArray1D.
-
set(int, short)
- Set the value of an element of the array.
-
set(int[], short)
- Set the value of an element of the array.
-
set(Range, short)
- Update the value of the selected elements of this shortArray1D with the data in datain.
-
set(Range, shortArray1D)
- Update the value of the selected elements of this shortArray1D with the data in a shortArray1D.
-
shape()
- Return the shape of the array as an int[] I of length 1.
-
size()
- Return the number of elements in the array.
-
size(int)
- Return the extent of the array along its i-th axis.
-
times(short)
- Each array element is multiplied by the scalar parameter and the data
computed is returned in a new array
-
times(short, shortArray1D)
- Each array element is multiplied by scalar and the data computed
is returned in result array parameter
-
times(shortArray1D)
- Multiplies each array element by its corresponding array element and return the data
computed in a new array
-
times(shortArray1D, shortArray1D)
- Multiplies each array element by its corresponding array element and return the data
computed in the result array parameter
-
timesAssign(short)
- times combined with assignment to this array
-
timesAssign(shortArray1D)
- times combined with assignment to this array
-
toJava()
- Transforms this shortArray1D to a short[].
-
unequals(short)
- Computes, element by element, the result of the comparison:
element of this array not equals to scalar
and return all the results in a new booleanArray1D of the
same shape as this array.
-
unequals(short, 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.
-
unequals(shortArray1D)
- 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.
-
unequals(shortArray1D, 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.
shortArray1D
public shortArray1D(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
shortArray1D
public shortArray1D(shortArray1D arrayin)
- Create a new 1-dimensional array as a copy of a given
shortArray1D
- Parameters:
- arrayin - Array to copy
shortArray1D
public shortArray1D(short datain[]) throws InvalidArrayShapeException
- Create a 1-dimensional array, with shape and values defined by
a Java short[].
- Parameters:
- datain - Java short[] defining shape and values of the array
- Throws: InvalidArrayShapeException
- The Java array must be rectangular
assign
public void assign(short value)
- Assign a scalar value to all elements of the array.
- Parameters:
- d - value to be assigned
assign
public void assign(shortArray1D 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
rank
public int rank()
- Return the rank of the 1-dimensional array, 1.
- Overrides:
- rank in class Array
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
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 0
- 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 0
- 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 shortArray1D 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
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 shortArray0D reshape() throws NonconformingArrayException
- This method reshapes this array into an array with
rank 0, each parameter gives the size
in each array dimension, the array returned has a copy
of the data from this array, it does not share data
with this array
- Throws: NonconformingArrayException
- the product of all parameters
must be equal to size of this array
reshape
public shortArray1D reshape(int size0) throws NonconformingArrayException
- This method reshapes this array into an array with
rank 1, each parameter gives the size
in each array dimension, the array returned has a copy
of the data from this array, it does not share data
with this array
- Parameters:
- size0: - extent of resulting array along axis #0
- Throws: NonconformingArrayException
- the product of all parameters
must be equal to size of this array
reshape
public shortArray2D reshape(int size0,
int size1) throws NonconformingArrayException
- This method reshapes this array into an array with
rank 2, each parameter gives the size
in each array dimension, the array returned has a copy
of the data from this array, it does not share data
with this array
- Parameters:
- size0: - extent of resulting array along axis #0
- size1: - extent of resulting array along axis #1
- Throws: NonconformingArrayException
- the product of all parameters
must be equal to size of this array
reshape
public shortArray3D reshape(int size0,
int size1,
int size2) throws NonconformingArrayException
- This method reshapes this array into an array with
rank 3, each parameter gives the size
in each array dimension, the array returned has a copy
of the data from this array, it does not share data
with this array
- Parameters:
- size0: - extent of resulting array along axis #0
- size1: - extent of resulting array along axis #1
- size2: - extent of resulting array along axis #2
- Throws: NonconformingArrayException
- the product of all parameters
must be equal to size of this array
section
public shortArray0D 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
section
public shortArray1D 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
get
public short get(int index[]) throws InvalidArrayIndexException, ArrayIndexOutOfBoundsException
- Return the value of an element of the array.
- Parameters:
- index, - index[i] = index along i-th axis, 0 <= index[i] < size(i)
- Throws: InvalidArrayIndexException
- index[] must be of length 1
- Overrides:
- get in class shortArray
get
public short 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.
get
public shortArray1D get(Range idx0) throws ArrayIndexOutOfBoundsException
- Extract selected elements of this shortArray1D into a new shortArray1D.
- Parameters:
- idx0 - indexes along the axis n# 0 of the array
- Throws: NonconformingArrayException
- shapes must match
- Throws: ArrayIndexOutOfBoundsException
- indices must be valid
get
public void get(Range idx0,
shortArray1D result) throws ArrayIndexOutOfBoundsException, NonconformingArrayException
- Extract selected elements of this shortArray1D into a shortArray1D.
- 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
get
public shortArray1D get(Index idx0) throws ArrayIndexOutOfBoundsException
- Extract selected elements of this shortArray1D into a new shortArray1D.
- Parameters:
- idx0 - indexes along the axis n# 0 of the array
- Throws: NonconformingArrayException
- shapes must match
- Throws: ArrayIndexOutOfBoundsException
- indices must be valid
get
public void get(Index idx0,
shortArray1D result) throws ArrayIndexOutOfBoundsException, NonconformingArrayException
- Extract selected elements of this shortArray1D into a shortArray1D.
- 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
set
public void set(int index[],
short d) throws InvalidArrayIndexException, ArrayIndexOutOfBoundsException
- Set the value of an element of the array.
- Parameters:
- index - index[i] = index along i-th axis, 0 <= index[i] < size(i)
- d - value to which element is set
- Throws: InvalidArrayIndexException
- index[] must be of length 1
- Overrides:
- set in class shortArray
set
public void set(int idx0,
short 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
set
public void set(Range idx0,
shortArray1D arrayin) throws ArrayIndexOutOfBoundsException, NonconformingArrayException
- Update the value of the selected elements of this shortArray1D with the data in a shortArray1D.
- 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
set
public void set(Range idx0,
short datain) throws ArrayIndexOutOfBoundsException
- Update the value of the selected elements of this shortArray1D 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
set
public void set(Index idx0,
shortArray1D arrayin) throws ArrayIndexOutOfBoundsException, NonconformingArrayException
- Update the value of the selected elements of this shortArray1D with the data in a shortArray1D.
- 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
set
public void set(Index idx0,
short datain) throws ArrayIndexOutOfBoundsException
- Update the value of the selected elements of this shortArray1D 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
plus
public void plus(short scalar,
shortArray1D result) throws NonconformingArrayException
- Adds a scalar to each array element and return the data
computed in the result array parameter
- Parameters:
- scalar - short to be added to each array element
- result - shortArray1D Object that will store the result
- Throws: NonconformingArrayException
- shapes must match
plus
public shortArray1D plus(short scalar)
- Adds a scalar to each array element and return the data
computed in a new array
- Parameters:
- scalar - short to be added to each array element
plus
public void plus(shortArray1D arrayin,
shortArray1D result) throws NonconformingArrayException
- Adds the corresponding array element to each array element and return the data
computed in the result array parameter
- Parameters:
- arrayin - shortArray1D to be added element by element
- result - shortArray1D Object that will store the result
- Throws: NonconformingArrayException
- shapes must match
plus
public shortArray1D plus(shortArray1D array) throws NonconformingArrayException
- Adds the corresponding array element to each array element and return the data
computed in a new array
- Parameters:
- array - shortArray1D to be added element by element
- Throws: NonconformingArrayException
- shapes must match
plusAssign
public shortArray1D plusAssign(short scalar)
- plus combined with assignment to this array
- Parameters:
- scalar - The second source operand
plusAssign
public shortArray1D plusAssign(shortArray1D array) throws NonconformingArrayException
- plus combined with assignment to this array
- Parameters:
- array - The second source operand
- Throws: NonconformingArrayException
- shapes must match
minus
public void minus(short scalar,
shortArray1D result) throws NonconformingArrayException
- Subtracts a scalar from each array element and return the data
computed in the result array parameter
@param scalar short to be subtracted from each array element
- Parameters:
- result - shortArray1D Object that will store the result
- Throws: NonconformingArrayException
- shapes must match
minus
public shortArray1D minus(short scalar)
- Subtracts a scalar from each array element and return the data
computed in a new array
- Parameters:
- scalar - short to be subtracted from each array element
- Throws: NonconformingArrayException
- shapes must match
minus
public void minus(shortArray1D arrayin,
shortArray1D result) throws NonconformingArrayException
- Subtracts the corresponding array element from each array element and return the data
computed in the result array parameter
- Parameters:
- arrayin - shortArray1D to be subtracted element by element
- result - shortArray1D Object that will store the result
- Throws: NonconformingArrayException
- shapes must match
minus
public shortArray1D minus(shortArray1D array) throws NonconformingArrayException
- Subtracts the corresponding array element from each array element and return the data
computed in a new array
- Parameters:
- array - shortArray1D to be added element by element
- Throws: NonconformingArrayException
- shapes must match
minusAssign
public shortArray1D minusAssign(short scalar)
- minus combined with assignment to this array
- Parameters:
- scalar - The second source operand
minusAssign
public shortArray1D minusAssign(shortArray1D array) throws NonconformingArrayException
- minus combined with assignment to this array
- Parameters:
- array - The second source operand
- Throws: NonconformingArrayException
- shapes must match
times
public void times(short scalar,
shortArray1D result) throws NonconformingArrayException
- Each array element is multiplied by scalar and the data computed
is returned in result array parameter
- Parameters:
- scalar - each array element is multiplied by this short value
- result - shortArray1D Object that will store the result
- Throws: NonconformingArrayException
- shapes must match
times
public shortArray1D times(short scalar)
- Each array element is multiplied by the scalar parameter and the data
computed is returned in a new array
- Parameters:
- scalar - each array element is multiplied by this short value
times
public void times(shortArray1D arrayin,
shortArray1D result) throws NonconformingArrayException
- Multiplies each array element by its corresponding array element and return the data
computed in the result array parameter
- Parameters:
- arrayin - shortArray1D to be multiplied element by element
- result - shortArray1D Object that will store the result
- Throws: NonconformingArrayException
- shapes must match
times
public shortArray1D times(shortArray1D array) throws NonconformingArrayException
- Multiplies each array element by its corresponding array element and return the data
computed in a new array
- Parameters:
- array - shortArray1D to be added element by element
- Throws: NonconformingArrayException
- shapes must match
timesAssign
public shortArray1D timesAssign(short scalar)
- times combined with assignment to this array
- Parameters:
- scalar - The second source operand
timesAssign
public shortArray1D timesAssign(shortArray1D array) throws NonconformingArrayException
- times combined with assignment to this array
- Parameters:
- array - The second source operand
- Throws: NonconformingArrayException
- shapes must match
div
public void div(short scalar,
shortArray1D result) throws NonconformingArrayException
- Each array element is divided by a scalar and the data
computed is returned in the result array parameter
- Parameters:
- scalar - Each array element is divided by this short
- result - shortArray1D Object that will store the result
- Throws: NonconformingArrayException
- shapes must match
div
public shortArray1D div(short scalar)
- Each array element is divided by a scalar and the data
computed is returned in a new array
- Parameters:
- scalar - Each array element is divided by this short
- Throws: NonconformingArrayException
- shapes must match
div
public void div(shortArray1D arrayin,
shortArray1D 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 shortArray1D containing the divisors
- result - shortArray1D Object that will store the result
- Throws: NonconformingArrayException
- shapes must match
div
public shortArray1D div(shortArray1D array) throws NonconformingArrayException
- Divides each array element by the corresponding array element and return the data
computed in a new array
- Parameters:
- array - the shortArray1D containing the divisors
- Throws: NonconformingArrayException
- shapes must match
divAssign
public shortArray1D divAssign(short scalar)
- div combined with assignment to this array
- Parameters:
- scalar - The second source operand
divAssign
public shortArray1D divAssign(shortArray1D array) throws NonconformingArrayException
- div combined with assignment to this array
- Parameters:
- array - The second source operand
- Throws: NonconformingArrayException
- shapes must match
rem
public void rem(short scalar,
shortArray1D 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 - shortArray1D Object that will store the result
- Throws: NonconformingArrayException
- shapes must match
rem
public shortArray1D rem(short scalar)
- Each array element is divided by a scalar and the remaining of
the integer division computed is returned in a new array
- Parameters:
- scalar - The remaing operation second operand
- Throws: NonconformingArrayException
- shapes must match
rem
public void rem(shortArray1D arrayin,
shortArray1D 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 shortArray1D containing the divisors
- result - shortArray1D Object that will store the result
- Throws: NonconformingArrayException
- shapes must match
rem
public shortArray1D rem(shortArray1D 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 shortArray1D containing the divisors
- Throws: NonconformingArrayException
- shapes must match
remAssign
public shortArray1D remAssign(short scalar)
- rem combined with assignment to this array
- Parameters:
- scalar - The second source operand
remAssign
public shortArray1D remAssign(shortArray1D array) throws NonconformingArrayException
- rem combined with assignment to this array
- Parameters:
- array - The second source operand
- Throws: NonconformingArrayException
- shapes must match
equals
public booleanArray1D equals(short scalar)
- Computes, element by element, the result of the comparison:
element of this array equals to scalar
and return all the results in a new booleanArray1D of the
same shape as this array.
- Parameters:
- scalar - scalar to compare element by element with this array
equals
public void equals(short 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.
equals
public booleanArray1D equals(shortArray1D 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.
equals
public void equals(shortArray1D 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.
unequals
public booleanArray1D unequals(short scalar)
- Computes, element by element, the result of the comparison:
element of this array not equals to scalar
and return all the results in a new booleanArray1D of the
same shape as this array.
- Parameters:
- scalar - scalar to compare element by element with this array
unequals
public void unequals(short 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.
unequals
public booleanArray1D unequals(shortArray1D 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.
unequals
public void unequals(shortArray1D 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.
greater
public booleanArray1D greater(short scalar)
- Computes, element by element, the result of the comparison:
element of this array greater than scalar
and return all the results in a new booleanArray1D of the
same shape as this array.
- Parameters:
- scalar - scalar to compare element by element with this array
greater
public void greater(short 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.
greater
public booleanArray1D greater(shortArray1D 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.
greater
public void greater(shortArray1D 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.
greaterEquals
public booleanArray1D greaterEquals(short scalar)
- Computes, element by element, the result of the comparison:
element of this array greater than or equals to scalar
and return all the results in a new booleanArray1D of the
same shape as this array.
- Parameters:
- scalar - scalar to compare element by element with this array
greaterEquals
public void greaterEquals(short 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.
greaterEquals
public booleanArray1D greaterEquals(shortArray1D 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.
greaterEquals
public void greaterEquals(shortArray1D 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.
less
public booleanArray1D less(short scalar)
- Computes, element by element, the result of the comparison:
element of this array less than scalar
and return all the results in a new booleanArray1D of the
same shape as this array.
- Parameters:
- scalar - scalar to compare element by element with this array
less
public void less(short 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.
less
public booleanArray1D less(shortArray1D 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.
less
public void less(shortArray1D 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.
lessEquals
public booleanArray1D lessEquals(short scalar)
- Computes, element by element, the result of the comparison:
element of this array less than or equals to scalar
and return all the results in a new booleanArray1D of the
same shape as this array.
- Parameters:
- scalar - scalar to compare element by element with this array
lessEquals
public void lessEquals(short 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.
lessEquals
public booleanArray1D lessEquals(shortArray1D 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.
lessEquals
public void lessEquals(shortArray1D 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.
toJava
public short[] toJava()
- Transforms this shortArray1D to a short[].
All Packages Class Hierarchy This Package Previous Next Index