17 #ifndef QMCPLUSPLUS_CONVERT2REAL_H 18 #define QMCPLUSPLUS_CONVERT2REAL_H 31 template<
typename T1,
typename T2, IsReal<T2> = true>
34 out =
static_cast<T2
>(in);
39 template<
typename T1,
typename T2, IsReal<T2> = true>
48 template<
typename T1,
typename T2,
unsigned D>
51 for (
int i = 0; i < D; ++i)
56 template<
typename T1,
typename T2,
unsigned D>
59 for (
int i = 0; i < D * D; ++i)
68 template<
typename T1,
typename T2>
69 inline void convertToReal(
const T1* restrict in, T2* restrict out, std::size_t
n)
71 for (
int i = 0; i <
n; ++i)
76 template<
typename T1,
typename T2>
83 template<
typename T1,
typename T2>
helper functions for EinsplineSetBuilder
void convertToReal(const T1 &in, T2 &out)
generic conversion from type T1 to type T2 using implicit conversion
size_type size() const
return the current size
Tensor<T,D> class for D by D tensor.
Declaraton of Vector<T,Alloc> Manage memory through Alloc directly and allow referencing an existing ...