| /petsc/src/ml/regressor/impls/linear/ |
| H A D | linear.c | 41 …scErrorCode PetscRegressorLinearGetCoefficients_Linear(PetscRegressor regressor, Vec *coefficients) in PetscRegressorLinearGetCoefficients_Linear() argument 46 *coefficients = linear->coefficients; in PetscRegressorLinearGetCoefficients_Linear() 126 if (linear->coefficients) PetscCall(VecDestroy(&linear->coefficients)); in PetscRegressorSetUp_Linear() 134 PetscCall(MatCreateVecs(linear->X, &linear->coefficients, NULL)); in PetscRegressorSetUp_Linear() 149 PetscCall(MatCreateVecs(linear->X, &linear->coefficients, &linear->residual)); in PetscRegressorSetUp_Linear() 152 PetscCall(TaoSetSolution(tao, linear->coefficients)); in PetscRegressorSetUp_Linear() 193 PetscCall(VecDestroy(&linear->coefficients)); in PetscRegressorReset_Linear() 368 …ERN PetscErrorCode PetscRegressorLinearGetCoefficients(PetscRegressor regressor, Vec *coefficients) in PetscRegressorLinearGetCoefficients() argument 372 PetscAssertPointer(coefficients, 2); in PetscRegressorLinearGetCoefficients() 373 …ssor, "PetscRegressorLinearGetCoefficients_C", (PetscRegressor, Vec *), (regressor, coefficients)); in PetscRegressorLinearGetCoefficients() [all …]
|
| H A D | linearimpl.h | 10 Vec coefficients; \
|
| /petsc/src/ml/regressor/tests/ |
| H A D | ex_sharks.c | 19 Vec y, y_predicted, coefficients; in main() local 75 PetscCall(PetscRegressorLinearGetCoefficients(regressor, &coefficients)); in main() 79 PetscCall(VecView(coefficients, PETSC_VIEWER_STDOUT_WORLD)); in main()
|
| H A D | ex2.c | 18 Vec y, y_predicted, coefficients; in main() local 53 PetscCall(PetscRegressorLinearGetCoefficients(regressor, &coefficients)); in main() 57 PetscCall(VecView(coefficients, PETSC_VIEWER_STDOUT_WORLD)); in main()
|
| H A D | ex1.c | 18 Vec y, y_predicted, coefficients; in main() local 53 PetscCall(PetscRegressorLinearGetCoefficients(regressor, &coefficients)); in main() 57 PetscCall(VecView(coefficients, PETSC_VIEWER_STDOUT_WORLD)); in main()
|
| H A D | ex3.c | 9 Vec coefficients; member 39 PetscCall(VecView(ctx->coefficients, PETSC_VIEWER_STDOUT_WORLD)); in TestRegressorViews() 162 PetscCall(PetscRegressorLinearGetCoefficients(regressor, &ctx->coefficients)); in main()
|
| /petsc/src/dm/dt/fe/interface/ |
| H A D | fe.c | 1399 …b, PetscInt field, PetscInt Ne, PetscFEGeom *cgeom, const PetscScalar coefficients[], PetscDS prob… in PetscFEIntegrate() argument 1406 …if (fe->ops->integrate) PetscCall((*fe->ops->integrate)(prob, field, Ne, cgeom, coefficients, prob… in PetscFEIntegrate() 1435 …[], PetscScalar[]), PetscInt Ne, PetscFEGeom *geom, const PetscScalar coefficients[], PetscDS prob… in PetscFEIntegrateBd() argument 1442 …d) PetscCall((*fe->ops->integratebd)(prob, field, obj_func, Ne, geom, coefficients, probAux, coeff… in PetscFEIntegrateBd() 1479 … PetscFormKey key, PetscInt Ne, PetscFEGeom *cgeom, const PetscScalar coefficients[], const PetscS… in PetscFEIntegrateResidual() argument 1486 …residual) PetscCall((*fe->ops->integrateresidual)(ds, key, Ne, cgeom, coefficients, coefficients_t… in PetscFEIntegrateResidual() 1514 … PetscFormKey key, PetscInt Ne, PetscFEGeom *fgeom, const PetscScalar coefficients[], const PetscS… in PetscFEIntegrateBdResidual() argument 1521 …al) PetscCall((*fe->ops->integratebdresidual)(ds, wf, key, Ne, fgeom, coefficients, coefficients_t… in PetscFEIntegrateBdResidual() 1551 …etscInt Ne, PetscFEGeom *fgeom, PetscFEGeom *cgeom, const PetscScalar coefficients[], const PetscS… in PetscFEIntegrateHybridResidual() argument 1559 …fe->ops->integratehybridresidual)(ds, dsIn, key, s, Ne, fgeom, cgeom, coefficients, coefficients_t… in PetscFEIntegrateHybridResidual() [all …]
|
| /petsc/src/dm/dt/fe/impls/basic/ |
| H A D | febasic.c | 162 …s, PetscInt field, PetscInt Ne, PetscFEGeom *cgeom, const PetscScalar coefficients[], PetscDS dsAu… in PetscFEIntegrate_Basic() argument 242 …PetscCall(PetscFEEvaluateFieldJets_Internal(ds, Nf, 0, q, T, &fegeom, &coefficients[cOffset], NULL… in PetscFEIntegrate_Basic() 255 …PointFn *obj_func, PetscInt Ne, PetscFEGeom *fgeom, const PetscScalar coefficients[], PetscDS dsAu… in PetscFEIntegrateBd_Basic() argument 376 …PetscCall(PetscFEEvaluateFieldJets_Internal(ds, Nf, face, q, Tf, &cgeom, &coefficients[cOffset], N… in PetscFEIntegrateBd_Basic() 389 … PetscFormKey key, PetscInt Ne, PetscFEGeom *cgeom, const PetscScalar coefficients[], const PetscS… in PetscFEIntegrateResidual_Basic() argument 458 …PetscCall(PetscFEEvaluateFieldJets_Internal(ds, Nf, 0, q, T, &fegeom, &coefficients[cOffset], Pets… in PetscFEIntegrateResidual_Basic() 496 … PetscFormKey key, PetscInt Ne, PetscFEGeom *fgeom, const PetscScalar coefficients[], const PetscS… in PetscFEIntegrateBdResidual_Basic() argument 575 …PetscCall(PetscFEEvaluateFieldJets_Internal(ds, Nf, face, q, Tf, &cgeom, &coefficients[cOffset], P… in PetscFEIntegrateBdResidual_Basic() 609 …scInt Ne, PetscFEGeom *fgeom, PetscFEGeom *nbrgeom, const PetscScalar coefficients[], const PetscS… in PetscFEIntegrateHybridResidual_Basic() argument 708 …brid_Internal(dsIn, Nf, 0, q, Tf, face, qpt, TfIn, &fegeom, fegeomN, &coefficients[cOffsetIn], Pet… in PetscFEIntegrateHybridResidual_Basic() [all …]
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexproject.c | 202 PetscScalar *coefficients = NULL, *coefficientsAux = NULL; in DMProjectPoint_Field_Private() local 251 if (localU) PetscCall(DMPlexVecGetClosure(dmIn, section, localU, inp, NULL, &coefficients)); in DMProjectPoint_Field_Private() 335 if (coefficients) { in DMProjectPoint_Field_Private() 336 …_Hybrid_Internal(dsIn, NfIn, 0, tp, T, face, qpt, T, &fegeom, fgeomN, coefficients, coefficients_t… in DMProjectPoint_Field_Private() 337 …Call(PetscFEEvaluateFieldJets_Internal(dsIn, NfIn, 0, tp, T, &fegeom, coefficients, coefficients_t… in DMProjectPoint_Field_Private() 351 if (localU) PetscCall(DMPlexVecRestoreClosure(dmIn, section, localU, inp, NULL, &coefficients)); in DMProjectPoint_Field_Private() 361 PetscScalar *coefficients = NULL, *coefficientsAux = NULL; in DMProjectPoint_BdField_Private() local 410 if (localU) PetscCall(DMPlexVecGetClosure(dmIn, section, localU, inp, NULL, &coefficients)); in DMProjectPoint_BdField_Private() 511 if (coefficients) { in DMProjectPoint_BdField_Private() 512 …_Hybrid_Internal(dsIn, NfIn, 0, tp, T, face, qpt, T, &fegeom, fgeomN, coefficients, coefficients_t… in DMProjectPoint_BdField_Private() [all …]
|
| /petsc/doc/manual/ |
| H A D | regressor.md | 47 By "linear" we mean that the model $f(x, \theta)$ is linear in its coefficients $\theta$ 199 a vector of the model coefficients from a linear regression model via 202 PetscRegressorLinearGetCoefficients(PetscRegressor regressor, Vec *coefficients);
|
| H A D | ts.md | 719 - $A, U, B, V$: method coefficients, 725 - $F_\text{embed}$: coefficients for computing the auxiliary 728 - $F_\text{error}$: coefficients to compute the estimated error 731 - $S_\text{error}$: coefficients to initialize the auxiliary
|
| H A D | ksp.md | 1291 coefficients with complex geometry (AMG is particularly well suited to 1292 jumps in coefficients, but it is not a perfect solution), highly 1387 … in the coarse basis. However, an adaptive procedure can optimize the coefficients of the interpol… 1436 … be the checking set (fine basis coefficients or fine space points) and the approximation set (coa… 1547 Poisson problem with constant coefficients. The user can switch on and 1575 coefficients not aligned with the interface; for such cases, PETSc has
|
| H A D | dmplex.md | 310 the contributions to the basis function coefficients. The closure of the
|
| /petsc/src/dm/dt/fe/impls/opencl/ |
| H A D | feopencl.c | 502 … PetscFormKey key, PetscInt Ne, PetscFEGeom *cgeom, const PetscScalar coefficients[], const PetscS… in PetscFEIntegrateResidual_OpenCL() argument 565 …PetscCall(PetscFEIntegrateResidual_Basic(prob, key, Ne, cgeom, coefficients, coefficients_t, probA… in PetscFEIntegrateResidual_OpenCL() 605 for (b = 0; b < N_bt; ++b) f_coeff[c * N_bt + b] = (float)coefficients[c * N_bt + b]; in PetscFEIntegrateResidual_OpenCL() 626 for (b = 0; b < N_bt; ++b) d_coeff[c * N_bt + b] = (double)coefficients[c * N_bt + b]; in PetscFEIntegrateResidual_OpenCL() 651 oclCoeff = (void *)coefficients; in PetscFEIntegrateResidual_OpenCL()
|
| /petsc/doc/changes/ |
| H A D | 320.md | 145 …Add a Boolean parameter to `MatEliminateZeros()` to force the removal of zero diagonal coefficients 148 …n parameters to compress the underlying storage and keep or discard near-zero diagonal coefficients
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | Regressor.pyx | 267 """Get a vector of the fitted coefficients from a linear regression model.
|
| H A D | TS.pyx | 2494 PETSc attempts to detect and handle) or problem coefficients (which
|
| /petsc/src/dm/impls/stag/tutorials/ |
| H A D | ex4.c | 1965 …torInsertInverseViscosityPressureTerms(DM dm, DM dm_coefficients, Vec coefficients, PetscScalar sc… in OperatorInsertInverseViscosityPressureTerms() argument 1973 PetscCall(DMGlobalToLocal(dm_coefficients, coefficients, INSERT_VALUES, coeff_local)); in OperatorInsertInverseViscosityPressureTerms()
|
| /petsc/share/petsc/datafiles/meshes/ |
| H A D | testcase3D.cas | 5988 (enable-fourier-coefficients? #f) 8759 (ms-coefficients-ta (0.25 0.333333 0.5 1.)) 8762 (ms-coefficients (0.2075 0.5915 1.))
|
| /petsc/doc/ |
| H A D | petsc.bib | 16539 elliptic operators with {$L^\infty$}-coefficients}, 18303 stochastic coefficients},
|