VMTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkvmtkDoubleVector Class Reference

Base class for vectors utilized in finite-element and other PDE evaluations. More...

#include <vtkvmtkDoubleVector.h>

Inheritance diagram for vtkvmtkDoubleVector:
[legend]
Collaboration diagram for vtkvmtkDoubleVector:
[legend]

Public Types

typedef vtkObject Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkvmtkDoubleVectorNewInstance () const
 
virtual void SetNormType (int)
 
virtual int GetNormType ()
 
void SetNormTypeToL2 ()
 
void SetNormTypeToLInf ()
 
virtual vtkIdType GetNumberOfElements ()
 
virtual vtkIdType GetNumberOfElementsPerVariable ()
 
virtual vtkIdType GetNumberOfVariables ()
 
void Allocate (vtkIdType numberOfElementsPerVariable, vtkIdType numberOfVariables=1)
 
void Fill (double value)
 
void Assign (vtkvmtkDoubleVector *src)
 
void Assign (vtkIdType numberOfElements, const double *array)
 
double GetElement (vtkIdType i)
 
void SetElement (vtkIdType i, double value)
 
void AddElement (vtkIdType i, double value)
 
const double * GetArray ()
 
void CopyIntoArrayComponent (vtkDataArray *array, int component)
 
void CopyVariableIntoArrayComponent (vtkDataArray *array, int variable, int component)
 
double ComputeNorm ()
 
void Add (vtkvmtkDoubleVector *vectorToAdd)
 
void Subtract (vtkvmtkDoubleVector *vectorToSubtract)
 
void MultiplyBy (double scalar)
 
double Dot (vtkvmtkDoubleVector *vectorToDotWith)
 
void DeepCopy (vtkvmtkDoubleVector *src)
 

Static Public Member Functions

static vtkvmtkDoubleVectorNew ()
 
static int IsTypeOf (const char *type)
 
static vtkvmtkDoubleVectorSafeDownCast (vtkObjectBase *o)
 

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkvmtkDoubleVector ()
 
 ~vtkvmtkDoubleVector ()
 

Protected Attributes

vtkIdType NumberOfElements
 
vtkIdType NumberOfElementsPerVariable
 
vtkIdType NumberOfVariables
 
int NormType
 
double * Array
 

Detailed Description

Base class for vectors utilized in finite-element and other PDE evaluations.

Date
2006/04/06 16:46:43
Revision
1.3

..

Definition at line 39 of file vtkvmtkDoubleVector.h.

Member Typedef Documentation

◆ Superclass

Definition at line 44 of file vtkvmtkDoubleVector.h.

Constructor & Destructor Documentation

◆ vtkvmtkDoubleVector()

vtkvmtkDoubleVector::vtkvmtkDoubleVector ( )
protected

◆ ~vtkvmtkDoubleVector()

vtkvmtkDoubleVector::~vtkvmtkDoubleVector ( )
protected

Member Function Documentation

◆ New()

static vtkvmtkDoubleVector* vtkvmtkDoubleVector::New ( )
static

◆ IsTypeOf()

static int vtkvmtkDoubleVector::IsTypeOf ( const char *  type)
static

◆ IsA()

virtual int vtkvmtkDoubleVector::IsA ( const char *  type)
virtual

◆ SafeDownCast()

static vtkvmtkDoubleVector* vtkvmtkDoubleVector::SafeDownCast ( vtkObjectBase *  o)
static

◆ NewInstanceInternal()

virtual vtkObjectBase* vtkvmtkDoubleVector::NewInstanceInternal ( ) const
protectedvirtual

◆ NewInstance()

vtkvmtkDoubleVector* vtkvmtkDoubleVector::NewInstance ( ) const

◆ SetNormType()

virtual void vtkvmtkDoubleVector::SetNormType ( int  )
virtual

◆ GetNormType()

virtual int vtkvmtkDoubleVector::GetNormType ( )
virtual

◆ SetNormTypeToL2()

void vtkvmtkDoubleVector::SetNormTypeToL2 ( )
inline

Definition at line 48 of file vtkvmtkDoubleVector.h.

