Searched refs:cen (Results 1 – 4 of 4) sorted by relevance
| /petsc/src/binding/petsc4py/test/ |
| H A D | test_mat_dense.py | 77 cen = min(5,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/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() 52 if (i >= cst && i < cen) { in MatConvert_Shell()
|