| /petsc/src/mat/impls/aij/seq/ |
| H A D | symtranspose.c | 55 PetscErrorCode MatTranspose_SeqAIJ(Mat A, MatReuse reuse, Mat *B) in MatTranspose_SeqAIJ() argument 69 if (reuse == MAT_REUSE_MATRIX) { in MatTranspose_SeqAIJ() 78 if (reuse == MAT_INITIAL_MATRIX || reuse == MAT_INPLACE_MATRIX || nonzerochange) { in MatTranspose_SeqAIJ() 121 if (reuse == MAT_REUSE_MATRIX) PetscCall(PetscObjectStateIncrease((PetscObject)*B)); in MatTranspose_SeqAIJ() 123 if (reuse == MAT_INITIAL_MATRIX || reuse == MAT_INPLACE_MATRIX || nonzerochange) { in MatTranspose_SeqAIJ() 134 if (reuse == MAT_INITIAL_MATRIX || (reuse == MAT_REUSE_MATRIX && !nonzerochange)) { in MatTranspose_SeqAIJ() 139 } else if (reuse == MAT_INPLACE_MATRIX) { in MatTranspose_SeqAIJ()
|
| /petsc/src/mat/utils/ |
| H A D | convert.c | 7 PetscErrorCode MatConvert_Basic(Mat mat, MatType newtype, MatReuse reuse, Mat *newmat) in MatConvert_Basic() argument 17 PetscCall(MatConvert_Shell(mat, newtype, reuse, newmat)); in MatConvert_Basic() 24 if (reuse == MAT_REUSE_MATRIX) { in MatConvert_Basic() 52 if (reuse != MAT_REUSE_MATRIX) PetscCall(MatSetOption(M, MAT_NO_OFF_PROC_ENTRIES, PETSC_FALSE)); in MatConvert_Basic() 54 if (reuse == MAT_INPLACE_MATRIX) { in MatConvert_Basic()
|
| /petsc/src/mat/impls/sbaij/mpi/ |
| H A D | mpiaijsbaij.c | 10 PETSC_INTERN PetscErrorCode MatConvert_MPIAIJ_MPISBAIJ(Mat A, MatType newtype, MatReuse reuse, Mat … in MatConvert_MPIAIJ_MPISBAIJ() argument 18 if (reuse != MAT_REUSE_MATRIX) { in MatConvert_MPIAIJ_MPISBAIJ() 45 if (reuse == MAT_INPLACE_MATRIX) PetscCall(MatHeaderReplace(A, &M)); in MatConvert_MPIAIJ_MPISBAIJ() 51 PETSC_INTERN PetscErrorCode MatConvert_MPIBAIJ_MPISBAIJ(Mat A, MatType newtype, MatReuse reuse, Mat… in MatConvert_MPIBAIJ_MPISBAIJ() argument 66 if (reuse != MAT_REUSE_MATRIX) { in MatConvert_MPIBAIJ_MPISBAIJ() 96 if (reuse == MAT_INPLACE_MATRIX) PetscCall(MatHeaderReplace(A, &M)); in MatConvert_MPIBAIJ_MPISBAIJ()
|
| /petsc/src/mat/impls/baij/seq/ |
| H A D | aijbaij.c | 3 PETSC_INTERN PetscErrorCode MatConvert_SeqBAIJ_SeqAIJ(Mat A, MatType newtype, MatReuse reuse, Mat *… in MatConvert_SeqBAIJ_SeqAIJ() argument 14 if (reuse == MAT_REUSE_MATRIX) { in MatConvert_SeqBAIJ_SeqAIJ() 52 if (reuse == MAT_INPLACE_MATRIX) PetscCall(MatHeaderReplace(A, &B)); in MatConvert_SeqBAIJ_SeqAIJ() 92 PETSC_INTERN PetscErrorCode MatConvert_SeqAIJ_SeqBAIJ(Mat A, MatType newtype, MatReuse reuse, Mat *… in MatConvert_SeqAIJ_SeqBAIJ() argument 100 if (reuse != MAT_REUSE_MATRIX) { in MatConvert_SeqAIJ_SeqBAIJ() 127 if (reuse == MAT_INPLACE_MATRIX) PetscCall(MatHeaderReplace(A, &B)); in MatConvert_SeqAIJ_SeqBAIJ()
|
| /petsc/src/mat/impls/sbaij/seq/ |
| H A D | aijsbaij.c | 5 PETSC_INTERN PetscErrorCode MatConvert_SeqSBAIJ_SeqAIJ(Mat A, MatType newtype, MatReuse reuse, Mat … in MatConvert_SeqSBAIJ_SeqAIJ() argument 40 if (reuse != MAT_REUSE_MATRIX) { in MatConvert_SeqSBAIJ_SeqAIJ() 112 if (reuse == MAT_INPLACE_MATRIX) { in MatConvert_SeqSBAIJ_SeqAIJ() 163 PETSC_INTERN PetscErrorCode MatConvert_SeqAIJ_SeqSBAIJ(Mat A, MatType newtype, MatReuse reuse, Mat … in MatConvert_SeqAIJ_SeqSBAIJ() argument 192 if (reuse != MAT_REUSE_MATRIX) { in MatConvert_SeqAIJ_SeqSBAIJ() 230 if (reuse == MAT_INPLACE_MATRIX) PetscCall(MatHeaderReplace(A, &B)); in MatConvert_SeqAIJ_SeqSBAIJ() 235 PETSC_INTERN PetscErrorCode MatConvert_SeqSBAIJ_SeqBAIJ(Mat A, MatType newtype, MatReuse reuse, Mat… in MatConvert_SeqSBAIJ_SeqBAIJ() argument 259 if (reuse != MAT_REUSE_MATRIX) { in MatConvert_SeqSBAIJ_SeqBAIJ() 324 if (reuse == MAT_INPLACE_MATRIX) PetscCall(MatHeaderReplace(A, &B)); in MatConvert_SeqSBAIJ_SeqBAIJ() 329 PETSC_INTERN PetscErrorCode MatConvert_SeqBAIJ_SeqSBAIJ(Mat A, MatType newtype, MatReuse reuse, Mat… in MatConvert_SeqBAIJ_SeqSBAIJ() argument [all …]
|
| /petsc/src/mat/impls/baij/mpi/ |
| H A D | mpiaijbaij.c | 8 PETSC_INTERN PetscErrorCode MatConvert_MPIAIJ_MPIBAIJ(Mat A, MatType newtype, MatReuse reuse, Mat *… in MatConvert_MPIAIJ_MPIBAIJ() argument 17 if (reuse != MAT_REUSE_MATRIX) { in MatConvert_MPIAIJ_MPIBAIJ() 51 if (reuse == MAT_INPLACE_MATRIX) PetscCall(MatHeaderReplace(A, &M)); in MatConvert_MPIAIJ_MPIBAIJ()
|
| /petsc/src/mat/impls/normal/ |
| H A D | normmh.c | 204 static PetscErrorCode MatConvert_NormalHermitian_AIJ(Mat A, MatType newtype, MatReuse reuse, Mat *n… in MatConvert_NormalHermitian_AIJ() argument 217 if (reuse == MAT_REUSE_MATRIX) { in MatConvert_NormalHermitian_AIJ() 234 if (reuse == MAT_INPLACE_MATRIX) PetscCall(MatHeaderReplace(A, &B)); in MatConvert_NormalHermitian_AIJ() 235 else if (reuse == MAT_INITIAL_MATRIX) *newmat = B; in MatConvert_NormalHermitian_AIJ() 245 static PetscErrorCode MatConvert_NormalHermitian_HYPRE(Mat A, MatType type, MatReuse reuse, Mat *B) in MatConvert_NormalHermitian_HYPRE() argument 248 if (reuse == MAT_INITIAL_MATRIX) { in MatConvert_NormalHermitian_HYPRE() 249 PetscCall(MatConvert(A, MATAIJ, reuse, B)); in MatConvert_NormalHermitian_HYPRE() 251 } else PetscCall(MatConvert_Basic(A, type, reuse, B)); /* fall back to basic convert */ in MatConvert_NormalHermitian_HYPRE()
|
| H A D | normm.c | 220 static PetscErrorCode MatConvert_Normal_AIJ(Mat A, MatType newtype, MatReuse reuse, Mat *newmat) in MatConvert_Normal_AIJ() argument 233 if (reuse == MAT_REUSE_MATRIX) { in MatConvert_Normal_AIJ() 244 if (reuse == MAT_INPLACE_MATRIX) PetscCall(MatHeaderReplace(A, &B)); in MatConvert_Normal_AIJ() 245 else if (reuse == MAT_INITIAL_MATRIX) *newmat = B; in MatConvert_Normal_AIJ() 255 static PetscErrorCode MatConvert_Normal_HYPRE(Mat A, MatType type, MatReuse reuse, Mat *B) in MatConvert_Normal_HYPRE() argument 258 if (reuse == MAT_INITIAL_MATRIX) { in MatConvert_Normal_HYPRE() 259 PetscCall(MatConvert(A, MATAIJ, reuse, B)); in MatConvert_Normal_HYPRE() 261 } else PetscCall(MatConvert_Basic(A, type, reuse, B)); /* fall back to basic convert */ in MatConvert_Normal_HYPRE()
|
| /petsc/src/mat/impls/dense/seq/cupm/hip/ |
| H A D | matseqdensehip.hip.cxx | 34 PetscErrorCode MatConvert_SeqDense_SeqDenseHIP(Mat A, MatType newtype, MatReuse reuse, Mat *newmat) in MatConvert_SeqDense_SeqDenseHIP() argument 37 PetscCall(cupm_mat.Convert_SeqDense_SeqDenseCUPM(A, newtype, reuse, newmat)); in MatConvert_SeqDense_SeqDenseHIP()
|
| /petsc/src/mat/impls/dense/seq/cupm/cuda/ |
| H A D | matseqdensecuda.cu | 34 PetscErrorCode MatConvert_SeqDense_SeqDenseCUDA(Mat A, MatType newtype, MatReuse reuse, Mat *newmat) in MatConvert_SeqDense_SeqDenseCUDA() argument 37 PetscCall(cupm_mat.Convert_SeqDense_SeqDenseCUPM(A, newtype, reuse, newmat)); in MatConvert_SeqDense_SeqDenseCUDA()
|
| /petsc/src/mat/impls/aij/seq/aijsell/ |
| H A D | aijsell.c | 17 PETSC_INTERN PetscErrorCode MatConvert_SeqAIJSELL_SeqAIJ(Mat A, MatType type, MatReuse reuse, Mat *… in MatConvert_SeqAIJSELL_SeqAIJ() argument 25 if (reuse == MAT_INITIAL_MATRIX) PetscCall(MatDuplicate(A, MAT_COPY_VALUES, &B)); in MatConvert_SeqAIJSELL_SeqAIJ() 39 if (reuse == MAT_INITIAL_MATRIX) aijsell = (Mat_SeqAIJSELL *)B->spptr; in MatConvert_SeqAIJSELL_SeqAIJ() 201 PETSC_INTERN PetscErrorCode MatConvert_SeqAIJ_SeqAIJSELL(Mat A, MatType type, MatReuse reuse, Mat *… in MatConvert_SeqAIJ_SeqAIJSELL() argument 210 if (reuse == MAT_INITIAL_MATRIX) PetscCall(MatDuplicate(A, MAT_COPY_VALUES, &B)); in MatConvert_SeqAIJ_SeqAIJSELL()
|
| /petsc/src/ksp/ksp/interface/ |
| H A D | iguess.c | 356 PetscBool reuse; in KSPGuessSetUp() local 366 PetscCall(PCGetReusePreconditioner(pc, &reuse)); in KSPGuessSetUp() 372 } else if (!reuse && (omat != guess->A || guess->omatstate != matstate)) { in KSPGuessSetUp() 375 } else if (reuse) { in KSPGuessSetUp()
|
| H A D | itcl.c | 340 PetscBool flg, flag, reuse, set; in KSPSetFromOptions() local 383 PetscCall(KSPGetReusePreconditioner(ksp, &reuse)); in KSPSetFromOptions() 384 … preconditioner and don't ever compute a new one", "KSPReusePreconditioner", reuse, &reuse, NULL)); in KSPSetFromOptions() 385 PetscCall(KSPSetReusePreconditioner(ksp, reuse)); in KSPSetFromOptions() 436 PetscCall(KSPGetReusePreconditioner(ksp, &reuse)); in KSPSetFromOptions() 437 … preconditioner and don't ever compute a new one", "KSPReusePreconditioner", reuse, &reuse, NULL)); in KSPSetFromOptions() 438 PetscCall(KSPSetReusePreconditioner(ksp, reuse)); in KSPSetFromOptions()
|
| /petsc/src/ksp/pc/impls/is/ |
| H A D | pcis.c | 141 MatReuse reuse; in PCISSetUp() local 254 reuse = MAT_INITIAL_MATRIX; in PCISSetUp() 257 reuse = MAT_REUSE_MATRIX; in PCISSetUp() 259 reuse = MAT_INITIAL_MATRIX; in PCISSetUp() 262 if (reuse == MAT_INITIAL_MATRIX) { in PCISSetUp() 272 … PetscCall(MatCreateSubMatrix(matis->A, pcis->is_I_local, pcis->is_I_local, reuse, &pcis->pA_II)); in PCISSetUp() 275 … PetscCall(MatCreateSubMatrix(amatis->A, pcis->is_I_local, pcis->is_I_local, reuse, &pcis->A_II)); in PCISSetUp() 283 PetscCall(MatCreateSubMatrix(matis->A, pcis->is_B_local, pcis->is_B_local, reuse, &pcis->A_BB)); in PCISSetUp() 286 … PetscCall(MatCreateSubMatrix(matis->A, pcis->is_I_local, pcis->is_B_local, reuse, &pcis->A_IB)); in PCISSetUp() 287 … PetscCall(MatCreateSubMatrix(matis->A, pcis->is_B_local, pcis->is_I_local, reuse, &pcis->A_BI)); in PCISSetUp() [all …]
|
| /petsc/src/mat/impls/sell/mpi/mpihip/ |
| H A D | mpisellhip.hip.cxx | 53 PETSC_INTERN PetscErrorCode MatConvert_MPISELL_MPISELLHIP(Mat B, MatType, MatReuse reuse, Mat *newm… in MatConvert_MPISELL_MPISELLHIP() argument 60 if (reuse == MAT_INITIAL_MATRIX) PetscCall(MatDuplicate(B, MAT_COPY_VALUES, newmat)); in MatConvert_MPISELL_MPISELLHIP() 61 else if (reuse == MAT_REUSE_MATRIX) PetscCall(MatCopy(B, *newmat, SAME_NONZERO_PATTERN)); in MatConvert_MPISELL_MPISELLHIP()
|
| /petsc/src/mat/impls/sell/mpi/mpicuda/ |
| H A D | mpisellcuda.cu | 53 PETSC_INTERN PetscErrorCode MatConvert_MPISELL_MPISELLCUDA(Mat B, MatType, MatReuse reuse, Mat *new… in MatConvert_MPISELL_MPISELLCUDA() argument 60 if (reuse == MAT_INITIAL_MATRIX) PetscCall(MatDuplicate(B, MAT_COPY_VALUES, newmat)); in MatConvert_MPISELL_MPISELLCUDA() 61 else if (reuse == MAT_REUSE_MATRIX) PetscCall(MatCopy(B, *newmat, SAME_NONZERO_PATTERN)); in MatConvert_MPISELL_MPISELLCUDA()
|
| /petsc/src/mat/impls/aij/mpi/aijsell/ |
| H A D | mpiaijsell.c | 113 PETSC_INTERN PetscErrorCode MatConvert_MPIAIJ_MPIAIJSELL(Mat A, MatType type, MatReuse reuse, Mat *… in MatConvert_MPIAIJ_MPIAIJSELL() argument 118 if (reuse == MAT_INITIAL_MATRIX) PetscCall(MatDuplicate(A, MAT_COPY_VALUES, &B)); in MatConvert_MPIAIJ_MPIAIJSELL()
|
| /petsc/src/mat/impls/aij/mpi/aijperm/ |
| H A D | mpiaijperm.c | 116 PETSC_INTERN PetscErrorCode MatConvert_MPIAIJ_MPIAIJPERM(Mat A, MatType type, MatReuse reuse, Mat *… in MatConvert_MPIAIJ_MPIAIJPERM() argument 121 if (reuse == MAT_INITIAL_MATRIX) PetscCall(MatDuplicate(A, MAT_COPY_VALUES, &B)); in MatConvert_MPIAIJ_MPIAIJPERM()
|
| /petsc/src/mat/impls/aij/mpi/aijmkl/ |
| H A D | mpiaijmkl.c | 117 PETSC_INTERN PetscErrorCode MatConvert_MPIAIJ_MPIAIJMKL(Mat A, MatType type, MatReuse reuse, Mat *n… in MatConvert_MPIAIJ_MPIAIJMKL() argument 122 if (reuse == MAT_INITIAL_MATRIX) PetscCall(MatDuplicate(A, MAT_COPY_VALUES, &B)); in MatConvert_MPIAIJ_MPIAIJMKL()
|
| /petsc/src/mat/impls/baij/mpi/baijmkl/ |
| H A D | mpibaijmkl.c | 16 static PetscErrorCode MatConvert_MPIBAIJ_MPIBAIJMKL(Mat A, MatType type, MatReuse reuse, Mat *newma… in MatConvert_MPIBAIJ_MPIBAIJMKL() argument 21 if (reuse == MAT_INITIAL_MATRIX) PetscCall(MatDuplicate(A, MAT_COPY_VALUES, &B)); in MatConvert_MPIBAIJ_MPIBAIJMKL()
|
| /petsc/src/mat/impls/dense/mpi/cupm/ |
| H A D | matmpidensecupm.hpp | 131 inline PetscErrorCode MatDense_MPI_CUPM<T>::Convert_Dispatch_(Mat M, MatType, MatReuse reuse, Mat *… in Convert_Dispatch_() argument 134 if (reuse == MAT_INITIAL_MATRIX) { in Convert_Dispatch_() 136 } else if (reuse == MAT_REUSE_MATRIX) { in Convert_Dispatch_() 275 …MPI_CUPM<T>::Convert_MPIDenseCUPM_MPIDense(Mat M, MatType mtype, MatReuse reuse, Mat *newmat) noex… in Convert_MPIDenseCUPM_MPIDense() argument 278 PetscCall(Convert_Dispatch_</* to host */ true>(M, mtype, reuse, newmat)); in Convert_MPIDenseCUPM_MPIDense() 283 …MPI_CUPM<T>::Convert_MPIDense_MPIDenseCUPM(Mat M, MatType mtype, MatReuse reuse, Mat *newmat) noex… in Convert_MPIDense_MPIDenseCUPM() argument 286 PetscCall(Convert_Dispatch_</* to host */ false>(M, mtype, reuse, newmat)); in Convert_MPIDense_MPIDenseCUPM()
|
| /petsc/src/mat/impls/shell/ |
| H A D | shellcnv.c | 4 PetscErrorCode MatConvert_Shell(Mat oldmat, MatType newtype, MatReuse reuse, Mat *newmat) in MatConvert_Shell() argument 20 if (reuse != MAT_REUSE_MATRIX) { in MatConvert_Shell() 76 if (reuse == MAT_INPLACE_MATRIX) { in MatConvert_Shell() 221 PetscErrorCode MatConvertFrom_Shell(Mat A, MatType newtype, MatReuse reuse, Mat *B) in MatConvertFrom_Shell() argument 229 if (reuse == MAT_INITIAL_MATRIX) { in MatConvertFrom_Shell()
|
| /petsc/src/mat/impls/elemental/ |
| H A D | matelem.cxx | 529 static PetscErrorCode MatTranspose_Elemental(Mat A, MatReuse reuse, Mat *B) in MatTranspose_Elemental() argument 536 if (reuse == MAT_REUSE_MATRIX) PetscCall(MatTransposeCheckNonzeroState_Private(A, *B)); in MatTranspose_Elemental() 539 PetscCheck(reuse != MAT_INPLACE_MATRIX, comm, PETSC_ERR_SUP, "Only out-of-place supported"); in MatTranspose_Elemental() 540 if (reuse == MAT_INITIAL_MATRIX) { in MatTranspose_Elemental() 562 static PetscErrorCode MatHermitianTranspose_Elemental(Mat A, MatReuse reuse, Mat *B) in MatHermitianTranspose_Elemental() argument 571 if (reuse == MAT_INITIAL_MATRIX) { in MatHermitianTranspose_Elemental() 835 static PetscErrorCode MatConvert_Elemental_Dense(Mat A, MatType, MatReuse reuse, Mat *B) in MatConvert_Elemental_Dense() argument 849 if (reuse == MAT_REUSE_MATRIX) { in MatConvert_Elemental_Dense() 900 if (reuse == MAT_INPLACE_MATRIX) { in MatConvert_Elemental_Dense() 910 PETSC_INTERN PetscErrorCode MatConvert_SeqAIJ_Elemental(Mat A, MatType, MatReuse reuse, Mat *newmat) in MatConvert_SeqAIJ_Elemental() argument [all …]
|
| /petsc/src/mat/impls/dense/mpi/cupm/cuda/ |
| H A D | matmpidensecuda.cu | 44 PetscErrorCode MatConvert_MPIDense_MPIDenseCUDA(Mat A, MatType type, MatReuse reuse, Mat *ret) in MatConvert_MPIDense_MPIDenseCUDA() argument 47 PetscCall(mat_cupm.Convert_MPIDense_MPIDenseCUPM(A, type, reuse, ret)); in MatConvert_MPIDense_MPIDenseCUDA()
|
| /petsc/src/mat/impls/dense/mpi/cupm/hip/ |
| H A D | matmpidensehip.hip.cxx | 44 PetscErrorCode MatConvert_MPIDense_MPIDenseHIP(Mat A, MatType type, MatReuse reuse, Mat *ret) in MatConvert_MPIDense_MPIDenseHIP() argument 47 PetscCall(mat_cupm.Convert_MPIDense_MPIDenseCUPM(A, type, reuse, ret)); in MatConvert_MPIDense_MPIDenseHIP()
|