numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
|
Class of groups in [27] for num_collect::opt::adaptive_diagonal_curves. More...
#include <num_collect/opt/adaptive_diagonal_curves.h>
Classes | |
struct | greater |
Class to compare rectangles. More... | |
Public Types | |
using | rectangle_pointer_type = std::shared_ptr<rectangle_type> |
Type of pointers of hyper-rectangles. | |
using | rectangle_type = adc_rectangle<value_type> |
Type of hyper-rectangles. | |
using | value_type = Value |
Type of function values. | |
Public Member Functions | |
adc_group (value_type dist) | |
Constructor. | |
auto | dist () const -> const value_type & |
Get the distance between center point and vertex. | |
auto | empty () const -> bool |
Check whether this group is empty. | |
auto | min_rect () const -> const rectangle_pointer_type & |
Access the hyper-rectangle with the smallest average of function values at diagonal vertices. | |
auto | pop () -> rectangle_pointer_type |
Pick out the hyper-rectangle with the smallest average of function values at diagonal vertices. | |
void | push (rectangle_pointer_type rect) |
Add a hyper-rectangle to this group. | |
Private Types | |
using | queue_type |
Type of queues of rectangles. | |
Private Attributes | |
value_type | dist_ |
Distance between center point and vertex. | |
queue_type | rects_ {} |
Rectangles. | |
Class of groups in [27] for num_collect::opt::adaptive_diagonal_curves.
Value | Type of function values. |
Definition at line 369 of file adaptive_diagonal_curves.h.
|
private |
Type of queues of rectangles.
Definition at line 454 of file adaptive_diagonal_curves.h.
using num_collect::opt::impl::adc_group< Value >::rectangle_pointer_type = std::shared_ptr<rectangle_type> |
Type of pointers of hyper-rectangles.
Definition at line 378 of file adaptive_diagonal_curves.h.
using num_collect::opt::impl::adc_group< Value >::rectangle_type = adc_rectangle<value_type> |
Type of hyper-rectangles.
Definition at line 375 of file adaptive_diagonal_curves.h.
using num_collect::opt::impl::adc_group< Value >::value_type = Value |
Type of function values.
Definition at line 372 of file adaptive_diagonal_curves.h.
|
inlineexplicit |
Constructor.
[in] | dist | Distance between center point and vertex. |
Definition at line 385 of file adaptive_diagonal_curves.h.
|
inlinenodiscard |
Get the distance between center point and vertex.
Definition at line 433 of file adaptive_diagonal_curves.h.
|
inlinenodiscard |
Check whether this group is empty.
Definition at line 413 of file adaptive_diagonal_curves.h.
|
inlinenodiscard |
Access the hyper-rectangle with the smallest average of function values at diagonal vertices.
Definition at line 403 of file adaptive_diagonal_curves.h.
|
inlinenodiscard |
Pick out the hyper-rectangle with the smallest average of function values at diagonal vertices.
Definition at line 421 of file adaptive_diagonal_curves.h.
|
inline |
Add a hyper-rectangle to this group.
[in] | rect | Rectangle. |
Definition at line 392 of file adaptive_diagonal_curves.h.
|
private |
Distance between center point and vertex.
Definition at line 461 of file adaptive_diagonal_curves.h.
|
private |
Rectangles.
Definition at line 458 of file adaptive_diagonal_curves.h.