A.I.M.S


Tensor Class Reference

#include <aims/math/tensor.h>

Collaboration diagram for Tensor:

Public Member Functions

 Tensor ()
 
 Tensor (const Trieder &trieder, const Point3df &eigenvalue)
 
 Tensor (const AimsVector< float, 6 > &coef)
 
 Tensor (const Tensor &other)
 
virtual ~Tensor ()
 
const Triedertrieder () const
 
Triedertrieder ()
 
const Point3dfeigenvalue () const
 
Point3dfeigenvalue ()
 
const AimsVector< float, 6 > & coef () const
 
AimsVector< float, 6 > & coef ()
 
const float & trace () const
 
float & trace ()
 
float diffusion (const Point3df &dir) const
 
float meanDiffusivity () const
 
float dot (const Tensor &other) const
 

Protected Attributes

Trieder _trieder
 
Point3df _eigenvalue
 
AimsVector< float, 6 > _coef
 
float _trace
 

Friends

int operator== (const Tensor &thing1, const Tensor &thing2)
 
std::ostream & operator<< (std::ostream &os, const Tensor &thing)
 

Detailed Description

Definition at line 51 of file tensor.h.

Constructor & Destructor Documentation

Tensor::Tensor ( )
inline

Definition at line 54 of file tensor.h.

Tensor::Tensor ( const Trieder trieder,
const Point3df eigenvalue 
)
inline

Definition at line 55 of file tensor.h.

Tensor::Tensor ( const AimsVector< float, 6 > &  coef)
inline

Definition at line 58 of file tensor.h.

Tensor::Tensor ( const Tensor other)
inline

Definition at line 61 of file tensor.h.

virtual Tensor::~Tensor ( )
inlinevirtual

Definition at line 66 of file tensor.h.

Member Function Documentation

const AimsVector<float,6>& Tensor::coef ( ) const
inline

Definition at line 74 of file tensor.h.

Referenced by dot(), fractionalAniso(), meanDiffusivity(), norm(), operator<<(), operator==(), and volumeRatio().

AimsVector<float,6>& Tensor::coef ( )
inline

Definition at line 75 of file tensor.h.

float Tensor::diffusion ( const Point3df dir) const
inline

Definition at line 101 of file tensor.h.

References _coef, and AimsVector< T, D >::item().

float Tensor::dot ( const Tensor other) const
inline

Definition at line 113 of file tensor.h.

References coef(), and AimsVector< T, D >::item().

const Point3df& Tensor::eigenvalue ( ) const
inline

Definition at line 71 of file tensor.h.

Referenced by operator<<(), and operator==().

Point3df& Tensor::eigenvalue ( )
inline

Definition at line 72 of file tensor.h.

float Tensor::meanDiffusivity ( ) const
inline

Definition at line 125 of file tensor.h.

References coef().

Referenced by fractionalAniso(), and volumeRatio().

const float& Tensor::trace ( ) const
inline

Definition at line 77 of file tensor.h.

Referenced by operator<<().

float& Tensor::trace ( )
inline

Definition at line 78 of file tensor.h.

const Trieder& Tensor::trieder ( ) const
inline

Definition at line 68 of file tensor.h.

Referenced by operator<<(), and operator==().

Trieder& Tensor::trieder ( )
inline

Definition at line 69 of file tensor.h.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const Tensor thing 
)
friend

Definition at line 153 of file tensor.h.

int operator== ( const Tensor thing1,
const Tensor thing2 
)
friend

Definition at line 132 of file tensor.h.

Member Data Documentation

AimsVector<float,6> Tensor::_coef
protected

Definition at line 95 of file tensor.h.

Referenced by diffusion().

Point3df Tensor::_eigenvalue
protected

Definition at line 94 of file tensor.h.

float Tensor::_trace
protected

Definition at line 96 of file tensor.h.

Trieder Tensor::_trieder
protected

Definition at line 93 of file tensor.h.


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