C Configuration Space and Tuning Library (CCS)
Loading...
Searching...
No Matches
evaluation.h
Go to the documentation of this file.
1#ifndef _CCS_EVALUATION_H
2#define _CCS_EVALUATION_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
34
39
67extern ccs_result_t
69 ccs_objective_space_t objective_space,
70 ccs_search_configuration_t configuration,
72 size_t num_values,
73 ccs_datum_t *values,
74 ccs_evaluation_t *evaluation_ret);
75
88extern ccs_result_t
90 ccs_evaluation_t evaluation,
91 ccs_objective_space_t *objective_space_ret);
92
105extern ccs_result_t
107 ccs_evaluation_t evaluation,
108 ccs_search_configuration_t *configuration_ret);
109
122extern ccs_result_t
124 ccs_evaluation_t evaluation,
125 ccs_features_t *features_ret);
126
139extern ccs_result_t
141 ccs_evaluation_t evaluation,
142 ccs_evaluation_result_t *result_ret);
143
161extern ccs_result_t
163 ccs_evaluation_t evaluation,
164 size_t index,
165 ccs_datum_t *value_ret);
166
188extern ccs_result_t
190 ccs_evaluation_t evaluation,
191 size_t num_values,
192 ccs_datum_t *values,
193 size_t *num_values_ret);
194
218extern ccs_result_t
220 ccs_evaluation_t evaluation,
221 ccs_evaluation_t other_evaluation,
222 ccs_comparison_t *result_ret);
223
224#ifdef __cplusplus
225}
226#endif
227
228#endif //_CCS_EVALUATION_H
struct _ccs_search_configuration_s * ccs_search_configuration_t
An opaque type defining a CCS search space configuration.
Definition base.h:123
int32_t ccs_evaluation_result_t
The result type used for evaluations.
Definition base.h:252
struct _ccs_objective_space_s * ccs_objective_space_t
An opaque type defining a CCS objective space.
Definition base.h:139
struct _ccs_evaluation_s * ccs_evaluation_t
An opaque type defining a CCS evaluation.
Definition base.h:143
struct _ccs_features_s * ccs_features_t
An opaque type defining a CCS features.
Definition base.h:135
enum ccs_result_e ccs_result_t
A commodity type to represent CCS errors and returned by most functions.
Definition base.h:247
ccs_result_t ccs_evaluation_get_objective_value(ccs_evaluation_t evaluation, size_t index, ccs_datum_t *value_ret)
Get the value of an objective for a valid evaluation in the context of its objective space.
ccs_comparison_e
The different possible return codes when comparing two evaluations.
Definition evaluation.h:20
@ CCS_COMPARISON_FORCE_32BIT
Try forcing 32 bits value for bindings.
Definition evaluation.h:32
@ CCS_COMPARISON_EQUIVALENT
The two configurations are equivalent.
Definition evaluation.h:24
@ CCS_COMPARISON_NOT_COMPARABLE
The two configurations cannot be compared.
Definition evaluation.h:28
@ CCS_COMPARISON_WORSE
The first configuration is worse than the second.
Definition evaluation.h:26
@ CCS_COMPARISON_MAX
Guard.
Definition evaluation.h:30
@ CCS_COMPARISON_BETTER
The first configuration is better then the second.
Definition evaluation.h:22
ccs_result_t ccs_evaluation_get_features(ccs_evaluation_t evaluation, ccs_features_t *features_ret)
Get the features associated with an evaluation.
ccs_result_t ccs_evaluation_get_objective_space(ccs_evaluation_t evaluation, ccs_objective_space_t *objective_space_ret)
Get the objective space associated with an evaluation.
ccs_result_t ccs_evaluation_get_objective_values(ccs_evaluation_t evaluation, size_t num_values, ccs_datum_t *values, size_t *num_values_ret)
Get the values of the objectives for a valid evaluation in the context of its objective space.
ccs_result_t ccs_create_evaluation(ccs_objective_space_t objective_space, ccs_search_configuration_t configuration, ccs_evaluation_result_t result, size_t num_values, ccs_datum_t *values, ccs_evaluation_t *evaluation_ret)
Create a new instance of an evaluation on a given objective_space for a given configuration.
ccs_result_t ccs_evaluation_get_configuration(ccs_evaluation_t evaluation, ccs_search_configuration_t *configuration_ret)
Get the configuration associated with an evaluation.
ccs_result_t ccs_evaluation_get_result(ccs_evaluation_t evaluation, ccs_evaluation_result_t *result_ret)
Get the result code associated with an evaluation.
ccs_result_t ccs_evaluation_compare(ccs_evaluation_t evaluation, ccs_evaluation_t other_evaluation, ccs_comparison_t *result_ret)
Compare two successful evaluations objectives.
enum ccs_comparison_e ccs_comparison_t
A commodity type to represent CCS the result of comparing evaluations.
Definition evaluation.h:38
A Structure containing a CCS datum.
Definition base.h:494