Psi4
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_
 

Friends

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
inline
int psi::dfoccwave::Tensor2i::dim2 ( ) const
inline
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  )
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  )
void psi::dfoccwave::Tensor2i::zero_diagonal ( )

Friends And Related Function Documentation

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

Member Data Documentation

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

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