/dports/print/ghostscript7-x11/ghostscript-7.07/src/ |
H A D | gsmatrix.c | 71 pmat->yy = pmat->xx = sincos.cos; in gs_make_rotation() 74 pmat->tx = pmat->ty = 0.0; in gs_make_rotation() 208 ppt->x = x * pmat->xx + pmat->tx; in gs_point_transform() 209 ppt->y = y * pmat->yy + pmat->ty; in gs_point_transform() 224 if (is_fzero(pmat->xx) || is_fzero(pmat->yy)) in gs_point_transform_inverse() 226 ppt->x = (x - pmat->tx) / pmat->xx; in gs_point_transform_inverse() 227 ppt->y = (y - pmat->ty) / pmat->yy; in gs_point_transform_inverse() 230 if (is_fzero(pmat->xy) || is_fzero(pmat->yx)) in gs_point_transform_inverse() 232 ppt->x = (y - pmat->ty) / pmat->xy; in gs_point_transform_inverse() 233 ppt->y = (x - pmat->tx) / pmat->yx; in gs_point_transform_inverse() [all …]
|
H A D | gxhint1.c | 71 if (is_fzero(pmat->xy)) in compute_font_hints() 72 pfh->y_inverted = is_fneg(pmat->yy), in compute_font_hints() 74 else if (is_fzero(pmat->xx)) in compute_font_hints() 75 pfh->y_inverted = is_fneg(pmat->xy), in compute_font_hints() 78 if (is_fzero(pmat->yx)) in compute_font_hints() 79 pfh->x_inverted = is_fneg(pmat->xx), in compute_font_hints() 81 else if (is_fzero(pmat->yy)) in compute_font_hints() 86 pmat->xx, pmat->xy, pmat->yx, pmat->yy, in compute_font_hints() 87 pmat->tx, pmat->ty); in compute_font_hints() 156 zp = compute_zones(pmat, pfh, in compute_font_hints() [all …]
|
H A D | gscoord.c | 122 *pmat = pgs->ctm_default; in gs_defaultmatrix() 138 if (pmat == NULL) in gs_setdefaultmatrix() 141 pgs->ctm_default = *pmat; in gs_setdefaultmatrix() 150 *pmat = ctm_only(pgs); in gs_currentmatrix() 197 update_ctm(pgs, pmat->tx, pmat->ty); in gs_setmatrix() 198 set_ctm_only(pgs, *pmat); in gs_setmatrix() 209 update_matrix_fixed(pis->ctm, pmat->tx, pmat->ty); in gs_imager_setmatrix() 210 set_ctm_only(pis, *pmat); in gs_imager_setmatrix() 297 #define is_skewed(pmat) (!(is_xxyy(pmat) || is_xyyx(pmat))) argument 424 ctm = *pmat; in gx_matrix_to_fixed_coeff() [all …]
|
/dports/print/ghostscript7-base/ghostscript-7.07/src/ |
H A D | gsmatrix.c | 71 pmat->yy = pmat->xx = sincos.cos; in gs_make_rotation() 74 pmat->tx = pmat->ty = 0.0; in gs_make_rotation() 208 ppt->x = x * pmat->xx + pmat->tx; in gs_point_transform() 209 ppt->y = y * pmat->yy + pmat->ty; in gs_point_transform() 224 if (is_fzero(pmat->xx) || is_fzero(pmat->yy)) in gs_point_transform_inverse() 226 ppt->x = (x - pmat->tx) / pmat->xx; in gs_point_transform_inverse() 227 ppt->y = (y - pmat->ty) / pmat->yy; in gs_point_transform_inverse() 230 if (is_fzero(pmat->xy) || is_fzero(pmat->yx)) in gs_point_transform_inverse() 232 ppt->x = (y - pmat->ty) / pmat->xy; in gs_point_transform_inverse() 233 ppt->y = (x - pmat->tx) / pmat->yx; in gs_point_transform_inverse() [all …]
|
H A D | gxhint1.c | 71 if (is_fzero(pmat->xy)) in compute_font_hints() 72 pfh->y_inverted = is_fneg(pmat->yy), in compute_font_hints() 74 else if (is_fzero(pmat->xx)) in compute_font_hints() 75 pfh->y_inverted = is_fneg(pmat->xy), in compute_font_hints() 78 if (is_fzero(pmat->yx)) in compute_font_hints() 79 pfh->x_inverted = is_fneg(pmat->xx), in compute_font_hints() 81 else if (is_fzero(pmat->yy)) in compute_font_hints() 86 pmat->xx, pmat->xy, pmat->yx, pmat->yy, in compute_font_hints() 87 pmat->tx, pmat->ty); in compute_font_hints() 156 zp = compute_zones(pmat, pfh, in compute_font_hints() [all …]
|
H A D | gscoord.c | 122 *pmat = pgs->ctm_default; in gs_defaultmatrix() 138 if (pmat == NULL) in gs_setdefaultmatrix() 141 pgs->ctm_default = *pmat; in gs_setdefaultmatrix() 150 *pmat = ctm_only(pgs); in gs_currentmatrix() 197 update_ctm(pgs, pmat->tx, pmat->ty); in gs_setmatrix() 198 set_ctm_only(pgs, *pmat); in gs_setmatrix() 209 update_matrix_fixed(pis->ctm, pmat->tx, pmat->ty); in gs_imager_setmatrix() 210 set_ctm_only(pis, *pmat); in gs_imager_setmatrix() 297 #define is_skewed(pmat) (!(is_xxyy(pmat) || is_xyyx(pmat))) argument 424 ctm = *pmat; in gx_matrix_to_fixed_coeff() [all …]
|
/dports/print/ghostscript8-base/ghostscript-8.71/base/ |
H A D | gsmatrix.c | 66 pmat->yy = pmat->xx = sincos.cos; in gs_make_rotation() 69 pmat->tx = pmat->ty = 0.0; in gs_make_rotation() 286 ppt->x = (float)(x * pmat->xx) + pmat->tx; in gs_point_transform() 287 ppt->y = (float)(y * pmat->yy) + pmat->ty; in gs_point_transform() 302 if (is_fzero(pmat->xx) || is_fzero(pmat->yy)) in gs_point_transform_inverse() 304 ppt->x = (x - pmat->tx) / pmat->xx; in gs_point_transform_inverse() 305 ppt->y = (y - pmat->ty) / pmat->yy; in gs_point_transform_inverse() 308 if (is_fzero(pmat->xy) || is_fzero(pmat->yx)) in gs_point_transform_inverse() 310 ppt->x = (y - pmat->ty) / pmat->xy; in gs_point_transform_inverse() 311 ppt->y = (x - pmat->tx) / pmat->yx; in gs_point_transform_inverse() [all …]
|
H A D | gscoord.c | 117 *pmat = pgs->ctm_default; in gs_defaultmatrix() 133 if (pmat == NULL) in gs_setdefaultmatrix() 136 pgs->ctm_default = *pmat; in gs_setdefaultmatrix() 145 *pmat = ctm_only(pgs); in gs_currentmatrix() 192 update_ctm(pgs, pmat->tx, pmat->ty); in gs_setmatrix() 193 set_ctm_only(pgs, *pmat); in gs_setmatrix() 204 update_matrix_fixed(pis->ctm, pmat->tx, pmat->ty); in gs_imager_setmatrix() 205 set_ctm_only(pis, *pmat); in gs_imager_setmatrix() 292 #define is_skewed(pmat) (!(is_xxyy(pmat) || is_xyyx(pmat))) argument 421 ctm = *pmat; in gx_matrix_to_fixed_coeff() [all …]
|
/dports/print/ghostscript9-agpl-base/ghostscript-9.52/base/ |
H A D | gsmatrix.c | 68 pmat->yy = pmat->xx = sincos.cos; in gs_make_rotation() 71 pmat->tx = pmat->ty = 0.0; in gs_make_rotation() 288 ppt->x = (float)(x * pmat->xx) + pmat->tx; in gs_point_transform() 289 ppt->y = (float)(y * pmat->yy) + pmat->ty; in gs_point_transform() 304 if (is_fzero(pmat->xx) || is_fzero(pmat->yy)) in gs_point_transform_inverse() 306 ppt->x = (x - pmat->tx) / pmat->xx; in gs_point_transform_inverse() 307 ppt->y = (y - pmat->ty) / pmat->yy; in gs_point_transform_inverse() 310 if (is_fzero(pmat->xy) || is_fzero(pmat->yx)) in gs_point_transform_inverse() 312 ppt->x = (y - pmat->ty) / pmat->xy; in gs_point_transform_inverse() 313 ppt->y = (x - pmat->tx) / pmat->yx; in gs_point_transform_inverse() [all …]
|
/dports/print/ghostscript8-x11/ghostscript-8.71/base/ |
H A D | gsmatrix.c | 66 pmat->yy = pmat->xx = sincos.cos; in gs_make_rotation() 69 pmat->tx = pmat->ty = 0.0; in gs_make_rotation() 286 ppt->x = (float)(x * pmat->xx) + pmat->tx; in gs_point_transform() 287 ppt->y = (float)(y * pmat->yy) + pmat->ty; in gs_point_transform() 302 if (is_fzero(pmat->xx) || is_fzero(pmat->yy)) in gs_point_transform_inverse() 304 ppt->x = (x - pmat->tx) / pmat->xx; in gs_point_transform_inverse() 305 ppt->y = (y - pmat->ty) / pmat->yy; in gs_point_transform_inverse() 308 if (is_fzero(pmat->xy) || is_fzero(pmat->yx)) in gs_point_transform_inverse() 310 ppt->x = (y - pmat->ty) / pmat->xy; in gs_point_transform_inverse() 311 ppt->y = (x - pmat->tx) / pmat->yx; in gs_point_transform_inverse() [all …]
|
H A D | gscoord.c | 117 *pmat = pgs->ctm_default; in gs_defaultmatrix() 133 if (pmat == NULL) in gs_setdefaultmatrix() 136 pgs->ctm_default = *pmat; in gs_setdefaultmatrix() 145 *pmat = ctm_only(pgs); in gs_currentmatrix() 192 update_ctm(pgs, pmat->tx, pmat->ty); in gs_setmatrix() 193 set_ctm_only(pgs, *pmat); in gs_setmatrix() 204 update_matrix_fixed(pis->ctm, pmat->tx, pmat->ty); in gs_imager_setmatrix() 205 set_ctm_only(pis, *pmat); in gs_imager_setmatrix() 292 #define is_skewed(pmat) (!(is_xxyy(pmat) || is_xyyx(pmat))) argument 421 ctm = *pmat; in gx_matrix_to_fixed_coeff() [all …]
|
/dports/print/ghostscript9-agpl-x11/ghostscript-9.52/base/ |
H A D | gsmatrix.c | 68 pmat->yy = pmat->xx = sincos.cos; in gs_make_rotation() 71 pmat->tx = pmat->ty = 0.0; in gs_make_rotation() 288 ppt->x = (float)(x * pmat->xx) + pmat->tx; in gs_point_transform() 289 ppt->y = (float)(y * pmat->yy) + pmat->ty; in gs_point_transform() 304 if (is_fzero(pmat->xx) || is_fzero(pmat->yy)) in gs_point_transform_inverse() 306 ppt->x = (x - pmat->tx) / pmat->xx; in gs_point_transform_inverse() 307 ppt->y = (y - pmat->ty) / pmat->yy; in gs_point_transform_inverse() 310 if (is_fzero(pmat->xy) || is_fzero(pmat->yx)) in gs_point_transform_inverse() 312 ppt->x = (y - pmat->ty) / pmat->xy; in gs_point_transform_inverse() 313 ppt->y = (x - pmat->tx) / pmat->yx; in gs_point_transform_inverse() [all …]
|
/dports/science/mpqc/mpqc-2.3.1/src/lib/chemistry/qc/scf/ |
H A D | clhftmpl.h | 52 gmat[ij] += val*pmat[kl]; CHECK(val,pmat[kl],ij,kl,"cont1a"); in cont1() 53 gmat[kl] += val*pmat[ij]; CHECK(val,pmat[ij],ij,kl,"cont1b"); in cont1() 97 ec += val*pmat[ij]*pmat[kl]; in cont1() 101 ex -= 0.25*val*pmat[ij]*pmat[kl]; in cont2() 105 ex -= 0.5*val*pmat[ij]*pmat[kl]; in cont3() 109 ec += val*pmat[ij]*pmat[kl]; in cont4() 110 ex -= 0.25*val*pmat[ij]*pmat[kl]; in cont4() 114 ec += val*pmat[ij]*pmat[kl]; in cont5() 115 ex -= 0.5*val*pmat[ij]*pmat[kl]; in cont5() 128 return pmat[ij]*pmat[kl]; in cont1() [all …]
|
H A D | hsoshftmpl.h | 6 double * const pmat; variable 75 ec += val*pmat[ij]*pmat[kl]; in cont1() 79 ex -= 0.25*val*(pmat[ij]*pmat[kl] + pmato[ij]*pmato[kl]); in cont2() 83 ex -= 0.5*val*(pmat[ij]*pmat[kl] + pmato[ij]*pmato[kl]); in cont3() 87 ec += val*pmat[ij]*pmat[kl]; in cont4() 88 ex -= 0.25*val*(pmat[ij]*pmat[kl] + pmato[ij]*pmato[kl]); in cont4() 92 ec += val*pmat[ij]*pmat[kl]; in cont5() 93 ex -= 0.5*val*(pmat[ij]*pmat[kl] + pmato[ij]*pmato[kl]); in cont5() 106 return pmat[ij]*pmat[kl] + in cont1() 107 0.5*(pmato[ij]*pmat[kl] + pmat[ij]*pmato[kl]) + in cont1() [all …]
|
H A D | osshftmpl.h | 10 double * const pmat; variable 120 ec += val*pmat[ij]*pmat[kl]; in cont1() 130 ex -= 0.5*val*(pmat[ij]*pmat[kl] + pmata[ij]*pmata[kl] + in cont3() 136 ec += val*pmat[ij]*pmat[kl]; in cont4() 143 ec += val*pmat[ij]*pmat[kl]; in cont5() 162 return pmat[ij]*pmat[kl] + in cont1() 163 0.5*(pmata[ij]*pmat[kl] + pmat[ij]*pmata[kl] + in cont1() 164 pmatb[ij]*pmat[kl] + pmat[ij]*pmatb[kl]) + in cont1() 170 return pmat[ij]*pmat[kl] + in cont2() 171 0.5*(pmata[ij]*pmat[kl] + pmat[ij]*pmata[kl] + in cont2() [all …]
|
/dports/print/ghostscript9-base/ghostscript-9.06/base/ |
H A D | gsmatrix.c | 68 pmat->yy = pmat->xx = sincos.cos; in gs_make_rotation() 71 pmat->tx = pmat->ty = 0.0; in gs_make_rotation() 288 ppt->x = (float)(x * pmat->xx) + pmat->tx; in gs_point_transform() 289 ppt->y = (float)(y * pmat->yy) + pmat->ty; in gs_point_transform() 304 if (is_fzero(pmat->xx) || is_fzero(pmat->yy)) in gs_point_transform_inverse() 306 ppt->x = (x - pmat->tx) / pmat->xx; in gs_point_transform_inverse() 307 ppt->y = (y - pmat->ty) / pmat->yy; in gs_point_transform_inverse() 310 if (is_fzero(pmat->xy) || is_fzero(pmat->yx)) in gs_point_transform_inverse() 312 ppt->x = (y - pmat->ty) / pmat->xy; in gs_point_transform_inverse() 313 ppt->y = (x - pmat->tx) / pmat->yx; in gs_point_transform_inverse() [all …]
|
H A D | gscoord.c | 119 *pmat = pgs->ctm_default; in gs_defaultmatrix() 125 pmat->tx += dev->Margins[0] * in gs_defaultmatrix() 135 if (pmat == NULL) in gs_setdefaultmatrix() 147 *pmat = ctm_only(pgs); in gs_currentmatrix() 194 update_ctm(pgs, pmat->tx, pmat->ty); in gs_setmatrix() 195 set_ctm_only(pgs, *pmat); in gs_setmatrix() 206 update_matrix_fixed(pis->ctm, pmat->tx, pmat->ty); in gs_imager_setmatrix() 207 set_ctm_only(pis, *pmat); in gs_imager_setmatrix() 312 #define is_skewed(pmat) (!(is_xxyy(pmat) || is_xyyx(pmat))) argument 441 ctm = *pmat; in gx_matrix_to_fixed_coeff() [all …]
|
/dports/print/ghostscript9-x11/ghostscript-9.06/base/ |
H A D | gsmatrix.c | 68 pmat->yy = pmat->xx = sincos.cos; in gs_make_rotation() 71 pmat->tx = pmat->ty = 0.0; in gs_make_rotation() 288 ppt->x = (float)(x * pmat->xx) + pmat->tx; in gs_point_transform() 289 ppt->y = (float)(y * pmat->yy) + pmat->ty; in gs_point_transform() 304 if (is_fzero(pmat->xx) || is_fzero(pmat->yy)) in gs_point_transform_inverse() 306 ppt->x = (x - pmat->tx) / pmat->xx; in gs_point_transform_inverse() 307 ppt->y = (y - pmat->ty) / pmat->yy; in gs_point_transform_inverse() 310 if (is_fzero(pmat->xy) || is_fzero(pmat->yx)) in gs_point_transform_inverse() 312 ppt->x = (y - pmat->ty) / pmat->xy; in gs_point_transform_inverse() 313 ppt->y = (x - pmat->tx) / pmat->yx; in gs_point_transform_inverse() [all …]
|
H A D | gscoord.c | 119 *pmat = pgs->ctm_default; in gs_defaultmatrix() 125 pmat->tx += dev->Margins[0] * in gs_defaultmatrix() 135 if (pmat == NULL) in gs_setdefaultmatrix() 147 *pmat = ctm_only(pgs); in gs_currentmatrix() 194 update_ctm(pgs, pmat->tx, pmat->ty); in gs_setmatrix() 195 set_ctm_only(pgs, *pmat); in gs_setmatrix() 206 update_matrix_fixed(pis->ctm, pmat->tx, pmat->ty); in gs_imager_setmatrix() 207 set_ctm_only(pis, *pmat); in gs_imager_setmatrix() 312 #define is_skewed(pmat) (!(is_xxyy(pmat) || is_xyyx(pmat))) argument 441 ctm = *pmat; in gx_matrix_to_fixed_coeff() [all …]
|
/dports/science/hypre/hypre-2.23.0/src/sstruct_mv/ |
H A D | sstruct_matrix.h | 118 #define hypre_SStructPMatrixComm(pmat) ((pmat) -> comm) argument 119 #define hypre_SStructPMatrixPGrid(pmat) ((pmat) -> pgrid) argument 122 #define hypre_SStructPMatrixStencils(pmat) ((pmat) -> stencils) argument 123 #define hypre_SStructPMatrixNVars(pmat) ((pmat) -> nvars) argument 125 #define hypre_SStructPMatrixSMaps(pmat) ((pmat) -> smaps) argument 126 #define hypre_SStructPMatrixSMap(pmat, var) ((pmat) -> smaps[var]) argument 127 #define hypre_SStructPMatrixSStencils(pmat) ((pmat) -> sstencils) argument 130 #define hypre_SStructPMatrixSMatrices(pmat) ((pmat) -> smatrices) argument 133 #define hypre_SStructPMatrixSymmetric(pmat) ((pmat) -> symmetric) argument 135 #define hypre_SStructPMatrixSEntries(pmat) ((pmat) -> sentries) argument [all …]
|
/dports/math/mfem/mfem-4.3/mesh/ |
H A D | triangle.cpp | 53 void Triangle::MarkEdge(DenseMatrix &pmat) in MarkEdge() argument 58 d[0] = ( (pmat(0,1)-pmat(0,0))*(pmat(0,1)-pmat(0,0)) + in MarkEdge() 59 (pmat(1,1)-pmat(1,0))*(pmat(1,1)-pmat(1,0)) ); in MarkEdge() 60 d[1] = ( (pmat(0,2)-pmat(0,1))*(pmat(0,2)-pmat(0,1)) + in MarkEdge() 61 (pmat(1,2)-pmat(1,1))*(pmat(1,2)-pmat(1,1)) ); in MarkEdge() 62 d[2] = ( (pmat(0,2)-pmat(0,0))*(pmat(0,2)-pmat(0,0)) + in MarkEdge() 63 (pmat(1,2)-pmat(1,0))*(pmat(1,2)-pmat(1,0)) ); in MarkEdge() 66 if (pmat.Height()==3) in MarkEdge() 68 d[0] += (pmat(2,1)-pmat(2,0))*(pmat(2,1)-pmat(2,0)); in MarkEdge() 69 d[1] += (pmat(2,2)-pmat(2,1))*(pmat(2,2)-pmat(2,1)); in MarkEdge() [all …]
|
/dports/science/mpqc/mpqc-2.3.1/src/lib/chemistry/qc/dft/ |
H A D | clkstmpl.h | 7 double * const pmat; variable 12 gmat(g), pmat(p), a0(a) {} in LocalCLKSContribution() 18 gmat[ij] += val*pmat[kl]; in cont1() 49 double * const pmat; 64 ec += val*pmat[ij]*pmat[kl]; in cont1() 68 ex -= a0*0.25*val*pmat[ij]*pmat[kl]; in cont2() 72 ex -= a0*0.5*val*pmat[ij]*pmat[kl]; in cont3() 76 ec += val*pmat[ij]*pmat[kl]; in cont4() 77 ex -= a0*0.25*val*pmat[ij]*pmat[kl]; in cont4() 81 ec += val*pmat[ij]*pmat[kl]; in cont5() [all …]
|
H A D | hsoskstmpl.h | 8 double * const pmat; variable 21 gmat[ij] += val*pmat[kl]; in cont1() 22 gmat[kl] += val*pmat[ij]; in cont1() 62 double * const pmat; 80 ec += val*pmat[ij]*pmat[kl]; in cont1() 84 ex -= a0*0.25*val*(pmat[ij]*pmat[kl] + pmato[ij]*pmato[kl]); in cont2() 88 ex -= a0*0.5*val*(pmat[ij]*pmat[kl] + pmato[ij]*pmato[kl]); in cont3() 92 ec += val*pmat[ij]*pmat[kl]; in cont4() 93 ex -= a0*0.25*val*(pmat[ij]*pmat[kl] + pmato[ij]*pmato[kl]); in cont4() 97 ec += val*pmat[ij]*pmat[kl]; in cont5() [all …]
|
/dports/science/py-pyscf/pyscf-2.0.1/pyscf/lib/vhf/ |
H A D | time_rev.c | 98 pmat1 = pmat - nao; in timerev_block_o1() 112 pmat1 = pmat - nao; in timerev_block_o1() 144 pmat1 = pmat - nao; in CVHFtimerev_blockT() 158 pmat1 = pmat - nao; in CVHFtimerev_blockT() 185 pmat1 = pmat - nao; in CVHFtimerev_i() 197 pmat1 = pmat - nao; in CVHFtimerev_i() 218 pmat1 = pmat - nao; in CVHFtimerev_iT() 229 pmat1 = pmat - nao; in CVHFtimerev_iT() 320 pmat1 = pmat - nao; in CVHFtimerev_ijplus() 336 pmat1 = pmat - nao; in CVHFtimerev_ijplus() [all …]
|
/dports/math/R-cran-VGAM/VGAM/R/ |
H A D | rootogram4.vglm.R | 379 if (!all(is.na(pmat))) { 380 expctd <- colSums(pmat * w) 406 for (i in 1L:ncol(pmat)) 409 expctd <- colSums(pmat * w) 425 expctd <- colSums(pmat * w) 442 expctd <- colSums(pmat * w) 462 pmat[, i + 1L] <- 468 expctd <- colSums(pmat * w) 484 pmat[, i + 1L] <- 490 expctd <- colSums(pmat * w) [all …]
|