QNANO
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
template_Tensor2< T > Class Template Reference

Class to store a rank-2 (complex) tensor, i.e., a matrix: More...

#include <Tensor2.h>

Inheritance diagram for template_Tensor2< T >:
Inheritance graph
[legend]
Collaboration diagram for template_Tensor2< T >:
Collaboration graph
[legend]

Public Member Functions

size_t get_index (size_t i, size_t j) const
 
size_t get_totalsize () const
 
size_t get_size (size_t i) const
 
void resize (size_t i, size_t j)
 
void set_zero ()
 
const T & operator() (size_t i, size_t j) const
 
T & operator() (size_t i, size_t j)
 
const T & get_check (int i, int j)
 
void swap_lines (size_t l1, size_t l2)
 
void copy (const template_Tensor2 &other)
 
template_Tensor2operator= (const template_Tensor2 &other)
 
 template_Tensor2 (const template_Tensor2 &other)
 
 template_Tensor2 (size_t i, size_t j)
 

Public Attributes

size_t size [2]
 
T * data
 

Protected Member Functions

void allocate ()
 
void deallocate ()
 

Detailed Description

template<typename T>
class template_Tensor2< T >

Class to store a rank-2 (complex) tensor, i.e., a matrix:


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