Note
The documentation on this page was automatically extracted from the DOLFIN C++ code and may need to be edited or expanded.
Parent class(es)
This class provides a simple vector class based on PETSc. It is a simple wrapper for a PETSc vector pointer (Vec) implementing the GenericVector interface.
The interface is intentionally simple. For advanced usage, access the PETSc Vec pointer using the function vec() and use the standard PETSc interface.
Create empty vector
Create vector of size N
Create vector
Copy constructor
Create vector wrapper of PETSc Vec pointer
Set all entries to zero and keep any sparse structure
Finalize assembly of tensor
Return MPI communicator
Return informal string representation (pretty-print)
Return copy of vector
Initialize vector to global size N
Initialize vector with given ownership range
Initialize vector with given ownership range and with ghost values
Return true if vector is empty
Return size of vector
Return local size of vector
Return ownership range of a vector
Determine whether global vector index is owned by this process
Get block of values using global indices (all values must be owned by local process, ghosts cannot be accessed)
Get block of values using local indices
Set block of values using global indices
Set block of values using local indices
Add block of values using global indices
Add block of values using local indices
Get all values on local process
Set all values on local process
Add values to each entry on local process
Gather vector entries into a local vector
Gather entries into x
Gather all entries into x on process 0
Add multiple of given vector (AXPY operation)
Replace all entries in the vector by their absolute values
Return inner product with given vector
Return norm of vector
Return minimum value of vector
Return maximum value of vector
Return sum of values of vector
Return sum of selected rows in vector
Multiply vector by given number
Multiply vector by another vector pointwise
Divide vector by given number
Add given vector
Add number to all components of a vector
Subtract given vector
Subtract number from all components of a vector
Assignment operator
Assignment operator
Return linear algebra backend factory
Sets the prefix used by PETSc when searching the options database
Returns the prefix used by PETSc when searching the options database
Return pointer to PETSc Vec object
Assignment operator