preCICE v3.1.2
|
#include <Sample.hpp>
Public Member Functions | |
Sample (int dims) noexcept | |
Constructs an empty Sample of a given data dimensionality. | |
Sample (int dims, int dataCount) | |
Constructs a Sample of given data dimensionality and size without gradients. | |
Sample (int dims, Eigen::VectorXd inValues) | |
Constructs a Sample of given data dimensionality and data values. | |
Sample (int dims, Eigen::VectorXd inValues, Eigen::MatrixXd inGradients) | |
Constructs a Sample of given data dimensionality, data values, and data gradients. | |
Sample (const Sample &)=default | |
Sample (Sample &&)=default | |
Sample & | operator= (const Sample &)=default |
Sample & | operator= (Sample &&)=default |
Sample & | setZero () |
Sets values and gradients to zero. | |
Public Attributes | |
int | dataDims |
The dimensionality of the data. | |
Eigen::VectorXd | values |
Eigen::MatrixXd | gradients |
The gradients of the data. Use gradients.col(i) to get the gradient at vertex i. | |
Sample of a mesh::Data on a mesh::Mesh
A Sample encapsulates user-provided data of a mesh including values and gradients. It is also aware of the dimensionality of the data, which is important for empty meshes.
Definition at line 13 of file Sample.hpp.
|
inlineexplicitnoexcept |
Constructs an empty Sample of a given data dimensionality.
Definition at line 15 of file Sample.hpp.
|
inline |
Constructs a Sample of given data dimensionality and size without gradients.
Definition at line 19 of file Sample.hpp.
|
inline |
Constructs a Sample of given data dimensionality and data values.
Definition at line 23 of file Sample.hpp.
|
inline |
Constructs a Sample of given data dimensionality, data values, and data gradients.
Definition at line 27 of file Sample.hpp.
|
default |
|
default |
|
inline |
Sets values and gradients to zero.
Definition at line 37 of file Sample.hpp.
int precice::time::Sample::dataDims |
The dimensionality of the data.
Definition at line 45 of file Sample.hpp.
Eigen::MatrixXd precice::time::Sample::gradients |
The gradients of the data. Use gradients.col(i) to get the gradient at vertex i.
Definition at line 52 of file Sample.hpp.
Eigen::VectorXd precice::time::Sample::values |
The data values linearised
Definition at line 49 of file Sample.hpp.