Lines Matching refs:rowidxs
3636 PetscInt *rowidxs, *colidxs; in MatLoad_SeqBAIJ_Binary() local
3671 PetscCall(PetscMalloc1(m + 1, &rowidxs)); in MatLoad_SeqBAIJ_Binary()
3672 PetscCall(PetscViewerBinaryRead(viewer, rowidxs + 1, m, NULL, PETSC_INT)); in MatLoad_SeqBAIJ_Binary()
3673 rowidxs[0] = 0; in MatLoad_SeqBAIJ_Binary()
3674 for (i = 0; i < m; i++) rowidxs[i + 1] += rowidxs[i]; in MatLoad_SeqBAIJ_Binary()
3675 sum = rowidxs[m]; in MatLoad_SeqBAIJ_Binary()
3679 PetscCall(PetscMalloc2(rowidxs[m], &colidxs, nz, &matvals)); in MatLoad_SeqBAIJ_Binary()
3680 PetscCall(PetscViewerBinaryRead(viewer, colidxs, rowidxs[m], NULL, PETSC_INT)); in MatLoad_SeqBAIJ_Binary()
3681 PetscCall(PetscViewerBinaryRead(viewer, matvals, rowidxs[m], NULL, PETSC_SCALAR)); in MatLoad_SeqBAIJ_Binary()
3695 for (j = rowidxs[row]; j < rowidxs[row + 1]; j++) { in MatLoad_SeqBAIJ_Binary()
3710 PetscInt row = i, s = rowidxs[i], e = rowidxs[i + 1]; in MatLoad_SeqBAIJ_Binary()
3714 PetscCall(PetscFree(rowidxs)); in MatLoad_SeqBAIJ_Binary()