13 #ifndef QMCPLUSPLUS_CONTAINER_TRAITS_OHMMS_H 14 #define QMCPLUSPLUS_CONTAINER_TRAITS_OHMMS_H 25 template<
typename T,
class ALLOC>
34 size_t nt = d > 0 ? 1 : 0;
35 for (
int i = 0; i < d; ++i)
45 template<
typename T,
class ALLOC>
56 std::ostringstream err_msg;
57 err_msg <<
"Matrix cannot be resized. Requested dimension = " << d << std::endl;
58 throw std::runtime_error(err_msg.str());
68 template<
typename T,
unsigned D>
79 std::ostringstream err_msg;
80 err_msg <<
"Array<T, " << D <<
"> cannot be resized. Requested dimension = " << d << std::endl;
81 throw std::runtime_error(err_msg.str());
void resize(size_type n, Type_t val=Type_t())
Resize the container.
static size_t getSize(const CT &ref)
helper functions for EinsplineSetBuilder
static auto getElementPtr(CT &ref)
static void resize(CT &ref, I *n, int d)
void resize(size_type n, size_type m)
Resize the container.
void resize(const std::array< SIZET, D > &dims)
Resize the container.
static void resize(CT &ref, I *n, int d)
static size_t getSize(const CT &ref)
size_type size() const
return the current size
static void resize(CT &ref, I *n, int d)
Declaraton of Vector<T,Alloc> Manage memory through Alloc directly and allow referencing an existing ...
static size_t getSize(const CT &ref)
static auto getElementPtr(CT &ref)
A D-dimensional Array class based on PETE.
static auto getElementPtr(CT &ref)