|
AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
Average a series of points. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/main/src/axom/bump/PrimalAdaptor.hpp>
Public Types | |
| using | PointType = axom::primal::Point< T, NDIMS > |
| using | VectorType = axom::primal::Vector< T, NDIMS > |
Public Member Functions | |
| AXOM_HOST_DEVICE void | add (const PointType &pt) |
| Add a point to the running sum. More... | |
| AXOM_HOST_DEVICE void | clear () |
| Clear the sum. More... | |
| AXOM_HOST_DEVICE PointType | get () const |
| Get the average point value. More... | |
Public Attributes | |
| VectorType | sum {} |
| int | numPoints {0} |
Average a series of points.
| T | The point precision. |
| NDIMS | The number of dimensions in the point. |
| using axom::bump::AveragePoints< T, NDIMS >::PointType = axom::primal::Point<T, NDIMS> |
| using axom::bump::AveragePoints< T, NDIMS >::VectorType = axom::primal::Vector<T, NDIMS> |
|
inline |
Add a point to the running sum.
| pt | The point to add. |
References axom::bump::AveragePoints< T, NDIMS >::numPoints, and axom::bump::AveragePoints< T, NDIMS >::sum.
|
inline |
Clear the sum.
References axom::bump::AveragePoints< T, NDIMS >::numPoints, and axom::bump::AveragePoints< T, NDIMS >::sum.
|
inline |
Get the average point value.
References axom::primal::Vector< T, NDIMS >::array(), axom::bump::AveragePoints< T, NDIMS >::numPoints, and axom::bump::AveragePoints< T, NDIMS >::sum.
| VectorType axom::bump::AveragePoints< T, NDIMS >::sum {} |
| int axom::bump::AveragePoints< T, NDIMS >::numPoints {0} |