QMCPACK
h5_space_type< Tensor< T, D >, RANK > Struct Template Reference

specialization of h5_space_type for Tensor<T,D> for any intrinsic type T More...

+ Inheritance diagram for h5_space_type< Tensor< T, D >, RANK >:
+ Collaboration diagram for h5_space_type< Tensor< T, D >, RANK >:

Public Types

using Base = h5_space_type< T, RANK+2 >
 

Public Member Functions

 h5_space_type ()
 

Static Public Member Functions

static constexpr int added_rank ()
 
static auto get_address (Tensor< T, D > *a)
 
static auto get_address (const Tensor< T, D > *a)
 
- Static Public Member Functions inherited from h5_space_type< T, RANK+2 >
static constexpr int added_rank ()
 new rank added due to T More...
 
static auto get_address (T *a)
 return the address More...
 
static auto get_address (const T *a)
 

Additional Inherited Members

- Public Attributes inherited from h5_space_type< T, RANK+2 >
hsize_t dims [RANK > 0 ? RANK :1]
 shape of the dataspace, protected for zero size array, hdf5 support scalar as rank = 0 More...
 
- Static Public Attributes inherited from h5_space_type< T, RANK+2 >
static constexpr hsize_t rank
 rank of the multidimensional dataspace More...
 

Detailed Description

template<typename T, unsigned D, hsize_t RANK>
struct qmcplusplus::h5_space_type< Tensor< T, D >, RANK >

specialization of h5_space_type for Tensor<T,D> for any intrinsic type T

Definition at line 104 of file hdf_dataspace.h.

Member Typedef Documentation

◆ Base

using Base = h5_space_type<T, RANK + 2>

Definition at line 106 of file hdf_dataspace.h.

Constructor & Destructor Documentation

◆ h5_space_type()

h5_space_type ( )
inline

Definition at line 109 of file hdf_dataspace.h.

References h5_space_type< T, RANK >::dims.

110  {
111  dims[RANK] = D;
112  dims[RANK + 1] = D;
113  }
hsize_t dims[RANK > 0 ? RANK :1]
shape of the dataspace, protected for zero size array, hdf5 support scalar as rank = 0 ...
Definition: hdf_dataspace.h:47

Member Function Documentation

◆ added_rank()

static constexpr int added_rank ( )
inlinestatic

Definition at line 114 of file hdf_dataspace.h.

114 { return Base::added_rank() + 2; }

◆ get_address() [1/2]

static auto get_address ( Tensor< T, D > *  a)
inlinestatic

Definition at line 115 of file hdf_dataspace.h.

References Tensor< T, D >::data().

115 { return Base::get_address(a->data()); }

◆ get_address() [2/2]

static auto get_address ( const Tensor< T, D > *  a)
inlinestatic

Definition at line 116 of file hdf_dataspace.h.

References Tensor< T, D >::data().

116 { return Base::get_address(a->data()); }

The documentation for this struct was generated from the following file: