Parameters of the Sum of functions algorithm.
More...
Constructs the parameter for the sum of functions algorithm
- Parameters
-
context | Context to manage the sum of functions algorithm |
cParameter | Pointer to C++ implementation of the parameter |
Constructs the parameter for the sum of functions algorithm
- Parameters
-
numberOfTerms | The number of terms in the function that can be represented as sum |
context | Context to manage the sum of functions algorithm |
Releases memory allocated for the native parameter object
Implements Disposable.
Gets the numeric table of size 1 x m where m is batch size that represent a batch of indices used to compute the function results, e.g., value of the sum of the functions. If no indices are provided, all terms will be used in the computations.
- Returns
- The numeric table of size 1 x m where m is batch size that represent a batch of indices used to compute the function results, e.g., value of the sum of the functions. If no indices are provided, all terms will be used in the computations.
long getNumberOfTerms |
( |
| ) |
|
Gets the number of terms in the function
- Returns
- The number of terms in the function
Sets the numeric table of size 1 x m where m is batch size that represent a batch of indices used to compute the function results, e.g., value of the sum of the functions. If no indices are provided, all terms will be used in the computations.
- Parameters
-
batchIndices | The numeric table of size 1 x m where m is batch size that represent a batch of indices used to compute the function results, e.g., value of the sum of the functions. If no indices are provided, all terms will be used in the computations. |
void setCParameter |
( |
long |
cParameter, |
|
|
long |
cAlgorithm |
|
) |
| |
Sets parameter pointer for algorithm in native side
- Parameters
-
cParameter | The address of the native parameter object |
cAlgorithm | The address of the native algorithm object |
void setNumberOfTerms |
( |
long |
numberOfTerms | ) |
|
Sets the number of terms in the function
- Parameters
-
numberOfTerms | The number of terms in the function |
The documentation for this class was generated from the following file:
- optimization_solver/sum_of_functions/Parameter.java