Home
last modified time | relevance | path

Searched refs:idxb (Results 1 – 2 of 2) sorted by relevance

/petsc/src/mat/impls/baij/mpi/
H A Dmpibaij.c60 PetscInt i, *idxb = NULL, m = A->rmap->n, bs = A->cmap->bs; in MatGetRowMaxAbs_MPIBAIJ() local
77 PetscCall(PetscMalloc1(m, &idxb)); in MatGetRowMaxAbs_MPIBAIJ()
78 PetscCall(MatGetRowMaxAbs(a->B, vB, idxb)); in MatGetRowMaxAbs_MPIBAIJ()
85 if (idx) idx[i] = bs * a->garray[idxb[i] / bs] + (idxb[i] % bs); in MatGetRowMaxAbs_MPIBAIJ()
88 …Scalar(vb[i]) && idxb[i] != -1 && idx[i] > bs * a->garray[idxb[i] / bs] + (idxb[i] % bs)) idx[i] =… in MatGetRowMaxAbs_MPIBAIJ()
94 PetscCall(PetscFree(idxb)); in MatGetRowMaxAbs_MPIBAIJ()
/petsc/src/mat/impls/aij/mpi/
H A Dmpiaij.c2160 PetscInt i, *idxb = NULL, m = A->rmap->n; in MatGetRowMaxAbs_MPIAIJ() local
2177 PetscCall(PetscMalloc1(m, &idxb)); in MatGetRowMaxAbs_MPIAIJ()
2178 PetscCall(MatGetRowMaxAbs(a->B, vB, idxb)); in MatGetRowMaxAbs_MPIAIJ()
2185 if (idx) idx[i] = a->garray[idxb[i]]; in MatGetRowMaxAbs_MPIAIJ()
2188 …Scalar(va[i]) == PetscAbsScalar(vb[i]) && idxb[i] != -1 && idx[i] > a->garray[idxb[i]]) idx[i] = a… in MatGetRowMaxAbs_MPIAIJ()
2194 PetscCall(PetscFree(idxb)); in MatGetRowMaxAbs_MPIAIJ()