Searched refs:A12 (Results 1 – 3 of 3) sorted by relevance
| /petsc/src/ksp/ksp/tests/ |
| H A D | ex22.c | 7 Mat A11, A12, A21, A22, A, tmp[2][2]; in test_solve() local 38 PetscCall(MatCreate(PETSC_COMM_WORLD, &A12)); in test_solve() 39 PetscCall(MatSetSizes(A12, PETSC_DECIDE, PETSC_DECIDE, n, np)); in test_solve() 40 PetscCall(MatSetType(A12, MATAIJ)); in test_solve() 41 PetscCall(MatSeqAIJSetPreallocation(A12, np, NULL)); in test_solve() 42 PetscCall(MatMPIAIJSetPreallocation(A12, np, NULL, np, NULL)); in test_solve() 45 for (j = 0; j < np; j++) PetscCall(MatSetValue(A12, i, j, i + j * n, INSERT_VALUES)); in test_solve() 47 PetscCall(MatSetValue(A12, 2, 1, 4, INSERT_VALUES)); in test_solve() 48 PetscCall(MatAssemblyBegin(A12, MAT_FINAL_ASSEMBLY)); in test_solve() 49 PetscCall(MatAssemblyEnd(A12, MAT_FINAL_ASSEMBLY)); in test_solve() [all …]
|
| H A D | ex11.c | 11 Mat A11, A22, A12, A21; in replace_submats() local 17 PetscCall(MatCreateSubMatrix(A, isu, isp, MAT_INITIAL_MATRIX, &A12)); in replace_submats() 21 PetscCall(MatDuplicate(A12, MAT_COPY_VALUES, &nA12)); in replace_submats() 33 PetscCall(MatDestroy(&A12)); in replace_submats() 43 PetscErrorCode LSCLoadTestOperators(Mat *A11, Mat *A12, Mat *A21, Mat *A22, Vec *b1, Vec *b2) in LSCLoadTestOperators() argument 51 PetscCall(MatCreate(PETSC_COMM_WORLD, A12)); in LSCLoadTestOperators() 65 PetscCall(MatLoad(*A12, viewer)); in LSCLoadTestOperators()
|
| /petsc/src/mat/tutorials/ |
| H A D | ex2.c | 13 Mat A, A11, A12, A21, A22; in main() local 69 PetscCall(MatCreate(PETSC_COMM_SELF, &A12)); in main() 70 PetscCall(MatSetSizes(A12, size1, size2, size1, size2)); in main() 71 PetscCall(MatSetType(A12, MATSEQDENSE)); in main() 72 PetscCall(MatSeqDenseSetPreallocation(A12, b + size1 * size)); in main() 73 PetscCall(MatDenseSetLDA(A12, size)); in main() 74 PetscCall(MatAssemblyBegin(A12, MAT_FINAL_ASSEMBLY)); in main() 75 PetscCall(MatAssemblyEnd(A12, MAT_FINAL_ASSEMBLY)); in main() 104 PetscCall(MatMultAdd(A12, X2, Z1, Z1)); in main() 119 PetscCall(MatSetValues(A12, 1, &i, 1, &j, &v, INSERT_VALUES)); in main() [all …]
|