Searched refs:MtM (Results 1 – 2 of 2) sorted by relevance
| /petsc/src/dm/impls/swarm/tests/ |
| H A D | ex7.c | 19 PetscErrorCode MatMultMtM_SeqAIJ(Mat MtM, Vec xx, Vec yy) in MatMultMtM_SeqAIJ() argument 24 PetscCall(MatShellGetContext(MtM, &matshellctx)); in MatMultMtM_SeqAIJ() 31 PetscErrorCode MatMultAddMtM_SeqAIJ(Mat MtM, Vec xx, Vec yy, Vec zz) in MatMultAddMtM_SeqAIJ() argument 36 PetscCall(MatShellGetContext(MtM, &matshellctx)); in MatMultAddMtM_SeqAIJ() 63 Mat PM_p = NULL, MtM, D; in gridToParticles() local 86 …reateShell(PetscObjectComm((PetscObject)dm), N, N, PETSC_DECIDE, PETSC_DECIDE, matshellctx, &MtM)); in gridToParticles() 89 PetscCall(MatShellSetOperation(MtM, MATOP_MULT, (PetscErrorCodeFn *)MatMultMtM_SeqAIJ)); in gridToParticles() 90 … PetscCall(MatShellSetOperation(MtM, MATOP_MULT_ADD, (PetscErrorCodeFn *)MatMultAddMtM_SeqAIJ)); in gridToParticles() 105 PetscCall(KSPSetOperators(ksp, MtM, D)); in gridToParticles() 131 PetscCall(MatDestroy(&MtM)); in gridToParticles()
|
| /petsc/src/ts/tests/ |
| H A D | ex30.c | 45 PetscErrorCode MatMultMtM_SeqAIJ(Mat MtM, Vec xx, Vec yy) in MatMultMtM_SeqAIJ() argument 50 PetscCall(MatShellGetContext(MtM, &matshellctx)); in MatMultMtM_SeqAIJ() 57 PetscErrorCode MatMultAddMtM_SeqAIJ(Mat MtM, Vec xx, Vec yy, Vec zz) in MatMultAddMtM_SeqAIJ() argument 62 PetscCall(MatShellGetContext(MtM, &matshellctx)); in MatMultAddMtM_SeqAIJ() 163 Mat PM_p = NULL, MtM, D = NULL; in gridToParticles() local 191 PetscCall(MatTransposeMatMult(M_p, M_p, MAT_INITIAL_MATRIX, 4, &MtM)); in gridToParticles() 192 PetscCall(KSPSetOperators(ksp, MtM, MtM)); in gridToParticles() 194 PetscCall(MatViewFromOptions(MtM, NULL, "-ftop2_MtM_mat_view")); in gridToParticles() 196 …reateShell(PetscObjectComm((PetscObject)dm), N, N, PETSC_DECIDE, PETSC_DECIDE, matshellctx, &MtM)); in gridToParticles() 199 PetscCall(MatShellSetOperation(MtM, MATOP_MULT, (PetscErrorCodeFn *)MatMultMtM_SeqAIJ)); in gridToParticles() [all …]
|