23 Sample(
int dims, Eigen::VectorXd inValues)
27 Sample(
int dims, Eigen::VectorXd inValues, Eigen::MatrixXd inGradients)
contains the time interpolation logic.
Sample(int dims) noexcept
Constructs an empty Sample of a given data dimensionality.
Sample(int dims, Eigen::VectorXd inValues, Eigen::MatrixXd inGradients)
Constructs a Sample of given data dimensionality, data values, and data gradients.
Eigen::MatrixXd gradients
The gradients of the data. Use gradients.col(i) to get the gradient at vertex i.
Sample(int dims, int dataCount)
Constructs a Sample of given data dimensionality and size without gradients.
Sample & operator=(Sample &&)=default
Sample & setZero()
Sets values and gradients to zero.
int dataDims
The dimensionality of the data.
Sample(const Sample &)=default
Sample(int dims, Eigen::VectorXd inValues)
Constructs a Sample of given data dimensionality and data values.
Sample(Sample &&)=default
Sample & operator=(const Sample &)=default