Documentation for vtkTensor

vtkTensor - supporting class to enable assignment and referencing of tensors

Super Class: vtkObject

Description:

vtkTensor is a floating point representation of an nxn tensor. vtkTensor provides methods for assignment and reference of tensor components. It does it in such a way as to minimize data copying.

 

Caveats:

vtkTensor performs its operations using pointer reference. You are responsible for supplying data storage (if necessary) if local copies of data are being made.

 

Methods:

void vtkTensor ()
static vtkTensor *New ()
const char *GetClassName ()
void Initialize ()
float GetComponent (int ,int )
void SetComponent (int ,int ,float )
void AddComponent (int ,int ,float )
float *GetColumn (int )
void DeepCopy (vtkTensor *)
void DeepCopy (vtkTensor &)

 

Detailed Method Descriptions:

Initialize tensor components to 0.0.

void Initialize ()

Get the tensor component (i,j).

float GetComponent (int ,int )

Set the value of the tensor component (i,j).

void SetComponent (int ,int ,float )

Add to the value of the tensor component at location (i,j).

void AddComponent (int ,int ,float )

Return column vector from tensor. (Assumes 2D matrix form and 0-offset.)

float *GetColumn (int )

Deep copy of one tensor to another tensor.

void DeepCopy (vtkTensor *)

For legacy compatibility. Do not use.

void DeepCopy (vtkTensor &)