| /petsc/src/mat/tests/ |
| H A D | ex37.c | 109 MatType Ctype, Cstype; in main() local 111 PetscCall(MatGetType(C, &Ctype)); in main() 121 PetscCall(MatConvert(Cs, Ctype, MAT_INITIAL_MATRIX, &Cse)); in main() 125 …TSC_ERR_PLIB, "MatConvert MAT_INITIAL_MATRIX %s -> %s: Matrices are NOT multequal", Ctype, Cstype); in main() 127 PetscCall(MatConvert(Cs, Ctype, MAT_REUSE_MATRIX, &Cse)); in main() 131 …PETSC_ERR_PLIB, "MatConvert MAT_REUSE_MATRIX %s -> %s: Matrices are NOT multequal", Ctype, Cstype); in main() 137 …_ERR_PLIB, "MatCopy(...SAME_NONZERO_PATTERN) %s -> %s: Matrices are NOT multequal", Ctype, Cstype); in main() 143 …RR_PLIB, "MatCopy(...SUBSET_NONZERO_PATTERN) %s -> %s: Matrices are NOT multequal", Ctype, Cstype); in main() 149 …PLIB, "MatCopy(...DIFFERENT_NONZERO_PATTERN) %s -> %s: Matrices are NOT multequal", Ctype, Cstype); in main()
|
| H A D | ex237.c | 205 MatType Atype, Ctype; in main() local 225 PetscCall(MatGetType(C, &Ctype)); in main() 253 …etscInt_FMT "x%" PetscInt_FMT "\n", MatProductTypes[MATPRODUCT_AB], Atype, AM, AN, Ctype, CM, CN)); in main() 291 …x%" PetscInt_FMT " and B %s %" PetscInt_FMT "x%" PetscInt_FMT "\n", Atype, AM, AN, Ctype, CM, CN)); in main() 335 …or with A %s%s, C %s, D %s, Nk %" PetscInt_FMT "\n", Atype, mkl ? "mkl" : "", Ctype, Dtype, N[k])); in main() 345 PetscCall(MatGetType(C, &Ctype)); in main() 352 …tscInt_FMT "x%" PetscInt_FMT "\n", MatProductTypes[MATPRODUCT_ABt], Atype, AM, AN, Ctype, CM, CN)); in main() 364 …x%" PetscInt_FMT " and B %s %" PetscInt_FMT "x%" PetscInt_FMT "\n", Atype, AM, AN, Ctype, CM, CN)); in main() 380 …or with A %s%s, C %s, D %s, Nk %" PetscInt_FMT "\n", Atype, mkl ? "mkl" : "", Ctype, Dtype, N[k])); in main() 395 …tscInt_FMT "x%" PetscInt_FMT "\n", MatProductTypes[MATPRODUCT_AtB], Atype, AM, AN, Ctype, CM, CN)); in main() [all …]
|
| /petsc/src/mat/impls/shell/ |
| H A D | shell.c | 868 …orCode (*numeric)(Mat, Mat, Mat, void *), PetscCtxDestroyFn *destroy, MatType Btype, MatType Ctype) in MatShellSetMatProductOperation() argument 876 if (Ctype) PetscAssertPointer(Ctype, 7); in MatShellSetMatProductOperation() 877 … *), PetscCtxDestroyFn *, MatType, MatType), (A, ptype, symbolic, numeric, destroy, Btype, Ctype)); in MatShellSetMatProductOperation() 881 …orCode (*numeric)(Mat, Mat, Mat, void *), PetscCtxDestroyFn *destroy, MatType Btype, MatType Ctype) in MatShellSetMatProductOperation_Shell() argument 896 PetscCall(PetscStrcmp(Ctype, Cnames->rname, &flg)); in MatShellSetMatProductOperation_Shell() 902 Ctype = Cnames ? (size > 1 ? Cnames->mname : Cnames->sname) : Ctype; in MatShellSetMatProductOperation_Shell() 904 …MatShellSetMatProductOperation_Private(A, ptype, symbolic, numeric, destroy, composedname, Ctype)); in MatShellSetMatProductOperation_Shell()
|
| /petsc/src/mat/interface/ |
| H A D | matproduct.c | 294 char *Btype = NULL, *Ctype = NULL; in MatProductNumeric_X_Dense() local 314 PetscCall(PetscStrallocpy(((PetscObject)C)->type_name, &Ctype)); in MatProductNumeric_X_Dense() 349 PetscCall(MatConvert(C, Ctype, MAT_INPLACE_MATRIX, &C)); in MatProductNumeric_X_Dense() 356 PetscCall(PetscFree(Ctype)); in MatProductNumeric_X_Dense()
|