Public Member Functions | Private Attributes | Friends | List of all members
psi::dfoccwave::Tensor2i Class Reference

#include <tensors.h>

Public Member Functions

 Tensor2i (int d1, int d2)
 Tensor2i (std::string name, int d1, int d2)
 Tensor2i ()
 ~Tensor2i ()
void init (std::string name, int d1, int d2)
void init (int d1, int d2)
void memalloc ()
void zero ()
void zero_diagonal ()
void print ()
void print (std::string out_fname)
void release ()
void set (int i, int j, int value)
void set (int **A)
double get (int i, int j)
void add (const SharedTensor2i &Adum)
void add (int i, int j, int value)
void subtract (const SharedTensor2i &Adum)
void subtract (int i, int j, int value)
SharedTensor2i transpose ()
void copy (const SharedTensor2i &Adum)
void copy (int **a)
void identity ()
int trace ()
int ** to_int_matrix ()
int dim1 () const
int dim2 () const

Private Attributes

int ** A2i_
int dim1_
int dim2_
std::string name_


class Tensor1i
class Tensor3i
class Tensor1d
class Tensor2d

Constructor & Destructor Documentation

psi::dfoccwave::Tensor2i::Tensor2i ( int  d1,
int  d2 
psi::dfoccwave::Tensor2i::Tensor2i ( std::string  name,
int  d1,
int  d2 
psi::dfoccwave::Tensor2i::Tensor2i ( )
psi::dfoccwave::Tensor2i::~Tensor2i ( )

Member Function Documentation

void psi::dfoccwave::Tensor2i::add ( const SharedTensor2i Adum)
void psi::dfoccwave::Tensor2i::add ( int  i,
int  j,
int  value 
void psi::dfoccwave::Tensor2i::copy ( const SharedTensor2i Adum)
void psi::dfoccwave::Tensor2i::copy ( int **  a)
int psi::dfoccwave::Tensor2i::dim1 ( ) const
int psi::dfoccwave::Tensor2i::dim2 ( ) const
double psi::dfoccwave::Tensor2i::get ( int  i,
int  j 
void psi::dfoccwave::Tensor2i::identity ( )
void psi::dfoccwave::Tensor2i::init ( std::string  name,
int  d1,
int  d2 
void psi::dfoccwave::Tensor2i::init ( int  d1,
int  d2 
void psi::dfoccwave::Tensor2i::memalloc ( )
void psi::dfoccwave::Tensor2i::print ( )
void psi::dfoccwave::Tensor2i::print ( std::string  out_fname)
void psi::dfoccwave::Tensor2i::release ( )
void psi::dfoccwave::Tensor2i::set ( int  i,
int  j,
int  value 
void psi::dfoccwave::Tensor2i::set ( int **  A)
void psi::dfoccwave::Tensor2i::subtract ( const SharedTensor2i Adum)
void psi::dfoccwave::Tensor2i::subtract ( int  i,
int  j,
int  value 
int ** psi::dfoccwave::Tensor2i::to_int_matrix ( )
int psi::dfoccwave::Tensor2i::trace ( )
SharedTensor2i psi::dfoccwave::Tensor2i::transpose ( )
void psi::dfoccwave::Tensor2i::zero ( )
void psi::dfoccwave::Tensor2i::zero_diagonal ( )

Friends And Related Function Documentation

friend class Tensor1d
friend class Tensor1i
friend class Tensor2d
friend class Tensor3i

Member Data Documentation

int** psi::dfoccwave::Tensor2i::A2i_
int psi::dfoccwave::Tensor2i::dim1_
int psi::dfoccwave::Tensor2i::dim2_
std::string psi::dfoccwave::Tensor2i::name_

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