Package | Description |
---|---|
ptolemy.math |
Math classes.
|
ptolemy.math.test |
The ptolemy.math.test package.
|
Modifier and Type | Method and Description |
---|---|
static int[][] |
IntegerMatrixMath.applyBinaryOperation(IntegerBinaryOperation op,
int[][] matrix,
int z)
Return a new array that is formed by applying an instance of a
IntegerBinaryOperation to each element in the input matrix,
using the matrix elements as the left operands and z as the right
operand in all cases (op.operate(matrix[i][j], z)).
|
static int[][] |
IntegerMatrixMath.applyBinaryOperation(IntegerBinaryOperation op,
int[][] matrix1,
int[][] matrix2)
Return a new array that is formed by applying an instance of a
IntegerBinaryOperation to the two matrices, element by
element, using the elements of the first matrix as the left
operands and the elements of the second matrix as the right
operands.
|
static int[] |
IntegerArrayMath.applyBinaryOperation(IntegerBinaryOperation op,
int[] array,
int z)
Return a new array that is formed by applying an instance of a
IntegerBinaryOperation to each element in the input array
and z, using the array elements as the left operands and z
as the right operand in all cases.
|
static int[] |
IntegerArrayMath.applyBinaryOperation(IntegerBinaryOperation op,
int[] array1,
int[] array2)
Return a new array that is formed by applying an instance of a
IntegerBinaryOperation to the two arrays, element by element,
using the elements of the first array as the left operands and the
elements of the second array as the right operands.
|
static int[] |
IntegerArrayMath.applyBinaryOperation(IntegerBinaryOperation op,
int z,
int[] array)
Return a new array that is formed by applying an instance of a
IntegerBinaryOperation to each element in the input array,
using z as the left operand in all cases and the array elements
as the right operands (op.operate(z, array[i])).
|
static int[][] |
IntegerMatrixMath.applyBinaryOperation(IntegerBinaryOperation op,
int z,
int[][] matrix)
Return a new array that is formed by applying an instance of a
IntegerBinaryOperation to each element in the input matrix,
using z as the left operand in all cases and the matrix elements
as the right operands (op.operate(z, matrix[i][j])).
|
Modifier and Type | Class and Description |
---|---|
class |
TestIntegerBinaryOperation
A operation taking two operands of type int, and producing a value of
type int.
|