EpetraVector Class Reference

#include <epetra.h>

Inherits Vector.

List of all members.

Public Member Functions

 EpetraVector ()
virtual ~EpetraVector ()
virtual void alloc (int ndofs)
 allocate memory for storing ndofs elements
virtual void free ()
 free the memory
virtual scalar get (int idx)
 Get the value from a position.
virtual void extract (scalar *v) const
 Extract vector values into user-provided array.
virtual void zero ()
 Zero the vector.
virtual void set (int idx, scalar y)
 set the entry on a specified position
virtual void add (int idx, scalar y)
 update element on the specified position
virtual void add (int n, int *idx, scalar *y)
 update subset of the elements
virtual bool dump (FILE *file, const char *var_name, EMatrixDumpFormat fmt=DF_MATLAB_SPARSE)

Friends

class AmesosSolver
class AztecOOSolver
class NoxSolver

Constructor & Destructor Documentation

EpetraVector::EpetraVector (  ) 
EpetraVector::~EpetraVector (  )  [virtual]

Member Function Documentation

void EpetraVector::add ( int  n,
int *  idx,
scalar y 
) [virtual]

update subset of the elements

Parameters:
[in] n - number of positions to update
[in] idx - indices where to update
[in] y - values

Implements Vector.

void EpetraVector::add ( int  idx,
scalar  y 
) [virtual]

update element on the specified position

Parameters:
[in] idx - indices where to update
[in] y - value

Implements Vector.

void EpetraVector::alloc ( int  ndofs  )  [virtual]

allocate memory for storing ndofs elements

Parameters:
[in] ndofs - number of elements of the vector

Implements Vector.

bool EpetraVector::dump ( FILE *  file,
const char *  var_name,
EMatrixDumpFormat  fmt = DF_MATLAB_SPARSE 
) [virtual]

Implements Vector.

virtual void EpetraVector::extract ( scalar v  )  const [inline, virtual]

Extract vector values into user-provided array.

Parameters:
[out] v - array which will contain extracted values

Implements Vector.

void EpetraVector::free (  )  [virtual]

free the memory

Implements Vector.

virtual scalar EpetraVector::get ( int  idx  )  [inline, virtual]

Get the value from a position.

Returns:
the value form the specified index
Parameters:
[in] idx - index which to obtain the value from

Implements Vector.

void EpetraVector::set ( int  idx,
scalar  y 
) [virtual]

set the entry on a specified position

Parameters:
[in] idx - indices where to update
[in] y - value

Implements Vector.

void EpetraVector::zero (  )  [virtual]

Zero the vector.

Implements Vector.


Friends And Related Function Documentation

friend class AmesosSolver [friend]
friend class AztecOOSolver [friend]
friend class NoxSolver [friend]

The documentation for this class was generated from the following files:
Generated on Fri Sep 3 09:22:20 2010 for Hermes3D Library: Real Version by  doxygen 1.6.3