| /petsc/src/sys/classes/draw/impls/x/ |
| H A D | xtone.c | 10 …iangle_X(PetscDraw_X *win, int x1, int y_1, int t1, int x2, int y2, int t2, int x3, int y3, int t3) in PetscDrawInterpolatedTriangle_X() argument 22 if (y_1 < 0 && y2 < 0 && y3 < 0) PetscFunctionReturn(PETSC_SUCCESS); in PetscDrawInterpolatedTriangle_X() 24 if (y_1 > win->h && y2 > win->h && y3 > win->h) PetscFunctionReturn(PETSC_SUCCESS); in PetscDrawInterpolatedTriangle_X() 43 if (y_1 > y3) { in PetscDrawInterpolatedTriangle_X() 44 SWAP(y_1, y3); in PetscDrawInterpolatedTriangle_X() 48 if (y2 > y3) { in PetscDrawInterpolatedTriangle_X() 49 SWAP(y2, y3); in PetscDrawInterpolatedTriangle_X() 58 if (y3 != y_1) R_y3_y_1 = 1.0 / ((PetscReal)(y3 - y_1)); in PetscDrawInterpolatedTriangle_X() 98 if (y2 >= y3) PetscFunctionReturn(PETSC_SUCCESS); in PetscDrawInterpolatedTriangle_X() 109 if (y3 != y2) R_y3_y2 = 1.0 / ((PetscReal)(y3 - y2)); in PetscDrawInterpolatedTriangle_X() [all …]
|
| H A D | xops.c | 183 int x1, y_1, x2, y2, x3, y3; in PetscDrawTriangle_X() local 189 y3 = YTRANS(draw, XiWin, Y3); in PetscDrawTriangle_X() 190 PetscCall(PetscDrawInterpolatedTriangle_X(XiWin, x1, y_1, c1, x2, y2, c2, x3, y3, c3)); in PetscDrawTriangle_X()
|
| /petsc/src/vec/vec/impls/seq/ftn-kernels/ |
| H A D | fmdot.F90 | 11 PetscScalar, intent(in) :: x(*), y1(*), y2(*), y3(*), y4(*) 19 PETSC_AssertAlignx(16, y3(1)) 25 sum3 = sum3 + x(i)*PetscConj(y3(i)) 34 PetscScalar, intent(in) :: x(*), y1(*), y2(*), y3(*) 42 PETSC_AssertAlignx(16, y3(1)) 47 sum3 = sum3 + x(i)*PetscConj(y3(i))
|
| H A D | fmaxpy.F90 | 13 PetscScalar, intent(in) :: y0(*), y1(*), y2(*), y3(*) 20 PETSC_AssertAlignx(16, y3(1)) 22 x(1:n) = x(1:n) + (a0*y0(1:n) + a1*y1(1:n) + a2*y2(1:n) + a3*y3(1:n))
|
| /petsc/src/sys/classes/draw/interface/ |
| H A D | dtri.c | 24 …eal x1, PetscReal y_1, PetscReal x2, PetscReal y2, PetscReal x3, PetscReal y3, int c1, int c2, int… in PetscDrawTriangle() argument 28 PetscUseTypeMethod(draw, triangle, x1, y_1, x2, y2, x3, y3, c1, c2, c3); in PetscDrawTriangle() 222 PetscReal x1, x2, x3, x4, y_1, y2, y3, y4; in PetscDrawTensorContourPatch() local 236 y3 = y[j + 1]; in PetscDrawTensorContourPatch() 239 y4 = y3; in PetscDrawTensorContourPatch() 242 PetscCall(PetscDrawTriangle(draw, x1, y_1, x2, y2, x3, y3, c1, c2, c3)); in PetscDrawTensorContourPatch() 243 PetscCall(PetscDrawTriangle(draw, x1, y_1, x3, y3, x4, y4, c1, c3, c4)); in PetscDrawTensorContourPatch()
|
| /petsc/src/snes/utils/dm/ |
| H A D | dminterpolatesnes.c | 463 const PetscScalar y3 = vertices[7]; in QuadMap_Private() local 467 const PetscScalar g_3 = y3 - y0; in QuadMap_Private() 469 const PetscScalar g_01 = y2 - y1 - y3 + y0; in QuadMap_Private() 500 const PetscScalar y3 = vertices[7]; in QuadJacobian_Private() local 502 const PetscScalar g_01 = y2 - y1 - y3 + y0; in QuadJacobian_Private() 516 values[3] = (y3 - y0 + g_01 * x) * 0.5; in QuadJacobian_Private() 636 const PetscScalar y3 = vertices[4]; in HexMap_Private() local 654 const PetscScalar g_3 = y3 - y0; in HexMap_Private() 660 const PetscScalar g_01 = y2 - y1 - y3 + y0; in HexMap_Private() 663 const PetscScalar g_12 = y7 - y3 - y4 + y0; in HexMap_Private() [all …]
|
| /petsc/src/dm/tests/ |
| H A D | ex2k.kokkos.cxx | 95 PetscScalarKokkosOffsetView3D y3; in main() local 141 PetscCall(DMDAVecGetKokkosOffsetView(da, y, &y3)); in main() 147 …KOKKOS_LAMBDA(PetscInt k, PetscInt j, PetscInt i) { y3(k, j, i) = 6 * x3(k, j, i) - x3(k - 1, j, i… in main() 151 PetscCall(DMDAVecRestoreKokkosOffsetView(da, y, &y3)); in main()
|
| /petsc/src/sys/classes/draw/impls/tikz/ |
| H A D | tikz.c | 106 …Real x1, PetscReal y1, PetscReal x2, PetscReal y2, PetscReal x3, PetscReal y3, int c1, int c2, int… in PetscDrawTriangle_TikZ() argument 112 …w, x1), YTRANS(draw, y1), XTRANS(draw, x2), YTRANS(draw, y2), XTRANS(draw, x3), YTRANS(draw, y3))); in PetscDrawTriangle_TikZ()
|
| /petsc/src/dm/impls/da/ |
| H A D | gr2.c | 32 PetscReal min, max, x1, x2, x3, x4, y_1, y2, y3, y4; in VecView_MPI_Draw_DA2d_Zoom() local 61 y3 = PetscRealPart(xy[2 * id + 1]); in VecView_MPI_Draw_DA2d_Zoom() 69 PetscCall(PetscDrawTriangle(draw, x1, y_1, x2, y2, x3, y3, c1, c2, c3)); in VecView_MPI_Draw_DA2d_Zoom() 70 PetscCall(PetscDrawTriangle(draw, x1, y_1, x3, y3, x4, y4, c1, c3, c4)); in VecView_MPI_Draw_DA2d_Zoom() 73 PetscCall(PetscDrawLine(draw, x2, y2, x3, y3, PETSC_DRAW_BLACK)); in VecView_MPI_Draw_DA2d_Zoom() 74 PetscCall(PetscDrawLine(draw, x3, y3, x4, y4, PETSC_DRAW_BLACK)); in VecView_MPI_Draw_DA2d_Zoom()
|
| /petsc/lib/petsc/conf/ |
| H A D | rules_util.mk | 272 y3=`echo $${y1} | grep ' 301 '`; \ 277 elif [[ "$${y3}D" != "D" ]] ; then \
|
| /petsc/src/vec/vec/impls/seq/kokkos/ |
| H A D | veckok.kokkos.cxx | 389 ConstPetscScalarKokkosView xv, y0, y1, y2, y3, y4, y5, y6, y7; in VecMultiDot_Verbose() local 401 PetscCall(VecGetKokkosView(yp[3], &y3)); in VecMultiDot_Verbose() 410 … += xv(i) * PetscConj(y1(i)); lsum2 += xv(i) * PetscConj(y2(i)); lsum3 += xv(i) * PetscConj(y3(i)); in VecMultiDot_Verbose() 418 PetscCall(VecRestoreKokkosView(yp[3], &y3)); in VecMultiDot_Verbose() 431 if (rem > 3) PetscCall(VecGetKokkosView(yp[3], &y3)); in VecMultiDot_Verbose() 441 … += xv(i) * PetscConj(y1(i)); lsum2 += xv(i) * PetscConj(y2(i)); lsum3 += xv(i) * PetscConj(y3(i)); in VecMultiDot_Verbose() 449 … += xv(i) * PetscConj(y1(i)); lsum2 += xv(i) * PetscConj(y2(i)); lsum3 += xv(i) * PetscConj(y3(i)); in VecMultiDot_Verbose() 457 … += xv(i) * PetscConj(y1(i)); lsum2 += xv(i) * PetscConj(y2(i)); lsum3 += xv(i) * PetscConj(y3(i)); in VecMultiDot_Verbose() 465 … += xv(i) * PetscConj(y1(i)); lsum2 += xv(i) * PetscConj(y2(i)); lsum3 += xv(i) * PetscConj(y3(i)); in VecMultiDot_Verbose() 495 if (rem > 3) PetscCall(VecRestoreKokkosView(yp[3], &y3)); in VecMultiDot_Verbose()
|
| /petsc/src/tao/leastsquares/tutorials/matlab/more_wild_probs/ |
| H A D | dfovec.m | 51 y3 = [3.478d4,2.861d4,2.365d4,1.963d4,1.637d4,1.372d4,1.154d4,9.744d3,... variable 142 fvec(i) = x(1)*tmp2 - y3(i);
|
| H A D | g_dfovec_1d.m | 42 …y3= [3.478d4, 2.861d4, 2.365d4, 1.963d4, 1.637d4, 1.372d4, 1.154d4, 9.744d3, 8.261d3, 7.03d3, 6.00… variable 344 fvec(i)= tmp_dfovec_1d_00047- y3(i);
|
| /petsc/src/sys/classes/draw/impls/win32/ |
| H A D | win32draw.c | 470 …al x1, PetscReal yone, PetscReal x2, PetscReal y2, PetscReal x3, PetscReal y3, int c1, int c2, int… in PetscDrawTriangle_Win32() argument 487 p3y = YTRANS(draw, windraw, y3); in PetscDrawTriangle_Win32()
|
| /petsc/src/ts/tutorials/ |
| H A D | ex14.c | 1380 Node *y3; in THIDAVecView_VTK_XML() local 1396 y3 = (Node *)array; in THIDAVecView_VTK_XML() 1402 y3 = (Node *)x; in THIDAVecView_VTK_XML() 1430 …ewer3, "%f %f %f\n", (double)(PetscRealPart(y3[i].u) * units->year / units->meter), (double)(Petsc… in THIDAVecView_VTK_XML()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexgeometry.c | 1644 …const PetscReal x3 = coords[9] - coords[0], y3 = coords[10] - coords[1], z3 = coords[11] - coords[… in Volume_Tetrahedron_Internal() local 1652 M[5] = y3; in Volume_Tetrahedron_Internal()
|