36 const std::vector<T>& stencilCoefficients);
39 const std::vector<T>& stencilCoefficients);
42 return stencilCoefficients_.size();
54 Eigen::Ref<Eigen::VectorX<T>> gradient)
const final;
60 Eigen::Ref<Eigen::MatrixX<T>> jacobian,
61 Eigen::Ref<Eigen::VectorX<T>> residual,
62 int& usedRows)
const final;
84 return targetWeights_;
92 return stencilCoefficients_;
96 std::vector<T> stencilCoefficients_;
97 Eigen::VectorX<T> targetWeights_;
98 std::vector<Eigen::Vector3<T>> targetValues_;
double getError(std::span< const ModelParametersT< T > > modelParameters, std::span< const SkeletonStateT< T > > skelStates, std::span< const MeshStateT< T > > meshStates) const final
const Eigen::VectorX< float > & getTargetWeights() const
void setTargetValues(const std::vector< Eigen::Vector3< float > > &targetValues)
double getGradient(std::span< const ModelParametersT< T > > modelParameters, std::span< const SkeletonStateT< T > > skelStates, std::span< const MeshStateT< T > > meshStates, Eigen::Ref< Eigen::VectorX< T > > gradient) const final
void setTargetValue(const Eigen::Vector3< float > &targetValue)
const std::vector< T > & getStencilCoefficients() const
double getJacobian(std::span< const ModelParametersT< T > > modelParameters, std::span< const SkeletonStateT< T > > skelStates, std::span< const MeshStateT< T > > meshStates, Eigen::Ref< Eigen::MatrixX< T > > jacobian, Eigen::Ref< Eigen::VectorX< T > > residual, int &usedRows) const final
FiniteDifferenceSequenceErrorFunctionT(const Skeleton &skel, const ParameterTransform &pt, const std::vector< T > &stencilCoefficients)
const std::vector< Eigen::Vector3< T > > & getTargetValues() const
void setTargetWeights(const Eigen::VectorX< float > &weights)
FiniteDifferenceSequenceErrorFunctionT(const Character &character, const std::vector< T > &stencilCoefficients)
size_t getJacobianSize() const final
size_t numFrames() const final
SequenceErrorFunctionT(const Skeleton &skel, const ParameterTransform &pt)
SkeletonT< float > Skeleton
ParameterTransformT< float > ParameterTransform
Vector< T, Dynamic > VectorX
Dynamic-size column vector. Common return type for solver residuals and parameter vectors.
A character model with skeletal structure, mesh, and optional components.
Represents the complete state of a model's mesh.
A vector of size numModelParams holding the values of all model parameters for a character.
Represents the complete state of a skeleton.