19 #ifndef IPLOGRELATIVEFUNCTIONAL_HH_97I6BWHG
20 #define IPLOGRELATIVEFUNCTIONAL_HH_97I6BWHG
22 #include "pism/inverse/functional/IPFunctional.hh"
Abstract base class for functions from ice model vectors to .
IPLogRelativeFunctional(std::shared_ptr< const Grid > grid, array::Vector &u_observed, double eps, array::Scalar *weights=NULL)
virtual void normalize(double scale)
Determine the normalization constant for the functional.
virtual ~IPLogRelativeFunctional()
virtual void valueAt(array::Vector &x, double *OUTPUT)
Computes the value of the functional at the vector x.
array::Scalar * m_weights
virtual void gradientAt(array::Vector &x, array::Vector &gradient)
Computes the gradient of the functional at the vector x.
array::Vector & m_u_observed
Implements a functional for log-relative errors.