Home
last modified time | relevance | path

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

/petsc/src/mat/graphops/order/
H A Dspectral.c21 PetscScalar *newVals; in MatCreateLaplacian() local
64 PetscCall(PetscMalloc2(colMax, &newCols, colMax, &newVals)); in MatCreateLaplacian()
75 newVals[newcols] = dnnz[r - rStart] + onnz[r - rStart] - 1; in MatCreateLaplacian()
80 newVals[newcols] = -1.0; in MatCreateLaplacian()
87 newVals[newcols] = dnnz[r - rStart] + onnz[r - rStart] - 1; in MatCreateLaplacian()
91 PetscCall(MatSetValues(*L, 1, &r, newcols, newCols, newVals, INSERT_VALUES)); in MatCreateLaplacian()
96 PetscCall(PetscFree2(newCols, newVals)); in MatCreateLaplacian()
/petsc/src/mat/utils/
H A Daxpy.c497 PetscScalar *newVals; in MatFilter() local
507 PetscCall(MatDenseGetArray(a, &newVals)); in MatFilter()
509 …Rows < rStart; ++maxRows) newVals[maxRows + colMax * r] = PetscAbsScalar(newVals[maxRows + colMax … in MatFilter()
511 PetscCall(MatDenseRestoreArray(a, &newVals)); in MatFilter()
531 PetscCall(PetscCalloc2(colMax, &newCols, colMax, &newVals)); in MatFilter()
549 PetscCall(MatSetValues(A, 1, &r, newcols, newCols, newVals, INSERT_VALUES)); in MatFilter()
555 PetscCall(PetscFree2(newCols, newVals)); in MatFilter()