aimsdata  4.7.0
Neuroimaging data handling
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() [1/4]

Tensor::Tensor ( )
inline

Definition at line 54 of file tensor.h.

◆ Tensor() [2/4]

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

Definition at line 55 of file tensor.h.

◆ Tensor() [3/4]

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

Definition at line 58 of file tensor.h.

◆ Tensor() [4/4]

Tensor::Tensor ( const Tensor other)
inline

Definition at line 61 of file tensor.h.

◆ ~Tensor()

virtual Tensor::~Tensor ( )
inlinevirtual

Definition at line 66 of file tensor.h.

Member Function Documentation

◆ coef() [1/2]

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

Definition at line 74 of file tensor.h.

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

◆ coef() [2/2]

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

Definition at line 75 of file tensor.h.

◆ diffusion()

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

Definition at line 101 of file tensor.h.

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

◆ dot()

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

Definition at line 113 of file tensor.h.

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

◆ eigenvalue() [1/2]

const Point3df& Tensor::eigenvalue ( ) const
inline

Definition at line 71 of file tensor.h.

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

◆ eigenvalue() [2/2]

Point3df& Tensor::eigenvalue ( )
inline

Definition at line 72 of file tensor.h.

◆ meanDiffusivity()

float Tensor::meanDiffusivity ( ) const
inline

Definition at line 125 of file tensor.h.

Referenced by fractionalAniso(), and volumeRatio().

◆ trace() [1/2]

const float& Tensor::trace ( ) const
inline

Definition at line 77 of file tensor.h.

Referenced by operator<<().

◆ trace() [2/2]

float& Tensor::trace ( )
inline

Definition at line 78 of file tensor.h.

References operator<<(), and operator==().

◆ trieder() [1/2]

const Trieder& Tensor::trieder ( ) const
inline

Definition at line 68 of file tensor.h.

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

◆ trieder() [2/2]

Trieder& Tensor::trieder ( )
inline

Definition at line 69 of file tensor.h.

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 153 of file tensor.h.

◆ operator==

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

Definition at line 132 of file tensor.h.

Member Data Documentation

◆ _coef

AimsVector<float,6> Tensor::_coef
protected

Definition at line 95 of file tensor.h.

◆ _eigenvalue

Point3df Tensor::_eigenvalue
protected

Definition at line 94 of file tensor.h.

◆ _trace

float Tensor::_trace
protected

Definition at line 96 of file tensor.h.

◆ _trieder

Trieder Tensor::_trieder
protected

Definition at line 93 of file tensor.h.


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