1. Vector PETSc Double
Class VectorPetscDouble
(feelpp._alg.VectorPetscDouble
)
1.1. Methods
-
init(*args, **kwargs)
: Overloaded function.-
init()
. The vector created is empty. -
init(arg0: int, arg1: feelpp._core.WorldComm)
. The vector created has a sizearg0
. -
init(arg0: int, arg1: int, arg2: feelpp._core.WorldComm)
. The vector created has a global sizearg0
, and a local sizearg1
. -
init(arg0: feelpp._alg.DataMap, arg1: bool)
-
-
clear()
: clear PETSc vector -
size()
→int
: return PETSc Vector size -
vec()
→vec
: return a PETSc Vector that can be manipulated with funciton of the module petsc4py. The functions of this class can be found on the documentation of PETSc4py. -
zero()
: zero PETSc vector
2. Matrix PETSc Double
Class MatrixPetscDouble
(feelpp._alg.MatrixPetscDouble
). The methods of this class are similar to the previous class, the apply on matrices insted of vectors.
2.1. Methods
-
init(*args, **kwargs)
: Overloaded function.-
init(arg0: feelpp._core.WorldComm)
-
init(arg0: feelpp._alg.DataMap, arg1: feelpp._alg.DataMap)
-
init(arg1: feelpp._alg.DataMap, arg2: feelpp._core.WorldComm)
-
-
clear()
: clear PETSc matrix -
mat(…)
→mat
: return a PETSc sparse matrix. See the documentation. -
rowStart()
→int
: return PETSc Matrix row start. This method is usefull is the matrix is shared with many processors, as the following. -
rowStop()
→int
: return PETSc Matrix row stop -
size1()
→int
: return PETSc Matrix row size -
size2()
→int
: return PETSc Matrix column size -
shape()
→Tuple[int,int]
: return PETSc Matrix shape ((row size, column size)
) -
zero()
: zero PETSc matrix