Class returned from reduce_elements_in_slice().
More...
#include <yk_var_api.hpp>
Class returned from reduce_elements_in_slice().
- Note
- The reduced values are all doubles regardless of the precision of the solution.
◆ get_reduction_mask()
virtual int yask::yk_var::yk_reduction_result::get_reduction_mask |
( |
| ) |
const |
|
pure virtual |
Get the allowed reductions.
- Returns
- the bitmask of reductions provided.
◆ get_num_elements_reduced()
virtual idx_t yask::yk_var::yk_reduction_result::get_num_elements_reduced |
( |
| ) |
const |
|
pure virtual |
Get the number of elements reduced.
- Returns
- the number of elements evaluated.
◆ get_sum()
virtual double yask::yk_var::yk_reduction_result::get_sum |
( |
| ) |
const |
|
pure virtual |
Get sum.
- Returns
- sum of values of elements in slice or zero (0.0) if no elements were evaluated.
- Exceptions
-
◆ get_sum_squares()
virtual double yask::yk_var::yk_reduction_result::get_sum_squares |
( |
| ) |
const |
|
pure virtual |
Get sum of squares.
- Returns
- sum of squares of values of elements in slice or zero (0.0) if no elements were evaluated.
- Exceptions
-
◆ get_product()
virtual double yask::yk_var::yk_reduction_result::get_product |
( |
| ) |
const |
|
pure virtual |
Get product.
- Returns
- product of values of elements in slice or one (1.0) if no elements were evaluated.
- Exceptions
-
◆ get_max()
virtual double yask::yk_var::yk_reduction_result::get_max |
( |
| ) |
const |
|
pure virtual |
Get max.
- Returns
- maximum of values of elements in slice or
MIN_DBL
if no elements were evaluated.
- Exceptions
-
◆ get_min()
virtual double yask::yk_var::yk_reduction_result::get_min |
( |
| ) |
const |
|
pure virtual |
Get min.
- Returns
- minimum of values of elements in slice or
MAX_DBL
if no elements were evaluated.
- Exceptions
-
The documentation for this class was generated from the following file: