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