Parameters of the Sum of functions algorithm.
More...
◆ Parameter() [1/2]
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 |
◆ Parameter() [2/2]
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 |
◆ dispose()
Releases memory allocated for the native parameter object
Implements Disposable.
◆ getBatchIndices()
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.
◆ getNumberOfTerms()
long getNumberOfTerms |
( |
| ) |
|
Gets the number of terms in the function
- Returns
- The number of terms in the function
◆ setBatchIndices()
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. |
◆ setCParameter()
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 |
◆ setNumberOfTerms()
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