| /petsc/src/sys/classes/draw/impls/image/ |
| H A D | drawimage.h | 36 static inline void PetscImageDrawLine(PetscImage img, int x_1, int y_1, int x_2, int y_2, int c) in PetscImageDrawLine() argument 38 if (y_1 == y_2) { in PetscImageDrawLine() 48 if (y_2 - y_1 < 0) { in PetscImageDrawLine() 50 y_1 = y_2; in PetscImageDrawLine() 51 y_2 = tmp; in PetscImageDrawLine() 53 while (y_1 <= y_2) PetscImageDrawPixel(img, x_1, y_1++, c); in PetscImageDrawLine() 57 int dy = PetscAbs(y_2 - y_1), sy = (y_2 - y_1) >= 0 ? +1 : -1; in PetscImageDrawLine() 61 if (x_1 == x_2 && y_1 == y_2) break; in PetscImageDrawLine() 108 …cImageDrawTriangle(PetscImage img, int x_1, int y_1, int t_1, int x_2, int y_2, int t_2, int x_3, … in PetscImageDrawTriangle() argument 120 if (y_1 < ymin && y_2 < ymin && y_3 < ymin) return; in PetscImageDrawTriangle() [all …]
|
| H A D | drawimage.c | 123 int y_1 = YTRANS(draw, img, yl), y_2 = YTRANS(draw, img, yr); in PetscDrawLine_Image() local 124 PetscImageDrawLine(img, x_1, y_1, x_2, y_2, c); in PetscDrawLine_Image() 137 int y_1 = YTRANS(draw, img, yl), y_2 = YTRANS(draw, img, yr); in PetscDrawArrow_Image() local 138 if (x_1 == x_2 && y_1 == y_2) PetscFunctionReturn(PETSC_SUCCESS); in PetscDrawArrow_Image() 139 PetscImageDrawLine(img, x_1, y_1, x_2, y_2, c); in PetscDrawArrow_Image() 140 if (x_1 == x_2 && PetscAbs(y_1 - y_2) > 7) { in PetscDrawArrow_Image() 141 if (y_2 > y_1) { in PetscDrawArrow_Image() 142 PetscImageDrawLine(img, x_2, y_2, x_2 - 3, y_2 - 3, c); in PetscDrawArrow_Image() 143 PetscImageDrawLine(img, x_2, y_2, x_2 + 3, y_2 - 3, c); in PetscDrawArrow_Image() 145 PetscImageDrawLine(img, x_2, y_2, x_2 - 3, y_2 + 3, c); in PetscDrawArrow_Image() [all …]
|
| /petsc/src/sys/classes/draw/impls/x/ |
| H A D | xops.c | 85 int x_1, y_1, x_2, y_2; in PetscDrawLine_X() local 92 y_2 = YTRANS(draw, XiWin, yr); in PetscDrawLine_X() 93 XDrawLine(XiWin->disp, PetscDrawXiDrawable(XiWin), XiWin->gc.set, x_1, y_1, x_2, y_2); in PetscDrawLine_X() 100 int x_1, y_1, x_2, y_2; in PetscDrawArrow_X() local 107 y_2 = YTRANS(draw, XiWin, yr); in PetscDrawArrow_X() 108 XDrawLine(XiWin->disp, PetscDrawXiDrawable(XiWin), XiWin->gc.set, x_1, y_1, x_2, y_2); in PetscDrawArrow_X() 109 if (x_1 == x_2 && y_1 == y_2) PetscFunctionReturn(PETSC_SUCCESS); in PetscDrawArrow_X() 110 if (x_1 == x_2 && PetscAbs(y_1 - y_2) > 7) { in PetscDrawArrow_X() 111 if (y_2 > y_1) { in PetscDrawArrow_X() 112 XDrawLine(XiWin->disp, PetscDrawXiDrawable(XiWin), XiWin->gc.set, x_2, y_2, x_2 - 3, y_2 - 3); in PetscDrawArrow_X() [all …]
|
| /petsc/doc/manual/ |
| H A D | ksp.md | 1196 $x_1,y_1,z_1,x_2,y_2,...$).
|
| H A D | tao.md | 2531 residual vectors $\{ F(y_1), F(y_2), \cdots \}$ to form an
|