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

Class for constructing sparse matrices from a dataset and performing basic mathematical operations on it. More...

#include <vtkvmtkSparseMatrix.h>

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

Public Types

typedef vtkObject Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkvmtkSparseMatrixNewInstance () const
 
void Multiply (vtkvmtkDoubleVector *x, vtkvmtkDoubleVector *y)
 
void TransposeMultiply (vtkvmtkDoubleVector *x, vtkvmtkDoubleVector *y)
 
vtkvmtkSparseMatrixRowGetRow (vtkIdType i)
 
virtual vtkIdType GetNumberOfRows ()
 
void CopyRowsFromStencils (vtkvmtkStencils *stencils)
 
void AllocateRowsFromNeighborhoods (vtkvmtkNeighborhoods *neighborhoods, int numberOfVariables=1)
 
void AllocateRowsFromDataSet (vtkDataSet *dataSet, int numberOfVariables=1)
 
void Initialize ()
 
void SetNumberOfRows (vtkIdType numberOfRows)
 
double GetElement (vtkIdType i, vtkIdType j)
 
void SetElement (vtkIdType i, vtkIdType j, double value)
 
void AddElement (vtkIdType i, vtkIdType j, double value)
 
void DeepCopy (vtkvmtkSparseMatrix *src)
 

Static Public Member Functions

static vtkvmtkSparseMatrixNew ()
 
static int IsTypeOf (const char *type)
 
static vtkvmtkSparseMatrixSafeDownCast (vtkObjectBase *o)
 

Protected Member Functions

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

Protected Attributes

vtkvmtkSparseMatrixRow ** Array
 
vtkIdType NumberOfRows
 

Detailed Description

Class for constructing sparse matrices from a dataset and performing basic mathematical operations on it.

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

..

Definition at line 39 of file vtkvmtkSparseMatrix.h.

Member Typedef Documentation

◆ Superclass

Definition at line 44 of file vtkvmtkSparseMatrix.h.

Constructor & Destructor Documentation

◆ vtkvmtkSparseMatrix()

vtkvmtkSparseMatrix::vtkvmtkSparseMatrix ( )
protected

◆ ~vtkvmtkSparseMatrix()

vtkvmtkSparseMatrix::~vtkvmtkSparseMatrix ( )
protected

Member Function Documentation

◆ New()

static vtkvmtkSparseMatrix* vtkvmtkSparseMatrix::New ( )
static

◆ IsTypeOf()

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

◆ IsA()

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

◆ SafeDownCast()

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

◆ NewInstanceInternal()

virtual vtkObjectBase* vtkvmtkSparseMatrix::NewInstanceInternal ( ) const
protectedvirtual

◆ NewInstance()

vtkvmtkSparseMatrix* vtkvmtkSparseMatrix::NewInstance ( ) const

◆ Multiply()

void vtkvmtkSparseMatrix::Multiply ( vtkvmtkDoubleVector x,
vtkvmtkDoubleVector y 
)

◆ TransposeMultiply()

void vtkvmtkSparseMatrix::TransposeMultiply ( vtkvmtkDoubleVector x,
vtkvmtkDoubleVector y 
)

◆ GetRow()

vtkvmtkSparseMatrixRow* vtkvmtkSparseMatrix::GetRow ( vtkIdType  i)
inline

Get a row given a row id.

Definition at line 50 of file vtkvmtkSparseMatrix.h.

50 { return this->Array[i]; }
vtkvmtkSparseMatrixRow ** Array

◆ GetNumberOfRows()

virtual vtkIdType vtkvmtkSparseMatrix::GetNumberOfRows ( )
virtual

◆ CopyRowsFromStencils()

void vtkvmtkSparseMatrix::CopyRowsFromStencils ( vtkvmtkStencils stencils)

◆ AllocateRowsFromNeighborhoods()

void vtkvmtkSparseMatrix::AllocateRowsFromNeighborhoods ( vtkvmtkNeighborhoods neighborhoods,
int  numberOfVariables = 1 
)

◆ AllocateRowsFromDataSet()

void vtkvmtkSparseMatrix::AllocateRowsFromDataSet ( vtkDataSet *  dataSet,
int  numberOfVariables = 1 
)

◆ Initialize()

void vtkvmtkSparseMatrix::Initialize ( )

◆ SetNumberOfRows()

void vtkvmtkSparseMatrix::SetNumberOfRows ( vtkIdType  numberOfRows)

◆ GetElement()

double vtkvmtkSparseMatrix::GetElement ( vtkIdType  i,
vtkIdType  j 
)

◆ SetElement()

void vtkvmtkSparseMatrix::SetElement ( vtkIdType  i,
vtkIdType  j,
double  value 
)

◆ AddElement()

void vtkvmtkSparseMatrix::AddElement ( vtkIdType  i,
vtkIdType  j,
double  value 
)

◆ DeepCopy()

void vtkvmtkSparseMatrix::DeepCopy ( vtkvmtkSparseMatrix src)

Member Data Documentation

◆ Array

vtkvmtkSparseMatrixRow** vtkvmtkSparseMatrix::Array
protected

Definition at line 70 of file vtkvmtkSparseMatrix.h.

◆ NumberOfRows

vtkIdType vtkvmtkSparseMatrix::NumberOfRows
protected

Definition at line 71 of file vtkvmtkSparseMatrix.h.


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