Chombo + EB  3.2
Public Member Functions | Private Member Functions | Private Attributes | List of all members
RealTensor Class Reference

#include <RealTensor.H>

Public Member Functions

 RealTensor ()
 
 RealTensor (const RealTensor &a_rhs)
 
 ~RealTensor ()
 Destructor. More...
 
RealTensoroperator= (const RealTensor &a_rhs)
 Assignment operator. More...
 
Real operator() (int a_i, int a_j) const
 Returns the (i,j) component of this tensor. More...
 
Realoperator() (int a_i, int a_j)
 
Real det () const
 Computes the determinant of this tensor using cofactors. More...
 
RealTensor transpose () const
 Computes the transpose of this tensor. More...
 

Private Member Functions

Real recurDet (const Real *a_tensor, const int &a_size) const
 

Private Attributes

Real m_T [CH_SPACEDIM *CH_SPACEDIM]
 

Detailed Description

This class stores tensors that represent outer products of RealVects.

Constructor & Destructor Documentation

RealTensor::RealTensor ( )
inline

References m_T, and SpaceDim.

RealTensor::RealTensor ( const RealTensor a_rhs)
inline

References m_T, and SpaceDim.

RealTensor::~RealTensor ( )
inline

Destructor.

Member Function Documentation

RealTensor& RealTensor::operator= ( const RealTensor a_rhs)
inline

Assignment operator.

References m_T, and SpaceDim.

Real RealTensor::operator() ( int  a_i,
int  a_j 
) const
inline

Returns the (i,j) component of this tensor.

References m_T, and SpaceDim.

Real& RealTensor::operator() ( int  a_i,
int  a_j 
)
inline

References m_T, and SpaceDim.

Real RealTensor::det ( ) const
inline

Computes the determinant of this tensor using cofactors.

References m_T, recurDet(), and SpaceDim.

RealTensor RealTensor::transpose ( ) const
inline

Computes the transpose of this tensor.

Real RealTensor::recurDet ( const Real a_tensor,
const int &  a_size 
) const
inlineprivate

References sign().

Referenced by det().

Member Data Documentation

Real RealTensor::m_T[CH_SPACEDIM *CH_SPACEDIM]
private

Referenced by det(), operator()(), operator=(), and RealTensor().


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