RealTensor Class Reference

#include <RealTensor.H>

List of all members.


Detailed Description

This class stores tensors that represent outer products of RealVects.

Public Member Functions

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

Private Member Functions

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

Private Attributes

Real m_T [CH_SPACEDIM *CH_SPACEDIM]

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 [inline, private]

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:

Generated on Fri Apr 5 04:25:16 2019 for Chombo + EB by  doxygen 1.5.5