Home
last modified time | relevance | path

Searched defs:mat (Results 1 – 25 of 218) sorted by relevance

123456789

/petsc/src/mat/impls/shell/ftn-custom/
H A Dzshellf.c46 static PetscErrorCode ourmult(Mat mat, Vec x, Vec y) in ourmult()
52 static PetscErrorCode ourmultadd(Mat mat, Vec x, Vec y, Vec z) in ourmultadd()
58 static PetscErrorCode ourmulttranspose(Mat mat, Vec x, Vec y) in ourmulttranspose()
64 static PetscErrorCode ourmulthermitiantranspose(Mat mat, Vec x, Vec y) in ourmulthermitiantranspose()
70 static PetscErrorCode ourmulttransposeadd(Mat mat, Vec x, Vec y, Vec z) in ourmulttransposeadd()
76 static PetscErrorCode ourmulthermitiantransposeadd(Mat mat, Vec x, Vec y, Vec z) in ourmulthermitiantransposeadd()
82 static PetscErrorCode oursor(Mat mat, Vec b, PetscReal omega, MatSORType flg, PetscReal shift, Pets… in oursor()
90 static PetscErrorCode ourtranspose(Mat mat, MatReuse reuse, Mat *B) in ourtranspose()
99 static PetscErrorCode ourgetdiagonal(Mat mat, Vec x) in ourgetdiagonal()
105 static PetscErrorCode ourdiagonalscale(Mat mat, Vec l, Vec r) in ourdiagonalscale()
[all …]
/petsc/src/tao/matrix/
H A Dsubmatfree.c28 PetscErrorCode MatCreateSubMatrixFree(Mat mat, IS Rows, IS Cols, Mat *J) in MatCreateSubMatrixFree()
67 PetscErrorCode MatSMFResetRowColumn(Mat mat, IS Rows, IS Cols) in MatSMFResetRowColumn()
82 PetscErrorCode MatMult_SMF(Mat mat, Vec a, Vec y) in MatMult_SMF()
95 PetscErrorCode MatMultTranspose_SMF(Mat mat, Vec a, Vec y) in MatMultTranspose_SMF()
118 PetscErrorCode MatDestroy_SMF(Mat mat) in MatDestroy_SMF()
132 PetscErrorCode MatView_SMF(Mat mat, PetscViewer viewer) in MatView_SMF()
152 PetscErrorCode MatDuplicate_SMF(Mat mat, MatDuplicateOption op, Mat *M) in MatDuplicate_SMF()
185 PetscErrorCode MatScale_SMF(Mat mat, PetscReal a) in MatScale_SMF()
195 PetscErrorCode MatTranspose_SMF(Mat mat, Mat *B) in MatTranspose_SMF()
202 PetscErrorCode MatGetDiagonal_SMF(Mat mat, Vec v) in MatGetDiagonal_SMF()
[all …]
H A Dadamat.c16 static PetscErrorCode MatMult_ADA(Mat mat, Vec a, Vec y) in MatMult_ADA()
33 static PetscErrorCode MatMultTranspose_ADA(Mat mat, Vec a, Vec y) in MatMultTranspose_ADA()
56 static PetscErrorCode MatDestroy_ADA(Mat mat) in MatDestroy_ADA()
72 static PetscErrorCode MatView_ADA(Mat mat, PetscViewer viewer) in MatView_ADA()
88 static PetscErrorCode MatDuplicate_ADA(Mat mat, MatDuplicateOption op, Mat *M) in MatDuplicate_ADA()
123 static PetscErrorCode MatScale_ADA(Mat mat, PetscReal a) in MatScale_ADA()
134 static PetscErrorCode MatTranspose_ADA(Mat mat, MatReuse reuse, Mat *B) in MatTranspose_ADA()
149 static PetscErrorCode MatADAComputeDiagonal(Mat mat) in MatADAComputeDiagonal()
175 static PetscErrorCode MatGetDiagonal_ADA(Mat mat, Vec v) in MatGetDiagonal_ADA()
188 static PetscErrorCode MatCreateSubMatrix_ADA(Mat mat, IS isrow, IS iscol, MatReuse cll, Mat *newmat) in MatCreateSubMatrix_ADA()
[all …]
/petsc/src/mat/interface/
H A Dmatproduct.c141 static PetscErrorCode MatProductNumeric_ABC_Unsafe(Mat mat) in MatProductNumeric_ABC_Unsafe()
156 static PetscErrorCode MatProductSymbolic_ABC_Unsafe(Mat mat) in MatProductSymbolic_ABC_Unsafe()
187 static PetscErrorCode MatProductSymbolic_Unsafe(Mat mat) in MatProductSymbolic_Unsafe()
389 static PetscErrorCode MatProductSetFromOptions_Private(Mat mat) in MatProductSetFromOptions_Private()
538 PetscErrorCode MatProductSetFromOptions(Mat mat) in MatProductSetFromOptions()
570 PetscErrorCode MatProductView(Mat mat, PetscViewer viewer) in MatProductView()
584 PetscErrorCode MatProductNumeric_AB(Mat mat) in MatProductNumeric_AB()
594 PetscErrorCode MatProductNumeric_AtB(Mat mat) in MatProductNumeric_AtB()
604 PetscErrorCode MatProductNumeric_ABt(Mat mat) in MatProductNumeric_ABt()
614 PetscErrorCode MatProductNumeric_PtAP(Mat mat) in MatProductNumeric_PtAP()
[all …]
H A Dmatrix.c165 PetscErrorCode MatFactorGetErrorZeroPivot(Mat mat, PetscReal *pivot, PetscInt *row) in MatFactorGetErrorZeroPivot()
195 PetscErrorCode MatFactorGetError(Mat mat, MatFactorError *err) in MatFactorGetError()
220 PetscErrorCode MatFactorClearError(Mat mat) in MatFactorClearError()
230 PetscErrorCode MatFindNonzeroRowsOrCols_Basic(Mat mat, PetscBool cols, PetscReal tol, IS *nonzero) in MatFindNonzeroRowsOrCols_Basic()
306 PetscErrorCode MatFindNonzeroRows(Mat mat, IS *keptrows) in MatFindNonzeroRows()
336 PetscErrorCode MatFindZeroRows(Mat mat, IS *zerorows) in MatFindZeroRows()
412 PetscErrorCode MatGetTrace(Mat mat, PetscScalar *trace) in MatGetTrace()
438 PetscErrorCode MatRealPart(Mat mat) in MatRealPart()
469 PetscErrorCode MatGetGhosts(Mat mat, PetscInt *nghosts, const PetscInt *ghosts[]) in MatGetGhosts()
496 PetscErrorCode MatImaginaryPart(Mat mat) in MatImaginaryPart()
[all …]
H A Dmatreg.c27 PetscErrorCode MatGetRootType_Private(Mat mat, MatType *rootType) in MatGetRootType_Private()
64 PetscErrorCode MatGetMPIMatType_Private(Mat mat, MatType *MPIType) in MatGetMPIMatType_Private()
107 PetscErrorCode MatSetType(Mat mat, MatType matype) in MatSetType()
199 PetscErrorCode MatGetType(Mat mat, MatType *type) in MatGetType()
223 PetscErrorCode MatGetVecType(Mat mat, VecType *vtype) in MatGetVecType()
248 PetscErrorCode MatSetVecType(Mat mat, VecType vtype) in MatSetVecType()
/petsc/src/mat/impls/composite/
H A Dmcomposite.c7 Mat mat; member
31 static PetscErrorCode MatDestroy_Composite(Mat mat) in MatDestroy_Composite()
129 static PetscErrorCode MatMult_Composite(Mat mat, Vec x, Vec y) in MatMult_Composite()
388 PetscErrorCode MatCreateComposite(MPI_Comm comm, PetscInt nmat, const Mat *mats, Mat *mat) in MatCreateComposite()
401 static PetscErrorCode MatCompositeAddMat_Composite(Mat mat, Mat smat) in MatCompositeAddMat_Composite()
460 PetscErrorCode MatCompositeAddMat(Mat mat, Mat smat) in MatCompositeAddMat()
469 static PetscErrorCode MatCompositeSetType_Composite(Mat mat, MatCompositeType type) in MatCompositeSetType_Composite()
503 PetscErrorCode MatCompositeSetType(Mat mat, MatCompositeType type) in MatCompositeSetType()
512 static PetscErrorCode MatCompositeGetType_Composite(Mat mat, MatCompositeType *type) in MatCompositeGetType_Composite()
537 PetscErrorCode MatCompositeGetType(Mat mat, MatCompositeType *type) in MatCompositeGetType()
[all …]
/petsc/src/binding/petsc4py/test/
H A Dtest_mat_py.py14 def create(self, mat): argument
17 def destroy(self, mat): argument
20 def setUp(self, mat): argument
27 def scale(self, mat, s): argument
30 def shift(self, mat, s): argument
33 def mult(self, mat, x, y): argument
37 def duplicate(self, mat, op): argument
46 def getDiagonal(self, mat, vd): argument
49 def productSetFromOptions(self, mat, producttype, A, B, C): argument
52 def productSymbolic(self, mat, product, producttype, A, B, C): argument
[all …]
/petsc/src/mat/impls/mffd/
H A Dmffd.c69 static PetscErrorCode MatMFFDSetType_MFFD(Mat mat, MatMFFDType ftype) in MatMFFDSetType_MFFD()
117 PetscErrorCode MatMFFDSetType(Mat mat, MatMFFDType ftype) in MatMFFDSetType()
129 static PetscErrorCode MatMFFDSetFunctioniBase_MFFD(Mat mat, FCN1 func) in MatMFFDSetFunctioniBase_MFFD()
140 static PetscErrorCode MatMFFDSetFunctioni_MFFD(Mat mat, FCN2 funci) in MatMFFDSetFunctioni_MFFD()
151 static PetscErrorCode MatMFFDGetH_MFFD(Mat mat, PetscScalar *h) in MatMFFDGetH_MFFD()
203 static PetscErrorCode MatDestroy_MFFD(Mat mat) in MatDestroy_MFFD()
303 static PetscErrorCode MatMult_MFFD(Mat mat, Vec a, Vec y) in MatMult_MFFD()
385 static PetscErrorCode MatGetDiagonal_MFFD(Mat mat, Vec a) in MatGetDiagonal_MFFD()
483 PetscErrorCode MatMFFDSetOptionsPrefix(Mat mat, const char prefix[]) in MatMFFDSetOptionsPrefix()
495 static PetscErrorCode MatSetFromOptions_MFFD(Mat mat, PetscOptionItems PetscOptionsObject) in MatSetFromOptions_MFFD()
[all …]
/petsc/src/mat/interface/ftn-custom/
H A Dzmatrixf90.c104 PETSC_EXTERN void matgetghosts_(Mat *mat, F90Array1d *ptr, int *ierr PETSC_F90_2PTR_PROTO(ptrd)) in matgetghosts_()
113 PETSC_EXTERN void matdensegetarray2d_(Mat *mat, F90Array2d *ptr, int *ierr PETSC_F90_2PTR_PROTO(ptr… in matdensegetarray2d_()
131 PETSC_EXTERN void matdenserestorearray2d_(Mat *mat, F90Array2d *ptr, int *ierr PETSC_F90_2PTR_PROTO… in matdenserestorearray2d_()
140 PETSC_EXTERN void matdensegetarrayread2d_(Mat *mat, F90Array2d *ptr, int *ierr PETSC_F90_2PTR_PROTO… in matdensegetarrayread2d_()
158 PETSC_EXTERN void matdenserestorearrayread2d_(Mat *mat, F90Array2d *ptr, int *ierr PETSC_F90_2PTR_P… in matdenserestorearrayread2d_()
167 PETSC_EXTERN void matdensegetarraywrite2d_(Mat *mat, F90Array2d *ptr, int *ierr PETSC_F90_2PTR_PROT… in matdensegetarraywrite2d_()
185 PETSC_EXTERN void matdenserestorearraywrite2d_(Mat *mat, F90Array2d *ptr, int *ierr PETSC_F90_2PTR_… in matdenserestorearraywrite2d_()
194 PETSC_EXTERN void matdensegetarray1d_(Mat *mat, F90Array1d *ptr, int *ierr PETSC_F90_2PTR_PROTO(ptr… in matdensegetarray1d_()
212 PETSC_EXTERN void matdenserestorearray1d_(Mat *mat, F90Array1d *ptr, int *ierr PETSC_F90_2PTR_PROTO… in matdenserestorearray1d_()
221 PETSC_EXTERN void matdensegetarrayread1d_(Mat *mat, F90Array1d *ptr, int *ierr PETSC_F90_2PTR_PROTO… in matdensegetarrayread1d_()
[all …]
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A Dlibpetsc4py.pyx579 cdef inline _PyMat PyMat(PetscMat mat):
585 cdef public PetscErrorCode MatPythonGetContext(PetscMat mat, void **ctx) \
591 cdef public PetscErrorCode MatPythonSetContext(PetscMat mat, void *ctx) \
598 cdef PetscErrorCode MatPythonSetType_PYTHON(PetscMat mat, const char *name) \
607 cdef PetscErrorCode MatPythonGetType_PYTHON(PetscMat mat, const char *name[]) \
646 PetscMat mat,
711 PetscMat mat,
723 PetscMat mat,
742 PetscMat mat,
761 PetscMat mat,
[all …]
/petsc/src/mat/tests/
H A Dex140.py8 def create(self, mat): argument
11 def destroy(self, mat): argument
14 def setFromOptions(self, mat): argument
H A Dex156.c5 PetscErrorCode Assemble(Mat mat) in Assemble()
48 Mat mat; in main() local
/petsc/src/ksp/pc/impls/mg/
H A Dmgfunc.c20 PetscErrorCode PCMGResidualDefault(Mat mat, Vec b, Vec x, Vec r) in PCMGResidualDefault()
44 PetscErrorCode PCMGResidualTransposeDefault(Mat mat, Vec b, Vec x, Vec r) in PCMGResidualTransposeDefault()
69 PetscErrorCode PCMGMatResidualDefault(Mat mat, Mat b, Mat x, Mat r) in PCMGMatResidualDefault()
94 PetscErrorCode PCMGMatResidualTransposeDefault(Mat mat, Mat b, Mat x, Mat r) in PCMGMatResidualTransposeDefault()
143 …rorCode PCMGSetResidual(PC pc, PetscInt l, PetscErrorCode (*residual)(Mat, Vec, Vec, Vec), Mat mat) in PCMGSetResidual() argument
177 …MGSetResidualTranspose(PC pc, PetscInt l, PetscErrorCode (*residualt)(Mat, Vec, Vec, Vec), Mat mat) in PCMGSetResidualTranspose() argument
216 PetscErrorCode PCMGSetInterpolation(PC pc, PetscInt l, Mat mat) in PCMGSetInterpolation()
278 PetscErrorCode PCMGGetInterpolation(PC pc, PetscInt l, Mat *mat) in PCMGGetInterpolation()
318 PetscErrorCode PCMGSetRestriction(PC pc, PetscInt l, Mat mat) in PCMGSetRestriction()
352 PetscErrorCode PCMGGetRestriction(PC pc, PetscInt l, Mat *mat) in PCMGGetRestriction()
[all …]
/petsc/src/mat/tutorials/
H A Dex8.c29 PetscErrorCode RegisterMatScaleUserImpl(Mat mat) in RegisterMatScaleUserImpl()
50 PetscErrorCode DeRegisterMatScaleUserImpl(Mat mat) in DeRegisterMatScaleUserImpl()
73 PetscErrorCode MatScaleUserImpl(Mat mat, PetscScalar a) in MatScaleUserImpl()
87 Mat mat; in main() local
/petsc/src/dm/impls/da/hypre/
H A Dmhyp.c25 static PetscErrorCode MatSetValuesLocal_HYPREStruct_3d(Mat mat, PetscInt nrow, const PetscInt irow[… in MatSetValuesLocal_HYPREStruct_3d()
64 static PetscErrorCode MatZeroRowsLocal_HYPREStruct_3d(Mat mat, PetscInt nrow, const PetscInt irow[]… in MatZeroRowsLocal_HYPREStruct_3d()
86 static PetscErrorCode MatZeroEntries_HYPREStruct_3d(Mat mat) in MatZeroEntries_HYPREStruct_3d()
98 static PetscErrorCode MatSetUp_HYPREStruct(Mat mat) in MatSetUp_HYPREStruct()
265 static PetscErrorCode MatAssemblyEnd_HYPREStruct(Mat mat, MatAssemblyType mode) in MatAssemblyEnd_HYPREStruct()
274 static PetscErrorCode MatZeroEntries_HYPREStruct(Mat mat) in MatZeroEntries_HYPREStruct()
281 static PetscErrorCode MatDestroy_HYPREStruct(Mat mat) in MatDestroy_HYPREStruct()
339 static PetscErrorCode MatSetValuesLocal_HYPRESStruct_3d(Mat mat, PetscInt nrow, const PetscInt irow… in MatSetValuesLocal_HYPRESStruct_3d()
442 static PetscErrorCode MatZeroRowsLocal_HYPRESStruct_3d(Mat mat, PetscInt nrow, const PetscInt irow[… in MatZeroRowsLocal_HYPRESStruct_3d()
501 static PetscErrorCode MatZeroEntries_HYPRESStruct_3d(Mat mat) in MatZeroEntries_HYPRESStruct_3d()
[all …]
/petsc/src/mat/impls/python/
H A Dpythonmat.c19 PetscErrorCode MatPythonSetType(Mat mat, const char pyname[]) in MatPythonSetType()
43 PetscErrorCode MatPythonGetType(Mat mat, const char *pyname[]) in MatPythonGetType()
/petsc/src/vec/vec/utils/matlab/
H A Dgcreatev.c12 mxArray *mat; in VecMatlabEnginePut_Default() local
35 mxArray *mat; in VecMatlabEngineGet_Default() local
/petsc/src/mat/utils/
H A Dmatio.c4 PetscErrorCode MatView_Binary_BlockSizes(Mat mat, PetscViewer viewer) in MatView_Binary_BlockSizes()
24 PetscErrorCode MatLoad_Binary_BlockSizes(Mat mat, PetscViewer viewer) in MatLoad_Binary_BlockSizes()
/petsc/src/mat/impls/mffd/ftn-custom/
H A Dzmffdf.c14 Mat mat = (Mat)ctx; in ourmatmffdfunction() local
19 PETSC_EXTERN void matmffdsetfunction_(Mat *mat, void (*func)(void *, Vec *, Vec *, PetscErrorCode *… in matmffdsetfunction_()
/petsc/src/mat/impls/shell/
H A Dshell.c209 static PetscErrorCode MatShellGetContext_Shell(Mat mat, PetscCtxRt ctx) in MatShellGetContext_Shell()
240 PetscErrorCode MatShellGetContext(Mat mat, PetscCtxRt ctx) in MatShellGetContext()
249 static PetscErrorCode MatZeroRowsColumns_Local_Shell(Mat mat, PetscInt nr, PetscInt rows[], PetscIn… in MatZeroRowsColumns_Local_Shell()
316 static PetscErrorCode MatZeroRows_Shell(Mat mat, PetscInt n, const PetscInt rows[], PetscScalar dia… in MatZeroRows_Shell()
362 static PetscErrorCode MatZeroRowsColumns_Shell(Mat mat, PetscInt n, const PetscInt rowscols[], Pets… in MatZeroRowsColumns_Shell()
435 static PetscErrorCode MatDestroy_Shell(Mat mat) in MatDestroy_Shell()
973 static PetscErrorCode MatDuplicate_Shell(Mat mat, MatDuplicateOption op, Mat *M) in MatDuplicate_Shell()
1509 static PetscErrorCode MatShellSetContext_Shell(Mat mat, PetscCtx ctx) in MatShellSetContext_Shell()
1528 static PetscErrorCode MatShellSetContextDestroy_Shell(Mat mat, PetscCtxDestroyFn *f) in MatShellSetContextDestroy_Shell()
1537 PetscErrorCode MatShellSetContext_Immutable(Mat mat, PetscCtx ctx) in MatShellSetContext_Immutable()
[all …]
/petsc/src/mat/impls/aij/seq/matlab/
H A Daijmatlab.c14 mxArray *mat; in MatSeqAIJToMatlab() local
29 mxArray *mat; in MatlabEnginePut_SeqAIJ() local
39 static PetscErrorCode MatSeqAIJFromMatlab(mxArray *mmat, Mat mat) in MatSeqAIJFromMatlab()
90 Mat mat = (Mat)obj; in MatlabEngineGet_SeqAIJ() local
/petsc/src/binding/petsc4py/src/lib-petsc/compat/
H A Dtao.h10 PetscErrorCode TaoSetLMVMMatrix(PETSC_UNUSED Tao tao,PETSC_UNUSED Mat mat) {PetscTaoError;} in TaoSetLMVMMatrix()
11 PetscErrorCode TaoGetLMVMMatrix(PETSC_UNUSED Tao tao,PETSC_UNUSED Mat *mat) {PetscTaoError;} in TaoGetLMVMMatrix()
13 PetscErrorCode TaoLMVMSetH0(PETSC_UNUSED Tao tao,PETSC_UNUSED Mat mat) {PetscTaoError;} in TaoLMVMSetH0()
14 PetscErrorCode TaoLMVMGetH0(PETSC_UNUSED Tao tao,PETSC_UNUSED Mat *mat) {PetscTaoError;} in TaoLMVMGetH0()
/petsc/src/mat/impls/scatter/
H A Dmscatter.c27 PetscErrorCode MatScatterGetVecScatter(Mat mat, VecScatter *scatter) in MatScatterGetVecScatter()
39 static PetscErrorCode MatDestroy_Scatter(Mat mat) in MatDestroy_Scatter()
325 PetscErrorCode MatScatterSetVecScatter(Mat mat, VecScatter scatter) in MatScatterSetVecScatter()
/petsc/src/mat/impls/dense/mpi/cupm/hip/
H A Dmatmpidensehip.hip.cxx101 PetscErrorCode MatDenseHIPPlaceArray(Mat mat, const PetscScalar *array) in MatDenseHIPPlaceArray()
124 PetscErrorCode MatDenseHIPResetArray(Mat mat) in MatDenseHIPResetArray()
152 PetscErrorCode MatDenseHIPReplaceArray(Mat mat, const PetscScalar *array) in MatDenseHIPReplaceArray()

123456789