28 #ifndef __vtkvmtkDoubleVector_h 29 #define __vtkvmtkDoubleVector_h 31 #include "vtkObject.h" 32 #include "vtkDataArray.h" 34 #include "vtkvmtkWin32Header.h" 36 #define VTK_VMTK_L2_NORM 0 37 #define VTK_VMTK_LINF_NORM 1 46 vtkSetMacro(NormType,
int);
47 vtkGetMacro(NormType,
int);
53 vtkGetMacro(NumberOfElements,vtkIdType);
54 vtkGetMacro(NumberOfElementsPerVariable,vtkIdType);
55 vtkGetMacro(NumberOfVariables,vtkIdType);
57 void Allocate(vtkIdType numberOfElementsPerVariable, vtkIdType numberOfVariables=1);
58 void Fill(
double value);
60 void Assign(vtkIdType numberOfElements,
const double *array);
63 void SetElement(vtkIdType i,
double value) {this->Array[i] = value;};
64 void AddElement(vtkIdType i,
double value) {this->Array[i] += value;};
70 const double*
GetArray() {
return this->Array;};
71 void CopyIntoArrayComponent(vtkDataArray *array,
int component);
72 void CopyVariableIntoArrayComponent(vtkDataArray *array,
int variable,
int component);
77 void MultiplyBy(
double scalar);
Base class for vectors utilized in finite-element and other PDE evaluations.
vtkIdType NumberOfElements
void AddElement(vtkIdType i, double value)
void SetElement(vtkIdType i, double value)
vtkIdType NumberOfVariables
const double * GetArray()
vtkIdType NumberOfElementsPerVariable
#define VTK_VMTK_LINF_NORM
double GetElement(vtkIdType i)