petsc4py.typing.MatHtoolKernelFunction#
- petsc4py.typing.MatHtoolKernelFunction#
PETSc.MatMat.Type.HTOOLkernel callback.Callable with signature
kernel(sdim, M, N, rows, cols, v, ctx):sdim— spatial dimension of the coordinate spaceM— number of target (row) indicesN— number of source (column) indicesrows— target global indices, shape(M,)cols— source global indices, shape(N,)v— output submatrix, shape(M, N)in column-major order, to be filled by the callablectx— user-defined context passed toMat.createHtoolFromKernel
alias of
Callable[[int,int,int,ndarray[tuple[Any, …],dtype[integer]],ndarray[tuple[Any, …],dtype[integer]],ndarray[tuple[Any, …],dtype[floating|complexfloating]],Any],None]