Package | Description |
---|---|
ptolemy.math |
Math classes.
|
ptolemy.math.test |
The ptolemy.math.test package.
|
Modifier and Type | Method and Description |
---|---|
static long[][] |
LongMatrixMath.applyBinaryOperation(LongBinaryOperation op,
long[][] matrix,
long z)
Return a new array that is formed by applying an instance of a
LongBinaryOperation 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 long[][] |
LongMatrixMath.applyBinaryOperation(LongBinaryOperation op,
long[][] matrix1,
long[][] matrix2)
Return a new array that is formed by applying an instance of a
LongBinaryOperation 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 long[] |
LongArrayMath.applyBinaryOperation(LongBinaryOperation op,
long[] array,
long z)
Return a new array that is formed by applying an instance of a
LongBinaryOperation 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 long[] |
LongArrayMath.applyBinaryOperation(LongBinaryOperation op,
long[] array1,
long[] array2)
Return a new array that is formed by applying an instance of a
LongBinaryOperation 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 long[] |
LongArrayMath.applyBinaryOperation(LongBinaryOperation op,
long z,
long[] array)
Return a new array that is formed by applying an instance of a
LongBinaryOperation 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 long[][] |
LongMatrixMath.applyBinaryOperation(LongBinaryOperation op,
long z,
long[][] matrix)
Return a new array that is formed by applying an instance of a
LongBinaryOperation 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 |
TestLongBinaryOperation
A operation taking two operands of type long, and producing a value of
type long.
|