PeriDEM 0.2.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
|
Functions | |
bool | isInList (const std::vector< size_t > *list, size_t i) |
void | stats (const std::vector< double > &x, double &mean, double &std) |
void | lattice (double L, size_t Nx, size_t Ny, size_t Nz, double dL, int seed, std::vector< util::Point > &x, int dim=3) |
void | assignRandomTags (std::vector< util::Point > &x, int numTags, int seed, std::vector< size_t > &xTags) |
template<class NSearch > | |
double | neighSearchTree (const std::vector< util::Point > &x, const std::unique_ptr< NSearch > &nsearch, const double &r, std::vector< std::vector< size_t > > &neigh, std::vector< std::vector< float > > &neigh_sq_dist) |
template<class NSearch > | |
double | neighSearchTreeSizet (const std::vector< util::Point > &x, const std::unique_ptr< NSearch > &nsearch, const double &r, std::vector< std::vector< size_t > > &neigh, std::vector< std::vector< float > > &neigh_sq_dist) |
template<class NSearch > | |
double | neighSearchTreeSizetExcludeInclude (const std::vector< util::Point > &x, const std::vector< size_t > &xTags, const std::unique_ptr< NSearch > &nsearch, const double &r, std::vector< std::vector< size_t > > &neigh, std::vector< std::vector< float > > &neigh_sq_dist, int selection_criteria) |
double | neighSearchBrute (const std::vector< util::Point > &x, const double &r, std::vector< std::vector< size_t > > &neigh, std::vector< std::vector< float > > &neigh_sq_dist) |
double | neighSearchBruteExcludeInclude (const std::vector< util::Point > &x, const std::vector< size_t > &xTags, const double &r, std::vector< std::vector< size_t > > &neigh, std::vector< std::vector< float > > &neigh_sq_dist, int selection_criteria) |
template<class NSearch > | |
double | neighSearchTreeClosestPointSizet (const std::vector< util::Point > &x, const std::unique_ptr< NSearch > &nsearch, const int &seed, const double &L, const double &dL, std::vector< util::Point > &search_points, std::vector< size_t > &err_points, std::vector< double > &err_dist) |
std::string | compare_results (const std::vector< std::vector< size_t > > &neigh1, const std::vector< std::vector< size_t > > &neigh2, std::vector< std::string > tags, int check_nodes_num=-1, bool only_err_count=false) |
std::string | compare_closest_point_results (const std::vector< util::Point > &x, const std::vector< util::Point > &search_points, const std::vector< size_t > &err_points, const std::vector< double > &err_dist, bool only_err_count=false) |
void anonymous_namespace{testNSearchLib.cpp}::assignRandomTags | ( | std::vector< util::Point > & | x, |
int | numTags, | ||
int | seed, | ||
std::vector< size_t > & | xTags | ||
) |
Definition at line 95 of file testNSearchLib.cpp.
References util::get_rd_gen().
Referenced by test::testNanoflannExcludeInclude().
std::string anonymous_namespace{testNSearchLib.cpp}::compare_closest_point_results | ( | const std::vector< util::Point > & | x, |
const std::vector< util::Point > & | search_points, | ||
const std::vector< size_t > & | err_points, | ||
const std::vector< double > & | err_dist, | ||
bool | only_err_count = false |
||
) |
Definition at line 460 of file testNSearchLib.cpp.
Referenced by test::testNanoflannClosestPoint().
std::string anonymous_namespace{testNSearchLib.cpp}::compare_results | ( | const std::vector< std::vector< size_t > > & | neigh1, |
const std::vector< std::vector< size_t > > & | neigh2, | ||
std::vector< std::string > | tags, | ||
int | check_nodes_num = -1 , |
||
bool | only_err_count = false |
||
) |
Definition at line 408 of file testNSearchLib.cpp.
References isInList().
Referenced by test::testNanoflann(), and test::testNanoflannExcludeInclude().
bool anonymous_namespace{testNSearchLib.cpp}::isInList | ( | const std::vector< size_t > * | list, |
size_t | i | ||
) |
Definition at line 31 of file testNSearchLib.cpp.
Referenced by compare_results().
void anonymous_namespace{testNSearchLib.cpp}::lattice | ( | double | L, |
size_t | Nx, | ||
size_t | Ny, | ||
size_t | Nz, | ||
double | dL, | ||
int | seed, | ||
std::vector< util::Point > & | x, | ||
int | dim = 3 |
||
) |
Definition at line 54 of file testNSearchLib.cpp.
References util::get_rd_gen().
Referenced by test::testNanoflann(), test::testNanoflannClosestPoint(), and test::testNanoflannExcludeInclude().
double anonymous_namespace{testNSearchLib.cpp}::neighSearchBrute | ( | const std::vector< util::Point > & | x, |
const double & | r, | ||
std::vector< std::vector< size_t > > & | neigh, | ||
std::vector< std::vector< float > > & | neigh_sq_dist | ||
) |
Definition at line 236 of file testNSearchLib.cpp.
References util::parallel::getNThreads().
Referenced by test::testNanoflann(), and test::testNanoflannExcludeInclude().
double anonymous_namespace{testNSearchLib.cpp}::neighSearchBruteExcludeInclude | ( | const std::vector< util::Point > & | x, |
const std::vector< size_t > & | xTags, | ||
const double & | r, | ||
std::vector< std::vector< size_t > > & | neigh, | ||
std::vector< std::vector< float > > & | neigh_sq_dist, | ||
int | selection_criteria | ||
) |
Definition at line 275 of file testNSearchLib.cpp.
References util::parallel::getNThreads().
Referenced by test::testNanoflannExcludeInclude().
double anonymous_namespace{testNSearchLib.cpp}::neighSearchTree | ( | const std::vector< util::Point > & | x, |
const std::unique_ptr< NSearch > & | nsearch, | ||
const double & | r, | ||
std::vector< std::vector< size_t > > & | neigh, | ||
std::vector< std::vector< float > > & | neigh_sq_dist | ||
) |
Definition at line 107 of file testNSearchLib.cpp.
References util::parallel::getNThreads().
double anonymous_namespace{testNSearchLib.cpp}::neighSearchTreeClosestPointSizet | ( | const std::vector< util::Point > & | x, |
const std::unique_ptr< NSearch > & | nsearch, | ||
const int & | seed, | ||
const double & | L, | ||
const double & | dL, | ||
std::vector< util::Point > & | search_points, | ||
std::vector< size_t > & | err_points, | ||
std::vector< double > & | err_dist | ||
) |
Definition at line 336 of file testNSearchLib.cpp.
References util::get_rd_gen(), and util::parallel::getNThreads().
Referenced by test::testNanoflannClosestPoint().
double anonymous_namespace{testNSearchLib.cpp}::neighSearchTreeSizet | ( | const std::vector< util::Point > & | x, |
const std::unique_ptr< NSearch > & | nsearch, | ||
const double & | r, | ||
std::vector< std::vector< size_t > > & | neigh, | ||
std::vector< std::vector< float > > & | neigh_sq_dist | ||
) |
Definition at line 141 of file testNSearchLib.cpp.
References util::parallel::getNThreads().
Referenced by test::testNanoflann(), and test::testNanoflannExcludeInclude().
double anonymous_namespace{testNSearchLib.cpp}::neighSearchTreeSizetExcludeInclude | ( | const std::vector< util::Point > & | x, |
const std::vector< size_t > & | xTags, | ||
const std::unique_ptr< NSearch > & | nsearch, | ||
const double & | r, | ||
std::vector< std::vector< size_t > > & | neigh, | ||
std::vector< std::vector< float > > & | neigh_sq_dist, | ||
int | selection_criteria | ||
) |
Definition at line 175 of file testNSearchLib.cpp.
References util::parallel::getNThreads().
Referenced by test::testNanoflannExcludeInclude().
void anonymous_namespace{testNSearchLib.cpp}::stats | ( | const std::vector< double > & | x, |
double & | mean, | ||
double & | std | ||
) |
Definition at line 39 of file testNSearchLib.cpp.