ergo
|
#include <box_system.h>
Public Member Functions | |
BoxSystem () | |
~BoxSystem () | |
int | create_box_system (box_item_struct *itemList, int noOfItems, ergo_real toplevelBoxSize) |
Creates the box system. | |
int | get_items_near_point (const box_item_struct *itemList, const ergo_real *coords, ergo_real distance, int *resultOrgIndexList) const |
Goes through existning box system to find all items within specified distance from given reference point. | |
Public Attributes | |
int | totNoOfBoxes |
int | noOfLevels |
box_level_struct | levelList [MAX_NO_OF_BOX_LEVELS] |
box_struct_basic * | boxList |
Private Member Functions | |
int | get_items_near_point_recursive (const box_item_struct *itemList, const ergo_real *coords, ergo_real distance, int *resultOrgIndexList, int level, int boxIndex) const |
BoxSystem::BoxSystem | ( | ) |
References boxList.
BoxSystem::~BoxSystem | ( | ) |
References boxList.
int BoxSystem::create_box_system | ( | box_item_struct * | itemList, |
int | noOfItems, | ||
ergo_real | toplevelBoxSize | ||
) |
Creates the box system.
itemList | list of items to create the box structure for. |
noOfItems | their number. |
toplevelBoxSize |
References boxList, do_output(), LOG_CAT_ERROR, LOG_AREA_INTEGRALS, box_item_struct::centerCoords, MAX_NO_OF_BOX_LEVELS, box_struct_basic::width, box_struct_basic::centerCoords, box_struct_basic::firstItemIndex, box_struct_basic::noOfItems, levelList, box_level_struct::startIndexInBoxList, box_level_struct::noOfBoxes, box_struct_basic::firstChildBoxIndex, box_struct_basic::noOfChildBoxes, totNoOfBoxes, noOfLevels, and LOG_CAT_INFO.
Referenced by get_product_distrs(), get_density(), get_basis_func_pair_list_2el(), get_basis_func_pair_list_1el(), create_nuclei_mm_tree(), compute_K_by_boxes(), get_list_of_labeled_distrs_maxLimitingFactor(), get_list_of_labeled_distrs(), create_box_system_and_reorder_distrs(), and compute_operator_matrix_sparse().
int BoxSystem::get_items_near_point | ( | const box_item_struct * | itemList, |
const ergo_real * | coords, | ||
ergo_real | distance, | ||
int * | resultOrgIndexList | ||
) | const |
Goes through existning box system to find all items within specified distance from given reference point.
itemList | the list of items for which the box system was created. |
coords | list of 3 coordinates for reference point. |
distance | the distance to find items within. |
resultOrgIndexList | preallocated list of resulting org indexes. |
References boxList, do_output(), LOG_CAT_ERROR, LOG_AREA_INTEGRALS, get_items_near_point_recursive(), levelList, and compare_ints().
Referenced by get_product_distrs(), get_density(), get_maxLimitingFactor(), get_basis_func_pair_list_2el(), get_basis_func_pair_list_1el(), get_list_of_labeled_distrs_maxLimitingFactor(), get_list_of_labeled_distrs(), and compute_operator_matrix_sparse().
int BoxSystem::get_items_near_point_recursive | ( | const box_item_struct * | itemList, |
const ergo_real * | coords, | ||
ergo_real | distance, | ||
int * | resultOrgIndexList, | ||
int | level, | ||
int | boxIndex | ||
) | const [private] |
References boxList, get_min_distance_from_point_to_box(), box_struct_basic::centerCoords, box_struct_basic::width, noOfLevels, box_struct_basic::noOfItems, box_struct_basic::firstItemIndex, box_item_struct::centerCoords, box_item_struct::originalIndex, box_struct_basic::noOfChildBoxes, and box_struct_basic::firstChildBoxIndex.
Referenced by get_items_near_point().
box_level_struct BoxSystem::levelList[MAX_NO_OF_BOX_LEVELS] |
Referenced by create_box_system(), create_nuclei_mm_tree(), compute_J_by_boxes_linear(), and compute_K_by_boxes().