| /petsc/src/mat/impls/shell/ |
| H A D | shellcnv.c | 10 PetscInt cst, cen, Nbs, mbs, nbs, rbs, cbs; in MatConvert_Shell() local 15 PetscCall(MatGetOwnershipRangeColumn(oldmat, &cst, &cen)); in MatConvert_Shell() 29 cst = cst / cbs; in MatConvert_Shell() 35 onnzu[i] = PetscMax(Nbs - (cst + nbs), 0); in MatConvert_Shell() 52 if (i >= cst && i < cen) { in MatConvert_Shell() 54 array[i - cst] = 1.0; in MatConvert_Shell()
|
| H A D | shell.c | 256 PetscInt cum, rst, cst, i; in MatZeroRowsColumns_Local_Shell() local 262 PetscCall(MatGetOwnershipRangeColumn(mat, &cst, NULL)); in MatZeroRowsColumns_Local_Shell() 303 for (i = 0; i < nc; i++) idxs[i] = cols[i] + cst; in MatZeroRowsColumns_Local_Shell()
|
| /petsc/src/binding/petsc4py/test/ |
| H A D | test_mat_dense.py | 75 cst = min(2,N) 78 B = self.A.getDenseSubMatrix(rst, ren, cst, cen) 79 self.assertTrue(B.getSize(), (ren - rst, cen - cst)) 82 B = self.A.getDenseSubMatrix(cbegin=cst, rbegin=rst, cend=cen, rend=ren) 83 self.assertTrue(B.getSize(), (ren - rst, cen - cst))
|
| /petsc/src/mat/tests/ |
| H A D | ex221.c | 139 PetscInt rst, ren, cst, cen; in main() local 142 PetscCall(MatGetOwnershipRangeColumn(A, &cst, &cen)); in main() 144 PetscCall(ISCreateStride(PetscObjectComm((PetscObject)A), (cen - cst) / 2, cst, 1, &c)); in main() 343 PetscInt rst, ren, cst, cen; in main() local 346 PetscCall(MatGetOwnershipRangeColumn(A, &cst, &cen)); in main() 348 PetscCall(ISCreateStride(PetscObjectComm((PetscObject)A), (cen - cst) / 2, cst, 1, &c)); in main()
|
| H A D | ex23.c | 25 PetscInt rst, ren, cst, cen, nr, nc, rbs = 1, cbs = 1; in main() local 464 PetscCall(MatGetOwnershipRange(A, &cst, &cen)); in main() 468 PetscCall(MatGetOwnershipRangeColumn(A, &cst, &cen)); in main() 481 …for (i = 0; i < nc; i++) PetscCall(ISCreateStride(PETSC_COMM_WORLD, cen - cst, i + cst, nc, &cols[… in main()
|
| /petsc/src/mat/impls/aij/mpi/mpihipsparse/ |
| H A D | mpiaijhipsparse.hip.cxx | 249 PetscInt cst, i, dn, on, *gidx; in MatMPIAIJGetLocalMatMerge_MPIAIJHIPSPARSE() local 253 PetscCall(MatGetOwnershipRangeColumn(A, &cst, NULL)); in MatMPIAIJGetLocalMatMerge_MPIAIJHIPSPARSE() 255 for (i = 0; i < dn; i++) gidx[i] = cst + i; in MatMPIAIJGetLocalMatMerge_MPIAIJHIPSPARSE()
|
| /petsc/src/mat/impls/aij/mpi/mpicusparse/ |
| H A D | mpiaijcusparse.cu | 249 PetscInt cst, i, dn, on, *gidx; in MatMPIAIJGetLocalMatMerge_MPIAIJCUSPARSE() local 253 PetscCall(MatGetOwnershipRangeColumn(A, &cst, NULL)); in MatMPIAIJGetLocalMatMerge_MPIAIJCUSPARSE() 255 for (i = 0; i < dn; i++) gidx[i] = cst + i; in MatMPIAIJGetLocalMatMerge_MPIAIJCUSPARSE()
|
| /petsc/src/mat/impls/aij/mpi/kokkos/ |
| H A D | mpiaijkok.kokkos.cxx | 104 PetscInt cst, i, dn, on, *gidx; in MatMPIAIJGetLocalMatMerge_MPIAIJKokkos() local 107 PetscCall(MatGetOwnershipRangeColumn(mat, &cst, NULL)); in MatMPIAIJGetLocalMatMerge_MPIAIJKokkos() 109 for (i = 0; i < dn; i++) gidx[i] = cst + i; in MatMPIAIJGetLocalMatMerge_MPIAIJKokkos()
|
| /petsc/src/mat/impls/nest/ |
| H A D | matnest.c | 1885 PetscInt ir, cst; in MatConvert_Nest_SeqAIJ_fast() local 1891 PetscCall(ISStrideGetInfo(nest->isglobal.col[j], &cst, NULL)); in MatConvert_Nest_SeqAIJ_fast() 1896 jj[ist + ij] = *njj + cst; in MatConvert_Nest_SeqAIJ_fast()
|
| /petsc/src/mat/impls/aij/mpi/ |
| H A D | mpiaij.c | 5331 PetscInt cst, *gidx; in MatMPIAIJGetLocalMatMerge() local 5333 PetscCall(MatGetOwnershipRangeColumn(A, &cst, NULL)); in MatMPIAIJGetLocalMatMerge() 5335 for (i = 0; i < dn; i++) gidx[i] = cst + i; in MatMPIAIJGetLocalMatMerge()
|