Chombo + EB + MF  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() [1/2]

RealTensor::RealTensor ( )
inline

References m_T, and SpaceDim.

◆ RealTensor() [2/2]

RealTensor::RealTensor ( const RealTensor a_rhs)
inline

References m_T, and SpaceDim.

◆ ~RealTensor()

RealTensor::~RealTensor ( )
inline

Destructor.

Member Function Documentation

◆ operator=()

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

Assignment operator.

References m_T, and SpaceDim.

◆ operator()() [1/2]

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

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

References m_T, and SpaceDim.

◆ operator()() [2/2]

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

References m_T, and SpaceDim.

◆ det()

Real RealTensor::det ( ) const
inline

Computes the determinant of this tensor using cofactors.

References m_T, recurDet(), and SpaceDim.

◆ transpose()

RealTensor RealTensor::transpose ( ) const
inline

Computes the transpose of this tensor.

◆ recurDet()

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

References sign().

Referenced by det().

Member Data Documentation

◆ m_T

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: