NeoPZ
Public Member Functions | Protected Attributes | List of all members
TPZGenMatrix< TObj > Class Template Reference

Implements generic class which holds a matrix of objects. Matrix. More...

#include <pzshtmat.h>

Inheritance diagram for TPZGenMatrix< TObj >:
[legend]

Public Member Functions

 TPZGenMatrix ()
 Constructor creating Null matrix. More...
 
 TPZGenMatrix (const int64_t rows, const int64_t columns)
 Constructor creating a rows x columns matrix. More...
 
 TPZGenMatrix (const TPZGenMatrix &A)
 Constructor copy initializer. More...
 
 ~TPZGenMatrix ()
 
void Print (const char *mess, std::ostream &out=std::cout) const
 
int64_t Rows () const
 
int64_t Cols () const
 
void Resize (const int64_t newrow, const int64_t newcol)
 
TPZGenMatrix< TObj > & operator= (const TPZGenMatrix< TObj > &rval)
 
TObj & operator() (const int64_t row, const int64_t column=0) const
 

Protected Attributes

TObj * fMem
 Pointer to matrix. More...
 
int64_t fRows
 Number of rows and columns. More...
 
int64_t fCols
 

Detailed Description

template<class TObj>
class TPZGenMatrix< TObj >

Implements generic class which holds a matrix of objects. Matrix.

Definition at line 18 of file pzshtmat.h.

Constructor & Destructor Documentation

◆ TPZGenMatrix() [1/3]

template<class TObj >
TPZGenMatrix< TObj >::TPZGenMatrix ( )

Constructor creating Null matrix.

Definition at line 12 of file pzshtmat.cpp.

◆ TPZGenMatrix() [2/3]

template<class TObj >
TPZGenMatrix< TObj >::TPZGenMatrix ( const int64_t  rows,
const int64_t  columns 
)

Constructor creating a rows x columns matrix.

Definition at line 19 of file pzshtmat.cpp.

References TPZMatrix< TVar >::Rows().

◆ TPZGenMatrix() [3/3]

template<class TObj >
TPZGenMatrix< TObj >::TPZGenMatrix ( const TPZGenMatrix< TObj > &  A)

Constructor copy initializer.

Warning
***** WARNING ***** matrices created with copy initializer are always temporary, eg, they share the same storage with another matrix

Definition at line 35 of file pzshtmat.cpp.

References test::f, TPZGenMatrix< TObj >::fCols, TPZGenMatrix< TObj >::fMem, and TPZGenMatrix< TObj >::fRows.

◆ ~TPZGenMatrix()

template<class TObj >
TPZGenMatrix< TObj >::~TPZGenMatrix ( )

Definition at line 71 of file pzshtmat.cpp.

Member Function Documentation

◆ Cols()

template<class TObj>
int64_t TPZGenMatrix< TObj >::Cols ( ) const
inline

◆ operator()()

template<class TObj >
TObj & TPZGenMatrix< TObj >::operator() ( const int64_t  row,
const int64_t  column = 0 
) const

Definition at line 217 of file pzshtmat.cpp.

References DebugStop.

Referenced by TPZGenMatrix< TObj >::Cols().

◆ operator=()

template<class TObj >
TPZGenMatrix< TObj > & TPZGenMatrix< TObj >::operator= ( const TPZGenMatrix< TObj > &  rval)

◆ Print()

template<class TObj>
void TPZGenMatrix< TObj >::Print ( const char *  mess,
std::ostream &  out = std::cout 
) const

Definition at line 269 of file pzshtmat.cpp.

Referenced by TPZCompElHDiv< TSHAPE >::NConnectShapeF().

◆ Resize()

template<class TObj >
void TPZGenMatrix< TObj >::Resize ( const int64_t  newrow,
const int64_t  newcol 
)

Definition at line 54 of file pzshtmat.cpp.

References TPZMatrix< TVar >::Cols(), and TPZMatrix< TVar >::Rows().

Referenced by TPZGenMatrix< TObj >::Cols().

◆ Rows()

template<class TObj>
int64_t TPZGenMatrix< TObj >::Rows ( ) const
inline

Member Data Documentation

◆ fCols

template<class TObj>
int64_t TPZGenMatrix< TObj >::fCols
protected

◆ fMem

template<class TObj>
TObj* TPZGenMatrix< TObj >::fMem
protected

◆ fRows

template<class TObj>
int64_t TPZGenMatrix< TObj >::fRows
protected

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