QNANO
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
Tensor4 Class Reference

Class to store a rank-4 (complex) tensor: More...

#include <Tensor4.h>

Inheritance diagram for Tensor4:
Inheritance graph
[legend]

Public Member Functions

size_t get_index (size_t i, size_t j, size_t k, size_t l) const
 
size_t get_totalsize () const
 
size_t get_size (size_t i) const
 
void resize (size_t i, size_t j, size_t k, size_t l)
 
void set_zero ()
 
const std::complex< double > & operator() (size_t i, size_t j, size_t k, size_t l) const
 
std::complex< double > & operator() (size_t i, size_t j, size_t k, size_t l)
 
const std::complex< double > & get_check (int i, int j, int k, int l)
 
void copy (const Tensor4 &other)
 
Tensor4operator= (const Tensor4 &other)
 
 Tensor4 (const Tensor4 &other)
 
 Tensor4 (size_t i, size_t j, size_t k, size_t l)
 

Public Attributes

size_t size [4]
 
std::complex< double > * data
 

Protected Member Functions

void allocate ()
 
void deallocate ()
 

Detailed Description

Class to store a rank-4 (complex) tensor:


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