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