cr.sparse.opt.smooth_build3

cr.sparse.opt.smooth_build3(func, grad, grad_val)

Creates a a smooth function with user defined grad and grad_val functions

Parameters
  • func – Definition of the smooth function \(f : \RR^n \to \RR\)

  • grad – Definition of the gradient \(g = \nabla f : \RR^n \to \RR^n\)

  • grad_val – Definition of a combined function which computes the pair \((g(x), f(x))\)

Returns

A smooth function wrapper

Return type

SmoothFunction