tfmri.convex.ConvexFunctionQuadratic

class ConvexFunctionQuadratic(quadratic_coefficient, linear_coefficient=None, constant_coefficient=None, scale=None, name=None)[source]

Bases: tensorflow_mri.python.ops.convex_ops.ConvexFunction

A ConvexFunction representing a generic quadratic function.

Represents \(f(x) = \frac{1}{2} x^{T} A x + b^{T} x + c\).

Parameters
  • quadratic_coefficient – A tf.Tensor or a tf.linalg.LinearOperator representing a self-adjoint, positive definite matrix A with shape [..., n, n]. The coefficient of the quadratic term.

  • linear_coefficient

    A tf.Tensor representing a vector b with shape [..., n]. The coefficient of the linear term.

  • constant_coefficient

    A scalar tf.Tensor representing the constant term c with shape [...].

  • scale – A float. A scaling factor. Defaults to 1.0.

  • name – A name for this ConvexFunction.

Initialize this ConvexFunction.