1 #ifndef CNTR_HERM_TIMESTEP_VIEW_DECL_H 2 #define CNTR_HERM_TIMESTEP_VIEW_DECL_H 8 template <
typename T>
class herm_matrix_timestep;
9 template <
typename T>
class herm_matrix;
10 template <
typename T>
class function;
34 class herm_matrix_timestep_view {
36 typedef std::complex<T>
cplx;
48 int size1(
void)
const {
return size1_; }
49 int size2(
void)
const {
return size2_; }
50 int ntau(
void)
const {
return ntau_; }
51 int tstp(
void)
const {
return tstp_; }
52 int sig(
void)
const {
return sig_; }
54 inline std::complex<T> *retptr(
int i) {
return ret_ + i * element_size_; }
56 inline std::complex<T> *tvptr(
int i) {
return tv_ + i * element_size_; }
58 inline std::complex<T> *lesptr(
int i) {
59 return les_ + i * element_size_;
62 inline std::complex<T> *matptr(
int i) {
return mat_ + i * element_size_; }
70 #if CNTR_USE_HDF5 == 1 73 void write_to_hdf5(
const char *filename,
const char *groupname);
Class herm_matrix_timestep_view serves for interfacing with class herm_matrix_timestep without copyi...
Class herm_matrix_timestep deals with contour objects at a particular timestep .
herm_matrix_timestep_view()
herm_matrix_timestep_view & operator=(const herm_matrix_timestep_view &g)
Copy assignment operator for herm_matrix_timestep_view g class.
~herm_matrix_timestep_view()
void read_from_hdf5(hid_t group_id, const char *groupname)
Read herm_matrix_timestep_view from hdf5 group given by group ID group_id and group name groupname...
Class herm_matrix for two-time contour objects with hermitian symmetry.
void write_to_hdf5(hid_t group_id)
Write herm_matrix_timestep_view to hdf5 group given by group_id.
void set_to_data(std::complex< T > *data, int tstp, int ntau, int size, int sig)