49  {this->SetNormType(VTK_VMTK_L2_NORM);};
#define VTK_VMTK_L2_NORM
virtual void SetNormType(int)

◆ SetNormTypeToLInf()

void vtkvmtkDoubleVector::SetNormTypeToLInf ( )
inline

Definition at line 50 of file vtkvmtkDoubleVector.h.

virtual void SetNormType(int)
#define VTK_VMTK_LINF_NORM

◆ GetNumberOfElements()

virtual vtkIdType vtkvmtkDoubleVector::GetNumberOfElements ( )
virtual

◆ GetNumberOfElementsPerVariable()

virtual vtkIdType vtkvmtkDoubleVector::GetNumberOfElementsPerVariable ( )
virtual

◆ GetNumberOfVariables()

virtual vtkIdType vtkvmtkDoubleVector::GetNumberOfVariables ( )
virtual

◆ Allocate()

void vtkvmtkDoubleVector::Allocate ( vtkIdType  numberOfElementsPerVariable,
vtkIdType  numberOfVariables = 1 
)

◆ Fill()

void vtkvmtkDoubleVector::Fill ( double  value)

◆ Assign() [1/2]

void vtkvmtkDoubleVector::Assign ( vtkvmtkDoubleVector src)

◆ Assign() [2/2]

void vtkvmtkDoubleVector::Assign ( vtkIdType  numberOfElements,
const double *  array 
)

◆ GetElement()

double vtkvmtkDoubleVector::GetElement ( vtkIdType  i)
inline

Definition at line 62 of file vtkvmtkDoubleVector.h.

62 {return this->Array[i];};

◆ SetElement()

void vtkvmtkDoubleVector::SetElement ( vtkIdType  i,
double  value 
)
inline

Definition at line 63 of file vtkvmtkDoubleVector.h.

63 {this->Array[i] = value;};

◆ AddElement()

void vtkvmtkDoubleVector::AddElement ( vtkIdType  i,
double  value 
)
inline

Definition at line 64 of file vtkvmtkDoubleVector.h.

64 {this->Array[i] += value;};

◆ GetArray()

const double* vtkvmtkDoubleVector::GetArray ( )
inline

Definition at line 70 of file vtkvmtkDoubleVector.h.

70 {return this->Array;};

◆ CopyIntoArrayComponent()

void vtkvmtkDoubleVector::CopyIntoArrayComponent ( vtkDataArray *  array,
int  component 
)

◆ CopyVariableIntoArrayComponent()

void vtkvmtkDoubleVector::CopyVariableIntoArrayComponent ( vtkDataArray *  array,
int  variable,
int  component 
)

◆ ComputeNorm()

double vtkvmtkDoubleVector::ComputeNorm ( )

◆ Add()

void vtkvmtkDoubleVector::Add ( vtkvmtkDoubleVector vectorToAdd)

◆ Subtract()

void vtkvmtkDoubleVector::Subtract ( vtkvmtkDoubleVector vectorToSubtract)

◆ MultiplyBy()

void vtkvmtkDoubleVector::MultiplyBy ( double  scalar)

◆ Dot()

double vtkvmtkDoubleVector::Dot ( vtkvmtkDoubleVector vectorToDotWith)

◆ DeepCopy()

void vtkvmtkDoubleVector::DeepCopy ( vtkvmtkDoubleVector src)

Member Data Documentation

◆ NumberOfElements

vtkIdType vtkvmtkDoubleVector::NumberOfElements
protected

Definition at line 86 of file vtkvmtkDoubleVector.h.

◆ NumberOfElementsPerVariable

vtkIdType vtkvmtkDoubleVector::NumberOfElementsPerVariable
protected

Definition at line 87 of file vtkvmtkDoubleVector.h.

◆ NumberOfVariables

vtkIdType vtkvmtkDoubleVector::NumberOfVariables
protected

Definition at line 88 of file vtkvmtkDoubleVector.h.

◆ NormType

int vtkvmtkDoubleVector::NormType
protected

Definition at line 90 of file vtkvmtkDoubleVector.h.

◆ Array

double* vtkvmtkDoubleVector::Array
protected

Definition at line 92 of file vtkvmtkDoubleVector.h.


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