MADNESS
0.10.1
|
Namespaces | |
arg_holder | |
Typedefs | |
typedef Future< void > | voidT |
Functions | |
void | combine_hash (hashT &seed, hashT hash) |
Internal use only. More... | |
void | compare_fn_addresses (void *addresses_in, void *addresses_inout, int *len, MPI_Datatype *type) |
template<typename objT > | |
void | deferred_cleanup (World &world, const std::shared_ptr< objT > &p, bool assume_p_is_unique) |
Defer the cleanup of a shared pointer to the end of the next fence. More... | |
template<typename ptrT , typename memfnT , typename resT > | |
memfnT | get_mem_func_ptr (const MemFuncWrapper< ptrT, memfnT, resT > &wrapper) |
Returns the member function pointer from a wrapper. More... | |
unsigned short | htons_x (unsigned short a) |
template<typename T = int> | |
double | mynorm (int t) |
template<typename T > | |
T | mynorm (std::complex< T > t) |
template<typename T > | |
T | mynorm (T t) |
template<typename T > | |
double | norm (const T &t) |
template<typename T > | |
double | norm (const Tensor< T > &t) |
std::ostream & | operator<< (std::ostream &out, const RemoteCounter &counter) |
template<typename T , typename U > | |
bool | operator<= (const WorldPtr< T > &left, const WorldPtr< U > &right) |
Less-than-equal-to comparison operator. More... | |
template<typename T , typename U > | |
bool | operator> (const WorldPtr< T > &left, const WorldPtr< U > &right) |
Greater-than comparison operator. More... | |
template<typename T , typename U > | |
bool | operator>= (const WorldPtr< T > &left, const WorldPtr< U > &right) |
Greater-than-equal-to comparison operator. More... | |
static const uniqueidT & | peek (const AmArg &arg) |
Extract the unique object ID from an incoming active message header. More... | |
bool & | print_meminfo_flag_accessor () |
bool & | print_meminfo_keepstreamopen_accessor () |
void | print_mutex_error (int error_number) |
template<typename fnT , typename a1T , typename a2T , typename a3T , typename a4T , typename a5T , typename a6T , typename a7T , typename a8T , typename a9T > | |
std::enable_if< std::is_void< typename detail::result_of< fnT >::type >::value >::type | run_function (Future< void > &result, fnT fn, a1T &a1, a2T &a2, a3T &a3, a4T &a4, a5T &a5, a6T &a6, a7T &a7, a8T &a8, a9T &a9) |
template<typename fnT , typename a1T , typename a2T , typename a3T , typename a4T , typename a5T , typename a6T , typename a7T , typename a8T > | |
std::enable_if< std::is_void< typename detail::result_of< fnT >::type >::value >::type | run_function (Future< void > &result, fnT fn, a1T &a1, a2T &a2, a3T &a3, a4T &a4, a5T &a5, a6T &a6, a7T &a7, a8T &a8, const voidT &) |
template<typename fnT , typename a1T , typename a2T , typename a3T , typename a4T , typename a5T , typename a6T , typename a7T > | |
std::enable_if< std::is_void< typename detail::result_of< fnT >::type >::value >::type | run_function (Future< void > &result, fnT fn, a1T &a1, a2T &a2, a3T &a3, a4T &a4, a5T &a5, a6T &a6, a7T &a7, const voidT &, const voidT &) |
template<typename fnT , typename a1T , typename a2T , typename a3T , typename a4T , typename a5T , typename a6T > | |
std::enable_if< std::is_void< typename detail::result_of< fnT >::type >::value >::type | run_function (Future< void > &result, fnT fn, a1T &a1, a2T &a2, a3T &a3, a4T &a4, a5T &a5, a6T &a6, const voidT &, const voidT &, const voidT &) |
template<typename fnT , typename a1T , typename a2T , typename a3T , typename a4T , typename a5T > | |
std::enable_if< std::is_void< typename detail::result_of< fnT >::type >::value >::type | run_function (Future< void > &result, fnT fn, a1T &a1, a2T &a2, a3T &a3, a4T &a4, a5T &a5, const voidT &, const voidT &, const voidT &, const voidT &) |
template<typename fnT , typename a1T , typename a2T , typename a3T , typename a4T > | |
std::enable_if< std::is_void< typename detail::result_of< fnT >::type >::value >::type | run_function (Future< void > &result, fnT fn, a1T &a1, a2T &a2, a3T &a3, a4T &a4, const voidT &, const voidT &, const voidT &, const voidT &, const voidT &) |
template<typename fnT , typename a1T , typename a2T , typename a3T > | |
std::enable_if< std::is_void< typename detail::result_of< fnT >::type >::value >::type | run_function (Future< void > &result, fnT fn, a1T &a1, a2T &a2, a3T &a3, const voidT &, const voidT &, const voidT &, const voidT &, const voidT &, const voidT &) |
template<typename fnT , typename a1T , typename a2T > | |
std::enable_if< std::is_void< typename detail::result_of< fnT >::type >::value >::type | run_function (Future< void > &result, fnT fn, a1T &a1, a2T &a2, const voidT &, const voidT &, const voidT &, const voidT &, const voidT &, const voidT &, const voidT &) |
template<typename fnT , typename a1T > | |
std::enable_if< std::is_void< typename detail::result_of< fnT >::type >::value >::type | run_function (Future< void > &result, fnT fn, a1T &a1, const voidT &, const voidT &, const voidT &, const voidT &, const voidT &, const voidT &, const voidT &, const voidT &) |
template<typename fnT > | |
std::enable_if< std::is_void< typename detail::result_of< fnT >::type >::value >::type | run_function (Future< void > &result, fnT fn, const voidT &, const voidT &, const voidT &, const voidT &, const voidT &, const voidT &, const voidT &, const voidT &, const voidT &) |
template<typename fnT , typename a1T , typename a2T , typename a3T , typename a4T , typename a5T , typename a6T , typename a7T , typename a8T , typename a9T > | |
std::enable_if<!std::is_void< typename detail::result_of< fnT >::type >::value >::type | run_function (typename task_result_type< fnT >::futureT &result, fnT fn, a1T &a1, a2T &a2, a3T &a3, a4T &a4, a5T &a5, a6T &a6, a7T &a7, a8T &a8, a9T &a9) |
template<typename fnT , typename a1T , typename a2T , typename a3T , typename a4T , typename a5T , typename a6T , typename a7T , typename a8T > | |
std::enable_if<!std::is_void< typename detail::result_of< fnT >::type >::value >::type | run_function (typename task_result_type< fnT >::futureT &result, fnT fn, a1T &a1, a2T &a2, a3T &a3, a4T &a4, a5T &a5, a6T &a6, a7T &a7, a8T &a8, const voidT &) |
template<typename fnT , typename a1T , typename a2T , typename a3T , typename a4T , typename a5T , typename a6T , typename a7T > | |
std::enable_if<!std::is_void< typename detail::result_of< fnT >::type >::value >::type | run_function (typename task_result_type< fnT >::futureT &result, fnT fn, a1T &a1, a2T &a2, a3T &a3, a4T &a4, a5T &a5, a6T &a6, a7T &a7, const voidT &, const voidT &) |
template<typename fnT , typename a1T , typename a2T , typename a3T , typename a4T , typename a5T , typename a6T > | |
std::enable_if<!std::is_void< typename detail::result_of< fnT >::type >::value >::type | run_function (typename task_result_type< fnT >::futureT &result, fnT fn, a1T &a1, a2T &a2, a3T &a3, a4T &a4, a5T &a5, a6T &a6, const voidT &, const voidT &, const voidT &) |
template<typename fnT , typename a1T , typename a2T , typename a3T , typename a4T , typename a5T > | |
std::enable_if<!std::is_void< typename detail::result_of< fnT >::type >::value >::type | run_function (typename task_result_type< fnT >::futureT &result, fnT fn, a1T &a1, a2T &a2, a3T &a3, a4T &a4, a5T &a5, const voidT &, const voidT &, const voidT &, const voidT &) |
template<typename fnT , typename a1T , typename a2T , typename a3T , typename a4T > | |
std::enable_if<!std::is_void< typename detail::result_of< fnT >::type >::value >::type | run_function (typename task_result_type< fnT >::futureT &result, fnT fn, a1T &a1, a2T &a2, a3T &a3, a4T &a4, const voidT &, const voidT &, const voidT &, const voidT &, const voidT &) |
template<typename fnT , typename a1T , typename a2T , typename a3T > | |
std::enable_if<!std::is_void< typename detail::result_of< fnT >::type >::value >::type | run_function (typename task_result_type< fnT >::futureT &result, fnT fn, a1T &a1, a2T &a2, a3T &a3, const voidT &, const voidT &, const voidT &, const voidT &, const voidT &, const voidT &) |
template<typename fnT , typename a1T , typename a2T > | |
std::enable_if<!std::is_void< typename detail::result_of< fnT >::type >::value >::type | run_function (typename task_result_type< fnT >::futureT &result, fnT fn, a1T &a1, a2T &a2, const voidT &, const voidT &, const voidT &, const voidT &, const voidT &, const voidT &, const voidT &) |
template<typename fnT , typename a1T > | |
std::enable_if<!std::is_void< typename detail::result_of< fnT >::type >::value >::type | run_function (typename task_result_type< fnT >::futureT &result, fnT fn, a1T &a1, const voidT &, const voidT &, const voidT &, const voidT &, const voidT &, const voidT &, const voidT &, const voidT &) |
template<typename fnT > | |
std::enable_if<!std::is_void< typename detail::result_of< fnT >::type >::value >::type | run_function (typename task_result_type< fnT >::futureT &result, fnT fn, const voidT &, const voidT &, const voidT &, const voidT &, const voidT &, const voidT &, const voidT &, const voidT &, const voidT &) |
void | swap (RemoteCounter &l, RemoteCounter &r) |
template<typename T > | |
void | swap (WorldPtr< T > &l, WorldPtr< T > &r) |
Swap the content of l with r . More... | |
ThreadTag & | thread_tag_accessor () |
template<typename Char > | |
const Char * | Vm_cstr () |
template<> | |
const char * | Vm_cstr< char > () |
template<> | |
const wchar_t * | Vm_cstr< wchar_t > () |
template<typename objT , typename memfnT > | |
MemFuncWrapper< const objT *, memfnT, typename result_of< memfnT >::type > | wrap_mem_fn (const objT &obj, memfnT memfn) |
Create a member function wrapper (MemFuncWrapper ) from a const object and a member function pointer. More... | |
template<typename objT , typename memfnT > | |
MemFuncWrapper< const objT *, memfnT, typename result_of< memfnT >::type > | wrap_mem_fn (const objT *obj, memfnT memfn) |
Create a member function wrapper (MemFuncWrapper ) from a const pointer and a member function pointer. More... | |
template<typename objT , typename memfnT > | |
MemFuncWrapper< std::shared_ptr< objT >, memfnT, typename result_of< memfnT >::type > | wrap_mem_fn (const std::shared_ptr< objT > &obj, memfnT memfn) |
Create a member function wrapper (MemFuncWrapper ) from a const shared pointer and a member function pointer. More... | |
template<typename objT , typename memfnT > | |
MemFuncWrapper< objT *, memfnT, typename result_of< memfnT >::type > | wrap_mem_fn (objT &obj, memfnT memfn) |
Create a member function wrapper (MemFuncWrapper ) from an object and a member function pointer. More... | |
template<typename objT , typename memfnT > | |
MemFuncWrapper< objT *, memfnT, typename result_of< memfnT >::type > | wrap_mem_fn (objT *obj, memfnT memfn) |
Create a member function wrapper (MemFuncWrapper ) from a pointer and a member function pointer. More... | |
template<typename objT , typename memfnT > | |
MemFuncWrapper< std::shared_ptr< objT >, memfnT, typename result_of< memfnT >::type > | wrap_mem_fn (std::shared_ptr< objT > &obj, memfnT memfn) |
Create a member function wrapper (MemFuncWrapper ) from a shared pointer and a member function pointer. More... | |
Variables | |
Mutex | printmutex |
typedef Future<void> madness::detail::voidT |
Future<void> is an empty object which is used as a placeholder for unused arguments.
Internal use only.
Referenced by madness::hash_combine(), madness::hash_range(), std::hash_value(), and madness::hash_value().
void madness::detail::compare_fn_addresses | ( | void * | addresses_in, |
void * | addresses_inout, | ||
int * | len, | ||
MPI_Datatype * | type | ||
) |
References MADNESS_ASSERT, MPI_LONG, and madness::type().
Referenced by madness::RMI::assert_aslr_off().
|
inline |
Defer the cleanup of a shared pointer to the end of the next fence.
Call this function before destroying a shared pointer. If the shared pointer is the last reference to the object, or assume_p_is_unique
is true, it is placed in the deferred deletion list. Otherwise, nothing is done with the pointer.
Referenced by madness::WorldContainer< keyT, valueT, hashfunT >::~WorldContainer().
memfnT madness::detail::get_mem_func_ptr | ( | const MemFuncWrapper< ptrT, memfnT, resT > & | wrapper | ) |
Returns the member function pointer from a wrapper.
ptrT | Pointer type. |
memfnT | Member function pointer type. |
resT | Member function return type. |
wrapper | Wrapper to the member function. |
Referenced by madness::TaskFn< fnT, arg1T, arg2T, arg3T, arg4T, arg5T, arg6T, arg7T, arg8T, arg9T >::get_func().
|
inline |
References a.
Referenced by madness::plotpovray().
double madness::detail::mynorm | ( | int | t | ) |
Referenced by madness::Tensor< T >::normf().
double madness::detail::norm | ( | const T & | t | ) |
References std::abs().
Referenced by slymer::PrimitiveGaussian::PrimitiveGaussian(), a_fit(), madness::adq1(), apbar_fit(), bshrel_fit(), madness::SRConf< T >::check_right_orthonormality(), compute_energy(), compute_energy_with_U(), converge(), converge2s(), madness::Znemo::custom_guess(), madness::FunctionImpl< T, NDIM >::do_apply_directed_screening(), madness::FunctionImpl< T, NDIM >::do_apply_kernel2(), doit(), gauss_3d(), gauss_6d(), sgl_guess::get_wf(), madness::GMRES(), madness::Function< T, NDIM >::if(), madness::CCTimer::info(), iterate(), iterate_ground(), madness::CC2::iterate_singles(), main(), madness::ConvolutionData1D< Q >::make_approx(), madness::TDHF::make_virtuals(), mynorm(), mynorm< double_complex >(), mynorm< float_complex >(), madness::FunctionImpl< T, NDIM >::norm_tree_spawn(), Fcwf::normalize(), madness::SRConf< T >::normalize(), AnsatzBase::normalize(), madness::GenTensor< T >::normf(), Sphere::operator()(), DSphere::operator()(), madness::op_leaf_op< T, NDIM, opT >::operator()(), madness::hartree_leaf_op< T, NDIM >::operator()(), madness::hartree_convolute_leaf_op< T, NDIM, LDIM, opT >::operator()(), madness::FunctionImpl< T, NDIM >::do_norm2sq_local::operator()(), madness::FunctionImpl< T, NDIM >::do_check_symmetry_local::operator()(), madness::operator<<(), pbar_fit(), madness::Leaf_op< T, NDIM, opT, specialboxT >::post_screening(), print_info(), madness::FunctionNode< T, NDIM >::print_json(), madness::FunctionImpl< T, NDIM >::print_size(), madness::CCPairFunction< T, NDIM >::print_size(), print_stats(), Calculation::project_potential_basis(), projector_external_dof(), madness::MolecularOptimizer::projector_external_dof(), propagate(), slymer::NWChem_Interface::read_basis_set(), madness::FunctionNode< T, NDIM >::recompute_snorm_and_dnorm(), run(), madness::Nemo::solve_cphf(), madness::GenTensor< T >::svd_normf(), tbar_fit(), test_adaptive_tree(), test_basic(), test_bsh(), madness::Znemo::test_compute_current_density(), test_construction_optimization(), test_conversion(), test_convolution(), test_coulomb(), test_exchange(), test_inner(), test_molecular_grid(), test_opdir(), test_orthogonalization(), test_partial_inner_3d(), test_qm(), test_recursive_application(), test_unaryop(), madness::Diamagnetic_potential_factor::test_vector_potentials(), tightgauss_3d(), madness::unitvec(), and madness::FunctionImpl< T, NDIM >::vtransform_doit().
References madness::Tensor< T >::normf().
Referenced by madness::adq1().
std::ostream & madness::detail::operator<< | ( | std::ostream & | out, |
const RemoteCounter & | counter | ||
) |
bool madness::detail::operator<= | ( | const WorldPtr< T > & | left, |
const WorldPtr< U > & | right | ||
) |
Less-than-equal-to comparison operator.
This operator does a lexicographical comparison of world ID, rank, and pointer (in that order).
T | One pointer type. |
U | Another pointer type. |
[in] | left | One pointer. |
[in] | right | The other pointer. |
bool madness::detail::operator> | ( | const WorldPtr< T > & | left, |
const WorldPtr< U > & | right | ||
) |
Greater-than comparison operator.
This operator does a lexicographical comparison of world ID, rank, and pointer (in that order).
T | One pointer type. |
U | Another pointer type. |
[in] | left | One pointer. |
[in] | right | The other pointer. |
bool madness::detail::operator>= | ( | const WorldPtr< T > & | left, |
const WorldPtr< U > & | right | ||
) |
Greater-than-equal-to comparison operator.
This operator does a lexicographical comparison of world ID, rank, and pointer (in that order).
T | One pointer type. |
U | Another pointer type. |
[in] | left | One pointer. |
[in] | right | The other pointer. |
Extract the unique object ID from an incoming active message header.
We deserialize the header and all arguments at the same time to simplify the code. However, it is common that when sending a message to an item in a container to include a pointer to the container itself. But this breaks if the container is not initialized since the deserialization throws if the object is not initialized (which seems preferable to a hidden race condition). Hence, we use this routine to extract the unique ID from the very front of the info
structure. For efficiency we here rely upon the serialization of info
being opaque and the ID being at the front of info
.
[in] | arg | The active message header. |
References madness::arg().
Referenced by madness::WorldObject< Derived >::handler(), and madness::WorldObject< Derived >::spawn_remote_task_handler().
bool & madness::detail::print_meminfo_flag_accessor | ( | ) |
bool& madness::detail::print_meminfo_keepstreamopen_accessor | ( | ) |
Referenced by madness::print_meminfo_keep_ostream_open().
void madness::detail::print_mutex_error | ( | int | error_number | ) |
|
inline |
References a1, a2, madness::detail::arg_holder::decay(), and madness::Future< void >::set().
|
inline |
References a1, a2, madness::detail::arg_holder::decay(), and madness::Future< void >::set().
|
inline |
References a1, a2, madness::detail::arg_holder::decay(), and madness::Future< void >::set().
|
inline |
References a1, a2, madness::detail::arg_holder::decay(), and madness::Future< void >::set().
|
inline |
References a1, a2, madness::detail::arg_holder::decay(), and madness::Future< void >::set().
|
inline |
References a1, a2, madness::detail::arg_holder::decay(), and madness::Future< void >::set().
|
inline |
References a1, a2, madness::detail::arg_holder::decay(), and madness::Future< void >::set().
|
inline |
References a1, a2, madness::detail::arg_holder::decay(), and madness::Future< void >::set().
|
inline |
References a1, madness::detail::arg_holder::decay(), and madness::Future< void >::set().
|
inline |
|
inline |
References a1, a2, madness::detail::arg_holder::decay(), and madness::Future< T >::set().
|
inline |
References a1, a2, madness::detail::arg_holder::decay(), and madness::Future< T >::set().
|
inline |
References a1, a2, madness::detail::arg_holder::decay(), and madness::Future< T >::set().
|
inline |
References a1, a2, madness::detail::arg_holder::decay(), and madness::Future< T >::set().
|
inline |
References a1, a2, madness::detail::arg_holder::decay(), and madness::Future< T >::set().
|
inline |
References a1, a2, madness::detail::arg_holder::decay(), and madness::Future< T >::set().
|
inline |
References a1, a2, madness::detail::arg_holder::decay(), and madness::Future< T >::set().
|
inline |
References a1, a2, madness::detail::arg_holder::decay(), and madness::Future< T >::set().
|
inline |
References a1, madness::detail::arg_holder::decay(), and madness::Future< T >::set().
|
inline |
References madness::Future< T >::set().
|
inline |
References madness::detail::RemoteCounter::swap().
Swap the content of l
with r
.
T | The world pointer type. |
[in,out] | l | One world pointer. |
[in,out] | r | The other world pointer. |
References madness::detail::WorldPtr< T >::swap().
Referenced by madness::detail::RemoteCounter::swap(), madness::RemoteReference< T >::swap(), and madness::detail::WorldPtr< T >::swap().
|
inline |
References madness::ThreadTag_NonMADNESS.
Referenced by madness::is_madness_thread(), and madness::set_thread_tag().
const Char* madness::detail::Vm_cstr | ( | ) |
const char* madness::detail::Vm_cstr< char > | ( | ) |
Referenced by madness::print_meminfo().
const wchar_t* madness::detail::Vm_cstr< wchar_t > | ( | ) |
References L.
MemFuncWrapper<const objT*, memfnT, typename result_of<memfnT>::type> madness::detail::wrap_mem_fn | ( | const objT & | obj, |
memfnT | memfn | ||
) |
Create a member function wrapper (MemFuncWrapper
) from a const object and a member function pointer.
objT | The object type. |
memfnT | The member function pointer type. |
[in] | obj | The object. |
[in] | memfn | The member function pointer. |
MemFuncWrapper<const objT*, memfnT, typename result_of<memfnT>::type> madness::detail::wrap_mem_fn | ( | const objT * | obj, |
memfnT | memfn | ||
) |
Create a member function wrapper (MemFuncWrapper
) from a const pointer and a member function pointer.
objT | The object type. |
memfnT | The member function pointer type. |
[in] | obj | Pointer to the object. |
[in] | memfn | The member function pointer. |
MemFuncWrapper<std::shared_ptr<objT>, memfnT, typename result_of<memfnT>::type> madness::detail::wrap_mem_fn | ( | const std::shared_ptr< objT > & | obj, |
memfnT | memfn | ||
) |
Create a member function wrapper (MemFuncWrapper
) from a const shared pointer and a member function pointer.
objT | The object type. |
memfnT | The member function pointer type. |
[in] | obj | Shared pointer to the object. |
[in] | memfn | The member function pointer. |
MemFuncWrapper<objT*, memfnT, typename result_of<memfnT>::type> madness::detail::wrap_mem_fn | ( | objT & | obj, |
memfnT | memfn | ||
) |
Create a member function wrapper (MemFuncWrapper
) from an object and a member function pointer.
objT | The object type. |
memfnT | The member function pointer type. |
[in] | obj | The object. |
[in] | memfn | The member function pointer. |
Referenced by madness::FunctionImpl< T, NDIM >::multiply_op< LDIM >::activate(), madness::FunctionImpl< T, NDIM >::add_op::activate(), madness::FunctionImpl< T, NDIM >::hartree_op< LDIM, leaf_opT >::activate(), madness::FunctionImpl< T, NDIM >::Vphi_op_NS< opT, LDIM >::activate(), madness::FunctionImpl< T, NDIM >::recursive_apply_op< opT, LDIM >::activate(), madness::FunctionImpl< T, NDIM >::recursive_apply_op2< opT >::activate(), madness::FunctionImpl< T, NDIM >::project_out_op< LDIM >::activate(), and madness::WorldTaskQueue::add().
MemFuncWrapper<objT*, memfnT, typename result_of<memfnT>::type> madness::detail::wrap_mem_fn | ( | objT * | obj, |
memfnT | memfn | ||
) |
Create a member function wrapper (MemFuncWrapper
) from a pointer and a member function pointer.
objT | The object type. |
memfnT | The member function pointer type. |
[in] | obj | Pointer to the object. |
[in] | memfn | The member function pointer. |
MemFuncWrapper<std::shared_ptr<objT>, memfnT, typename result_of<memfnT>::type> madness::detail::wrap_mem_fn | ( | std::shared_ptr< objT > & | obj, |
memfnT | memfn | ||
) |
Create a member function wrapper (MemFuncWrapper
) from a shared pointer and a member function pointer.
objT | The object type. |
memfnT | The member function pointer type. |
[in] | obj | Shared pointer to the object. |
[in] | memfn | The member function pointer. |
Mutex madness::detail::printmutex |
Referenced by madness::print(), and madness::print_error().