Home
last modified time | relevance | path

Searched refs:cols1 (Results 1 – 6 of 6) sorted by relevance

/petsc/src/mat/tests/
H A Dex47.c13 const PetscInt *cols1, *cols2; in main() local
84 PetscCall(MatGetRow(A, row, &ncols1, &cols1, &vals1)); in main()
88 while (cols2[j] != cols1[i]) j++; in main()
93 PetscCall(MatRestoreRow(A, row, &ncols1, &cols1, &vals1)); in main()
H A Dex53.c15 const PetscInt *cols1, *cols2; in main() local
133 PetscCall(MatGetRow(A, row, &ncols1, &cols1, &v1)); in main()
137 while (cols2[j] != cols1[i]) i++; in main()
142 PetscCall(MatRestoreRow(A, row, &ncols1, &cols1, &v1)); in main()
/petsc/src/ksp/ksp/tests/
H A Dex21.c40 PetscInt rows[4], cols0[5], cols1[5], cols2[3], cols3[3]; in Create() local
54 cols1[0] = r + 1; in Create()
55 cols1[1] = r + 2; in Create()
56 cols1[2] = (r + 4 + 1) % M; in Create()
57 cols1[3] = (r + M - 4 + 1) % M; in Create()
86 PetscCall(MatSetValues(A, 1, &rows[1], 4, cols1, vals1, INSERT_VALUES)); in Create()
/petsc/src/tao/constrained/impls/ipm/
H A Dpdipm.c849 PetscInt *dnz, *onz, rjstart, nx_all, *nce_all, *Jranges, cols1[2]; in TaoSetup_PDIPM() local
1219 cols1[0] = rstart + pdipm->off_lambdai + i; in TaoSetup_PDIPM()
1220 cols1[1] = row; in TaoSetup_PDIPM()
1221 PetscCall(MatPreallocateSet(row, 2, cols1, dnz, onz)); in TaoSetup_PDIPM()
/petsc/src/mat/impls/aij/seq/
H A Dinode.c4049 PetscInt *cols1, *cols2, *ns; in MatSeqAIJCheckInode_FactorLU() local
4064 PetscCall(PetscMalloc2(m, &cols1, m, &cols2)); in MatSeqAIJCheckInode_FactorLU()
4069 PetscCall(MatGetRow_FactoredLU(cols1, nzl1, nzu1, nzx, ai, aj, adiag, i)); in MatSeqAIJCheckInode_FactorLU()
4078 PetscCall(PetscArraycmp(cols1, cols2, nzx, &flag)); in MatSeqAIJCheckInode_FactorLU()
4085 PetscCall(PetscFree2(cols1, cols2)); in MatSeqAIJCheckInode_FactorLU()
/petsc/src/mat/impls/aij/mpi/
H A Dmpiaij.c7779 const PetscInt *cols1, *cols2; in MatCreateGraph_Simple_AIJ() local
7787 PetscCall(MatGetRow(c, brow + ii, &nc1, &cols1, NULL)); in MatCreateGraph_Simple_AIJ()
7791 if (cols1[jj] != cols2[jj]) ok = 0; in MatCreateGraph_Simple_AIJ()
7792 if (cols1[jj] % bs != jj % bs) ok = 0; in MatCreateGraph_Simple_AIJ()
7795 PetscCall(MatRestoreRow(c, brow + ii, &nc1, &cols1, NULL)); in MatCreateGraph_Simple_AIJ()