cr.sparse.opt.smooth_func_translate

cr.sparse.opt.smooth_func_translate(smooth_func, b)[source]

Returns a smooth function \(g\) for a smooth function \(f\) s.t. \(g(x) = f(x + b)\)

Parameters
  • smooth_func (SmoothFunction) – Wrapper for smooth function \(f : \RR^n \to \RR\)

  • b (jax.numpy.ndarray) – The offset/translation vector \(b \in \RR^n\)

Returns

A smooth function wrapper for the function \(g\) such that \(g(x) = f(x+b)\)

Return type

SmoothFunction