Home
last modified time | relevance | path

Searched refs:sums (Results 1 – 20 of 20) sorted by relevance

/petsc/src/mat/utils/
H A Dgetcolv.c115 PetscErrorCode MatGetColumnSumsRealPart(Mat A, PetscReal sums[]) in MatGetColumnSumsRealPart() argument
118 PetscCall(MatGetColumnReductions(A, REDUCTION_SUM_REALPART, sums)); in MatGetColumnSumsRealPart()
139 PetscErrorCode MatGetColumnSumsImaginaryPart(Mat A, PetscReal sums[]) in MatGetColumnSumsImaginaryPart() argument
142 PetscCall(MatGetColumnReductions(A, REDUCTION_SUM_IMAGINARYPART, sums)); in MatGetColumnSumsImaginaryPart()
163 PetscErrorCode MatGetColumnSums(Mat A, PetscScalar sums[]) in MatGetColumnSums() argument
172 PetscCall(MatGetColumnSumsRealPart(A, sums)); in MatGetColumnSums()
175 PetscCall(PetscArrayzero(sums, n)); in MatGetColumnSums()
178 for (i = 0; i < n; i++) sums[i] = work[i]; in MatGetColumnSums()
180 for (i = 0; i < n; i++) sums[i] += work[i] * PETSC_i; in MatGetColumnSums()
/petsc/src/mat/tests/output/
H A Dex9_1.out7 matrix information (global sums):
/petsc/src/vec/is/is/utils/
H A Discoloring.c519 PetscInt n, *starts = NULL, *sums = NULL, *lsizes = NULL, *newi = NULL; in ISPartitioningToNumbering() local
548 PetscCall(PetscMalloc3(np, &lsizes, np, &starts, np, &sums)); in ISPartitioningToNumbering()
551 PetscCallMPI(MPIU_Allreduce(lsizes, sums, np, MPIU_INT, MPI_SUM, comm)); in ISPartitioningToNumbering()
555 sums[i] += sums[i - 1]; in ISPartitioningToNumbering()
556 starts[i] += sums[i - 1]; in ISPartitioningToNumbering()
564 PetscCall(PetscFree3(lsizes, starts, sums)); in ISPartitioningToNumbering()
/petsc/src/ksp/ksp/tutorials/output/
H A Dex55_hypre_device.out36 Maximum row sums 0.9
H A Dex55_hypre_device_alt.out34 Maximum row sums 0.9
H A Dex49_hypre_nullspace_alt.out29 Maximum row sums 0.9
H A Dex49_hypre_nullspace.out30 Maximum row sums 0.9
/petsc/src/ksp/ksp/tests/output/
H A Dex3_hypre.out22 Maximum row sums 0.9
H A Dex3_hypre_alt.out22 Maximum row sums 0.9
/petsc/src/ksp/pc/tests/output/
H A Dex10_1.out13 Maximum row sums 1.
/petsc/src/mat/impls/kaij/
H A Dkaij.c658 PetscScalar *y, *sums; in MatMultAdd_SeqKAIJ() local
680 sums = y + p * i; in MatMultAdd_SeqKAIJ()
682 for (k = 0; k < p; k++) sums[k] += v[jrow + j] * x[q * idx[jrow + j] + k]; in MatMultAdd_SeqKAIJ()
690 sums = y + p * i; in MatMultAdd_SeqKAIJ()
693 for (l = 0; l < q; l++) sums[k] += v[jrow + j] * t[k + l * p] * x[q * idx[jrow + j] + l]; in MatMultAdd_SeqKAIJ()
705 sums = y + p * i; in MatMultAdd_SeqKAIJ()
709 for (k = 0; k < p; k++) sums[k] += s[k + j * p] * bx[j]; in MatMultAdd_SeqKAIJ()
/petsc/src/mat/impls/maij/
H A Dmaij.c349 PetscScalar *y, *sums; in MatMult_SeqMAIJ_N() local
364 sums = y + dof * i; in MatMult_SeqMAIJ_N()
366 for (k = 0; k < dof; k++) sums[k] += v[jrow] * x[dof * idx[jrow] + k]; in MatMult_SeqMAIJ_N()
382 PetscScalar *y, *sums; in MatMultAdd_SeqMAIJ_N() local
397 sums = y + dof * i; in MatMultAdd_SeqMAIJ_N()
399 for (k = 0; k < dof; k++) sums[k] += v[jrow] * x[dof * idx[jrow] + k]; in MatMultAdd_SeqMAIJ_N()
/petsc/src/vec/vec/utils/
H A Dvinv.c615 PetscErrorCode VecStrideSumAll(Vec v, PetscScalar sums[]) in VecStrideSumAll() argument
625 PetscAssertPointer(sums, 2); in VecStrideSumAll()
638 PetscCallMPI(MPIU_Allreduce(local_sums, sums, ibs, MPIU_SCALAR, MPIU_SUM, comm)); in VecStrideSumAll()
/petsc/src/mat/impls/baij/mpi/
H A Dmpibaij.c756 PetscReal *sums; in MatNorm_MPIBAIJ() local
757 PetscCall(PetscMalloc1(bs, &sums)); in MatNorm_MPIBAIJ()
760 for (row = 0; row < bs; row++) sums[row] = 0.0; in MatNorm_MPIBAIJ()
766 sums[row] += PetscAbsScalar(*v); in MatNorm_MPIBAIJ()
776 sums[row] += PetscAbsScalar(*v); in MatNorm_MPIBAIJ()
782 if (sums[row] > sum) sum = sums[row]; in MatNorm_MPIBAIJ()
786 PetscCall(PetscFree(sums)); in MatNorm_MPIBAIJ()
/petsc/src/ksp/pc/impls/bddc/
H A Dbddcschurs.c1155 PetscScalar *array, sum = 0., one = 1., *sums; in PCBDDCSubSchursSetUp() local
1160 PetscCall(PetscCalloc1(benign_n, &sums)); in PCBDDCSubSchursSetUp()
1170 for (j = 0; j < nz - 1; j++) sums[k] -= AIIm1_data[idxs[j] + sizeA * i]; in PCBDDCSubSchursSetUp()
1188 sum = sums[k]; in PCBDDCSubSchursSetUp()
1209 PetscCall(PetscFree(sums)); in PCBDDCSubSchursSetUp()
H A Dbddcprivate.c4967 PetscScalar *sums; in PCBDDCSetUpCorrection() local
4971 PetscCall(PetscMalloc1(n_vertices, &sums)); in PCBDDCSetUpCorrection()
4980 sums[j] = 0.; in PCBDDCSetUpCorrection()
4981 for (PetscInt k = 0; k < nz; k++) sums[j] += marr[idxs_zero[k] + j * n_R]; in PCBDDCSetUpCorrection()
4986 …; k++) PetscCall(MatSetValue(*coarse_submat, idx_V[idxs[j]], idx_V[k], val * sums[k], ADD_VALUES)); in PCBDDCSetUpCorrection()
4991 PetscCall(PetscFree(sums)); in PCBDDCSetUpCorrection()
/petsc/doc/changes/
H A D316.md129 …`MatGetColumnSumsRealPart()`, `MatGetColumnSumsImaginaryPart()` to compute sums over matrix columns
/petsc/share/petsc/matlab/
H A Dlaplacian.m72 % conditions using tensor sums of 1D Laplacians. For more information on
/petsc/doc/manual/
H A Dts.md1101 …, the lumped mass matrix is diagonal (e.g., computed via collocated quadrature or row sums of $M$).
H A Dtao.md2447 Optimization Using No Derivatives for sums of Squares) algorithm