petsc4py.PETSc.Vec

Package petsc4py :: Module PETSc :: Class Vec |
[hide private]
[frames] | no frames]

# Class Vec

Nested Classes | [hide private]
| Option
| Type

Instance Methods | [hide private]
__abs__() <==> abs(x) |
__add__(y) x+y |
__delitem__(y) del x[y] |
__div__(y) x/y |
__enter__(self) |
__exit__(self, *exc) |
__getitem__(y) x[y] |
__iadd__(y) x+=y |
__idiv__(y) x/=y |
__imul__(y) x*=y |
__isub__(y) x-=y |
__itruediv__(y) x/=y |
__mul__(y) x*y |
__neg__() -x |
a new object with type S, a subtype of T |
__new__(S, ...) |
__pos__() +x |
__radd__(y) y+x |
__rdiv__(y) y/x |
__rmul__(y) y*x |
__rsub__(y) y-x |
__rtruediv__(y) y/x |
__setitem__(i, y) x[i]=y |
__sub__(y) x-y |
__truediv__(y) x/y |
abs(self) |
assemble(self) |
assemblyBegin(self) |
assemblyEnd(self) |
axpby(self, alpha, beta, Vec y) |
axpy(self, alpha, Vec x) |
aypx(self, alpha, Vec x) |
chop(self, tol) |
conjugate(self) |
copy(self, Vec result=None) |
create(self, comm=None) |
createGhost(self, ghosts, size, bsize=None, comm=None) |
createGhostWithArray(self, ghosts, array, size=None, bsize=None, comm=None) |
createMPI(self, size, bsize=None, comm=None) |
createNest(self, vecs, isets=None, comm=None) |
createSeq(self, size, bsize=None, comm=None) |
createShared(self, size, bsize=None, comm=None) |
createWithArray(self, array, size=None, bsize=None, comm=None) |
destroy(self) |
dot(self, Vec vec) |
dotBegin(self, Vec vec) |
dotEnd(self, Vec vec) |
duplicate(self, array=None) |
equal(self, Vec vec) |
exp(self) |
getArray(self, readonly=False) |
getBlockSize(self) |
getBuffer(self, readonly=False) |
getCUDAHandle(self, mode=None) |
getLocalSize(self) |
getNestSubVecs(self) |
getOptionsPrefix(self) |
getOwnershipRange(self) |
getOwnershipRanges(self) |
getSize(self) |
getSizes(self) |
getSubVector(self, IS iset, Vec subvec=None) |
getType(self) |
getValue(self, index) |
getValues(self, indices, values=None) |
ghostUpdate(self, addv=None, mode=None) |
ghostUpdateBegin(self, addv=None, mode=None) |
ghostUpdateEnd(self, addv=None, mode=None) |
isaxpy(self, IS idx, alpha, Vec x) |
isset(self, IS idx, alpha) |
load(self, Viewer viewer) |
localForm(self) Intended for use in context manager: |
log(self) |
mDot(self, vecs, out=None) |
mDotBegin(self, vecs, out=None) |
mDotEnd(self, vecs, out=None) |
max(self) |
maxPointwiseDivide(self, Vec vec) |
maxpy(self, alphas, vecs) |
min(self) |
mtDot(self, vecs, out=None) |
mtDotBegin(self, vecs, out=None) |
mtDotEnd(self, vecs, out=None) |
norm(self, norm_type=None) |
normBegin(self, norm_type=None) |
normEnd(self, norm_type=None) |
normalize(self) |
permute(self, IS order, invert=False) |
placeArray(self, array) |
pointwiseDivide(self, Vec x, Vec y) |
pointwiseMax(self, Vec x, Vec y) |
pointwiseMaxAbs(self, Vec x, Vec y) |
pointwiseMin(self, Vec x, Vec y) |
pointwiseMult(self, Vec x, Vec y) |
reciprocal(self) |
resetArray(self, force=False) |
restoreCUDAHandle(self, handle, mode='rw') |
restoreSubVector(self, IS iset, Vec subvec) |
scale(self, alpha) |
set(self, alpha) |
setArray(self, array) |
setBlockSize(self, bsize) |
setFromOptions(self) |
setLGMap(self, LGMap lgmap) |
setMPIGhost(self, ghosts) Alternative to createGhost() |
setNestSubVecs(self, sx, idxm=None) |
setOption(self, option, flag) |
setOptionsPrefix(self, prefix) |
setRandom(self, Random random=None) |
setSizes(self, size, bsize=None) |
setType(self, vec_type) |
setUp(self) |
setValue(self, index, value, addv=None) |
setValueLocal(self, index, value, addv=None) |
setValues(self, indices, values, addv=None) |
setValuesBlocked(self, indices, values, addv=None) |
setValuesBlockedLocal(self, indices, values, addv=None) |
setValuesLocal(self, indices, values, addv=None) |
shift(self, alpha) |
sqrtabs(self) |
strideGather(self, field, Vec vec, addv=None) |
strideMax(self, field) |
strideMin(self, field) |
strideNorm(self, field, norm_type=None) |
strideScale(self, field, alpha) |
strideScatter(self, field, Vec vec, addv=None) |
strideSum(self, field) |
sum(self) |
swap(self, Vec vec) |
tDot(self, Vec vec) |
tDotBegin(self, Vec vec) |
tDotEnd(self, Vec vec) |
view(self, Viewer viewer=None) |
waxpy(self, alpha, Vec x, Vec y) |
zeroEntries(self) |
Inherited from `Object`: `__copy__`, `__deepcopy__`, `__eq__`, `__ge__`, `__gt__`, `__le__`, `__lt__`, `__ne__`, `__nonzero__`, `compose`, `decRef`, `getAttr`, `getClassId`, `getClassName`, `getComm`, `getDict`, `getName`, `getRefCount`, `getTabLevel`, `incRef`, `incrementTabLevel`, `query`, `setAttr`, `setName`, `setTabLevel`, `stateIncrease` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__init__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Properties | [hide private]
| __array_interface__
| array
| array_r Vec array (read-only)
| array_w Vec array (writable)
| block_size
| buffer
| buffer_r Vec buffer (read-only)
| buffer_w Vec buffer (writable)
| local_size
| owner_range
| owner_ranges
| size
| sizes
Inherited from `Object`: `classid`, `comm`, `fortran`, `handle`, `klass`, `name`, `prefix`, `refcount`, `type` Inherited from `object`: `__class__`

Method Details | [hide private]

### __new__(S, ...) |
Returns: a new object with type S, a subtype of T Overrides: object.__new__

### destroy(self) |
Overrides: Object.destroy

### getOptionsPrefix(self) |
Overrides: Object.getOptionsPrefix

### getType(self) |
Overrides: Object.getType

### setFromOptions(self) |
Overrides: Object.setFromOptions

### setOptionsPrefix(self, prefix) |
Overrides: Object.setOptionsPrefix

### view(self, Viewer viewer=None) |
Overrides: Object.view