Home
last modified time | relevance | path

Searched refs:metrics (Results 1 – 8 of 8) sorted by relevance

/petsc/src/dm/impls/plex/tests/
H A Dex60.c163 Vec metrics[2]; in main() local
171 metrics[0] = metric1; in main()
172 metrics[1] = metric2; in main()
176 PetscCall(DMPlexMetricAverage(dm, 2, weights, metrics, metricComb)); in main()
187 …PetscCall(DMPlexMetricEnforceSPD(dm, metrics[0], PETSC_FALSE, PETSC_FALSE, metricComb, determinant… in main()
188 PetscCall(VecCopy(metricComb, metrics[0])); in main()
189 …PetscCall(DMPlexMetricEnforceSPD(dm, metrics[1], PETSC_FALSE, PETSC_FALSE, metricComb, determinant… in main()
190 PetscCall(VecCopy(metricComb, metrics[1])); in main()
192 PetscCall(DMPlexMetricIntersection(dm, 2, metrics, metricComb)); in main()
/petsc/src/dm/impls/plex/
H A Dplexmetric.c1380 PetscErrorCode DMPlexMetricAverage(DM dm, PetscInt numMetrics, PetscReal weights[], Vec metrics[], … in DMPlexMetricAverage() argument
1392 PetscCall(VecGetSize(metrics[i], &n)); in DMPlexMetricAverage()
1408 for (i = 0; i < numMetrics; ++i) PetscCall(VecAXPY(metricAvg, weights[i], metrics[i])); in DMPlexMetricAverage()
1433 Vec metrics[2] = {metric1, metric2}; in DMPlexMetricAverage2() local
1436 PetscCall(DMPlexMetricAverage(dm, 2, weights, metrics, metricAvg)); in DMPlexMetricAverage2()
1459 Vec metrics[3] = {metric1, metric2, metric3}; in DMPlexMetricAverage3() local
1462 PetscCall(DMPlexMetricAverage(dm, 3, weights, metrics, metricAvg)); in DMPlexMetricAverage3()
1603 PetscErrorCode DMPlexMetricIntersection(DM dm, PetscInt numMetrics, Vec metrics[], Vec metricInt) in DMPlexMetricIntersection() argument
1614 PetscCall(VecCopy(metrics[0], metricInt)); in DMPlexMetricIntersection()
1618 PetscCall(VecGetSize(metrics[i], &n)); in DMPlexMetricIntersection()
[all …]
/petsc/doc/changes/
H A D316.md241 - Add `DMPlexMetricAverage` to average an arbitrary number of metrics.
242 - Add `DMPlexMetricAverage2` to average two metrics.
243 - Add `DMPlexMetricAverage3` to average three metrics.
244 - Add `DMPlexMetricIntersection` to intersect an arbitrary number of metrics.
245 - Add `DMPlexMetricIntersection2` to intersect two metrics.
246 - Add `DMPlexMetricIntersection3` to intersect three metrics.
H A D318.md270 - Add `DMPlexMetricDeterminantCreate()` for creating determinant fields for Riemannian metrics
/petsc/src/binding/petsc4py/demo/regressor/
H A Dtest_regressor_synthetic.py16 from sklearn.metrics import mean_squared_error
/petsc/doc/manual/
H A Ddmplex.md735 One simple way to combine two metrics is by simply averaging them entry-by-entry.
741 DMPlexMetricAverage(DM dm, PetscInt numMetrics, PetscReal weights[], Vec metrics[], Vec metricAvg);
742 DMPlexMetricIntersection(DM dm, PetscInt numMetrics, Vec metrics[], Vec metricInt);
745 However, before combining metrics, it is important that they are scaled in the same
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DDMPlex.pyx3126 """Compute and return the unweighted average of two metrics.
3148 """Compute and return the unweighted average of three metrics.
3172 """Compute and return the intersection of two metrics.
3194 """Compute the intersection of three metrics.
/petsc/share/petsc/datafiles/meshes/
H A Dtestcase3D.cas709 (heatxc/initialize-metrics? #t)
6258 (mesh/bad/orthogonal-enhancing-metrics/verbosity 0)
6259 (mesh/bad/orthogonal-enhancing-metrics/use-old-centroid? #f)
6260 (mesh/bad/orthogonal-enhancing-metrics/quality-change-threshold 0.1)
6261 (mesh/bad/orthogonal-enhancing-metrics/quality-threshold 0.1)
6262 (mesh/bad/orthogonal-enhancing-metrics/exponent-p 1.)
6263 (mesh/bad/orthogonal-enhancing-metrics/max-area-normalization? #f)
6264 (mesh/bad/orthogonal-enhancing-metrics? #f)
6333 (mesh/check/use-stored-metrics? #t)
7554 (parallel/metrics-recomputation-optimized? #t)
[all …]