| /petsc/src/sys/classes/draw/impls/x/ |
| H A D | xtext.c | 135 max = PetscMax(PetscAbsInt(nfonts[0].w - w), PetscAbsInt(nfonts[0].h - h)); in PetscDrawXiMatchFontSize() 137 tmp = PetscMax(PetscAbsInt(nfonts[i].w - w), PetscAbsInt(nfonts[i].h - h)); in PetscDrawXiMatchFontSize()
|
| /petsc/src/dm/dt/space/impls/ptrimmed/ |
| H A D | spaceptrimmed.c | 22 …%" PetscInt_FMT "/\\%" PetscInt_FMT ")\n", PetscAbsInt(f), f < 0 ? "*" : "", sp->degree, tdegree, … in PetscSpacePTrimmedView_Ascii() 63 PetscCall(PetscDTBinomialInt(sp->Nv, PetscAbsInt(pt->formDegree), &Nf)); in PetscSpaceSetUp_Ptrimmed() 102 …sp->maxDegree = (pt->formDegree == 0 || PetscAbsInt(pt->formDegree) == sp->Nv) ? sp->degree : sp->… in PetscSpaceSetUp_Ptrimmed() 103 if (pt->formDegree == 0 || PetscAbsInt(pt->formDegree) == sp->Nv) { in PetscSpaceSetUp_Ptrimmed() 124 PetscCall(PetscDTBinomialInt(sp->Nv, PetscAbsInt(pt->formDegree), &Nf)); in PetscSpaceGetDimension_Ptrimmed() 160 PetscCall(PetscDTBinomialInt(dim, PetscAbsInt(f), &Nf)); in PetscSpaceEvaluate_Ptrimmed() 309 if ((dim - height) <= PetscAbsInt(pt->formDegree)) { in PetscSpaceGetHeightSubspace_Ptrimmed() 316 PetscCall(PetscDTBinomialInt(dim, PetscAbsInt(pt->formDegree), &Nf)); in PetscSpaceGetHeightSubspace_Ptrimmed() 317 PetscCall(PetscDTBinomialInt(dim - height, PetscAbsInt(pt->formDegree), &Nfsub)); in PetscSpaceGetHeightSubspace_Ptrimmed()
|
| /petsc/src/dm/dt/space/impls/ptrimmed/tests/ |
| H A D | ex1.c | 22 PetscCall(PetscDTBinomialInt(dim, PetscAbsInt(formDegree), &Nf)); in test() 29 …PetscCall(PetscDTPTrimmedSize(dim, formDegree == 0 ? degree : degree + 1, PetscAbsInt(formDegree),… in test() 34 maxDexp = (PetscAbsInt(formDegree) == dim || formDegree == 0) ? degree : degree + 1; in test()
|
| /petsc/src/dm/dt/interface/ |
| H A D | dtaltv.c | 329 …PetscCheck(PetscAbsInt(k) <= N && PetscAbsInt(k) <= M, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, … in PetscDTAltVPullback() 331 PetscCall(PetscDTBinomialInt(M, PetscAbsInt(k), &Mk)); in PetscDTAltVPullback() 332 PetscCall(PetscDTBinomialInt(N, PetscAbsInt(k), &Nk)); in PetscDTAltVPullback() 392 PetscCall(PetscDTBinomialInt(M, PetscAbsInt(k), &Mk)); in PetscDTAltVPullback() 393 PetscCall(PetscDTBinomialInt(N, PetscAbsInt(k), &Nk)); in PetscDTAltVPullback() 394 PetscCall(PetscDTFactorialInt(PetscAbsInt(k), &Nf)); in PetscDTAltVPullback() 462 …PetscCheck(PetscAbsInt(k) <= N && PetscAbsInt(k) <= M, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, … in PetscDTAltVPullbackMatrix() 466 PetscCall(PetscDTBinomialInt(M, PetscAbsInt(k), &Mk)); in PetscDTAltVPullbackMatrix() 467 PetscCall(PetscDTBinomialInt(N, PetscAbsInt(k), &Nk)); in PetscDTAltVPullbackMatrix() 510 PetscCall(PetscDTBinomialInt(M, PetscAbsInt(k), &Mk)); in PetscDTAltVPullbackMatrix() [all …]
|
| H A D | dt.c | 506 …PetscAbsInt(formDegree), PetscObjectComm((PetscObject)q), PETSC_ERR_ARG_INCOMP, "Cannot represent … in PetscQuadraturePushForward() 508 PetscCall(PetscDTBinomialInt(dim, PetscAbsInt(formDegree), &formSize)); in PetscQuadraturePushForward() 511 PetscCall(PetscDTBinomialInt(imageDim, PetscAbsInt(formDegree), &imageFormSize)); in PetscQuadraturePushForward() 1254 formDegree = PetscAbsInt(formDegree); in PetscDTPTrimmedSize() 1270 formDegree = PetscAbsInt(formDegreeOrig); in PetscDTPTrimmedEvalJet_Internal() 2464 d = PetscAbsInt(PetscMin(0, PetscMax(PetscMax(PetscMax(PetscSqr(d1) / d2, 2 * d1), d3), d4))); in PetscDTTanhSinhIntegrate() 2581 d = PetscAbsInt(PetscMin(0, PetscMax(PetscMax(PetscMax(PetscSqr(d1) / d2, 2 * d1), d3), d4))); in PetscDTTanhSinhIntegrateMPFR()
|
| /petsc/src/dm/dt/dualspace/impls/lagrange/ |
| H A D | dspacelagrange.c | 632 PetscCall(PetscDTBinomialInt(dim, PetscAbsInt(formDegree), &Nk)); in PetscLagNodeIndicesPushForward() 633 PetscCall(PetscDTBinomialInt(pdim, PetscAbsInt(formDegree), &pNk)); in PetscLagNodeIndicesPushForward() 666 PetscCall(PetscDTBinomialInt(dim, PetscAbsInt(formDegree), &Nk)); in PetscLagNodeIndicesTensor() 667 PetscCall(PetscDTBinomialInt(dimT, PetscAbsInt(kT), &NkT)); in PetscLagNodeIndicesTensor() 668 PetscCall(PetscDTBinomialInt(dimF, PetscAbsInt(kF), &NkF)); in PetscLagNodeIndicesTensor() 669 PetscCall(PetscDTBinomialInt(dim, PetscAbsInt(kT), &MkT)); in PetscLagNodeIndicesTensor() 670 PetscCall(PetscDTBinomialInt(dim, PetscAbsInt(kF), &MkF)); in PetscLagNodeIndicesTensor() 697 sign = (PetscAbsInt(kT * kF) & 1) ? -1. : 1.; in PetscLagNodeIndicesTensor() 710 PetscCall(PetscDTAltVStar(dim, PetscAbsInt(kF), 1, workF2, workF)); in PetscLagNodeIndicesTensor() 713 PetscCall(PetscDTAltVWedgeMatrix(dim, PetscAbsInt(kF), PetscAbsInt(kT), workF, wedgeMat)); in PetscLagNodeIndicesTensor() [all …]
|
| /petsc/src/dm/dt/tests/ |
| H A D | ex13.c | 15 PetscCall(PetscDTBinomialInt(dim, PetscAbsInt(form), &Nf)); in constructTabulationAndMass() 153 if (PetscAbsInt(form) < dim) { in test() 168 PetscCall(PetscMalloc1(Nf1 * (PetscAbsInt(form) + 1), &pattern)); in test() 169 PetscCall(PetscDTAltVInteriorPattern(dim, PetscAbsInt(form) + 1, pattern)); in test() 174 for (PetscInt a = 0; a < Nf1 * (PetscAbsInt(form) + 1); a++) { in test()
|
| H A D | ex7.c | 16 k = PetscAbsInt(k); in CheckPullback()
|
| /petsc/src/mat/graphops/order/ |
| H A D | degree.c | 62 jstop = PetscAbsInt(i__2) - 1; in SPARSEPACKdegree()
|
| H A D | fndsep.c | 88 jstop = PetscAbsInt(i__2) - 1; in SPARSEPACKfndsep()
|
| H A D | fn1wd.c | 94 kstop = PetscAbsInt(i__2) - 1; in SPARSEPACKfn1wd()
|
| /petsc/include/ |
| H A D | petscmath.h | 701 #define PetscAbsInt(a) (((a) < 0) ? (-(a)) : (a)) macro 1236 a = PetscAbsInt(a); in PetscGCD() 1237 b = PetscAbsInt(b); in PetscGCD() 1264 a = PetscAbsInt(a); in PetscLCM() 1265 b = PetscAbsInt(b); in PetscLCM()
|
| /petsc/src/dm/dt/dualspace/impls/lagrange/tests/ |
| H A D | ex1.c | 32 formDegree = PetscAbsInt(formDegree); in ExpectedNumDofs_Total() 90 formDegree = PetscAbsInt(formDegree); in ExpectedNumDofs_Interior() 171 PetscCall(PetscDTBinomialInt(dim, PetscAbsInt(formDegree), &Nk)); in testLagrange()
|
| /petsc/src/vec/is/is/impls/stride/ |
| H A D | stride.c | 251 if (!is->map->n || (PetscAbsInt(sub->step) == 1 && is->min == 0)) *flg = PETSC_TRUE; in ISPermutationLocal_Stride()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexproject.c | 799 …PetscCheck(PetscAbsInt(dimProj - dim) <= 1 && PetscAbsInt(dimProj - dimIn) <= 1 && PetscAbsInt(dim… in DMProjectLocal_Generic_Plex()
|
| /petsc/src/dm/dt/dualspace/interface/ |
| H A D | dualspace.c | 186 …-forms %swith %" PetscInt_FMT " components, size %" PetscInt_FMT "\n", PetscAbsInt(sp->k), sp->k <… in PetscDualSpaceView_ASCII() 1820 …rted %" PetscInt_FMT "-form on %" PetscInt_FMT "-dimensional reference cell", PetscAbsInt(k), dim); in PetscDualSpaceSetFormDegree() 1897 PetscCall(PetscDTBinomialInt(dim, PetscAbsInt(dsp->k), &Nk)); in PetscDualSpaceTransform()
|
| /petsc/src/dm/dt/dualspace/impls/sum/ |
| H A D | dualspacesum.c | 520 PetscCall(PetscDTBinomialInt(dim, PetscAbsInt(k), &Nk)); in PetscDualSpaceCreateFacetSubspace_Sum() 522 PetscCall(PetscDTBinomialInt(pointDim, PetscAbsInt(k), &Nknew)); in PetscDualSpaceCreateFacetSubspace_Sum()
|
| /petsc/src/dm/impls/stag/ |
| H A D | stagmulti.c | 223 *a = (factor - PetscAbsInt(index)) / (PetscScalar)(factor * factor); in SetRestrictionCoefficientVertex_Private()
|