aimsdata 6.0.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.

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

◆ Tensor() [2/4]

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

Definition at line 55 of file tensor.h.

References _eigenvalue, _trieder, eigenvalue(), and trieder().

◆ Tensor() [3/4]

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

Definition at line 58 of file tensor.h.

References _coef, and coef().

◆ Tensor() [4/4]

Tensor::Tensor ( const Tensor & other)
inline

Definition at line 61 of file tensor.h.

References _coef, _eigenvalue, _trace, _trieder, and Tensor().

◆ ~Tensor()

virtual Tensor::~Tensor ( )
inlinevirtual

Definition at line 66 of file tensor.h.

Member Function Documentation

◆ coef() [1/2]

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

Definition at line 75 of file tensor.h.

References _coef.

◆ coef() [2/2]

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

Definition at line 74 of file tensor.h.

References _coef.

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

◆ diffusion()

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

Definition at line 101 of file tensor.h.

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

◆ dot()

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

Definition at line 113 of file tensor.h.

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

◆ eigenvalue() [1/2]

Point3df & Tensor::eigenvalue ( )
inline

Definition at line 72 of file tensor.h.

References _eigenvalue.

◆ eigenvalue() [2/2]

const Point3df & Tensor::eigenvalue ( ) const
inline

Definition at line 71 of file tensor.h.

References _eigenvalue.

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

◆ meanDiffusivity()

float Tensor::meanDiffusivity ( ) const
inline

Definition at line 125 of file tensor.h.

References coef().

Referenced by fractionalAniso(), and volumeRatio().

◆ trace() [1/2]

float & Tensor::trace ( )
inline

Definition at line 78 of file tensor.h.

References _trace.

◆ trace() [2/2]

const float & Tensor::trace ( ) const
inline

Definition at line 77 of file tensor.h.

References _trace.

Referenced by operator<<.

◆ trieder() [1/2]

Trieder & Tensor::trieder ( )
inline

Definition at line 69 of file tensor.h.

References _trieder.

◆ trieder() [2/2]

const Trieder & Tensor::trieder ( ) const
inline

Definition at line 68 of file tensor.h.

References _trieder.

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

Friends And Related Symbol Documentation

◆ operator<<

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

Definition at line 153 of file tensor.h.

References coef(), eigenvalue(), Tensor(), trace(), and trieder().

◆ operator==

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

Definition at line 132 of file tensor.h.

References coef(), eigenvalue(), Tensor(), and trieder().

Member Data Documentation

◆ _coef

AimsVector<float,6> Tensor::_coef
protected

Definition at line 95 of file tensor.h.

Referenced by coef(), coef(), diffusion(), Tensor(), and Tensor().

◆ _eigenvalue

Point3df Tensor::_eigenvalue
protected

Definition at line 94 of file tensor.h.

Referenced by eigenvalue(), eigenvalue(), Tensor(), and Tensor().

◆ _trace

float Tensor::_trace
protected

Definition at line 96 of file tensor.h.

Referenced by Tensor(), trace(), and trace().

◆ _trieder

Trieder Tensor::_trieder
protected

Definition at line 93 of file tensor.h.

Referenced by Tensor(), Tensor(), trieder(), and trieder().


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