tfmri.convex.ConvexFunctionQuadratic
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.ConvexFunctionA
ConvexFunctionrepresenting 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.LinearOperatorrepresenting a self-adjoint, positive definite matrixAwith shape[..., n, n]. The coefficient of the quadratic term.linear_coefficient –
A tf.Tensor representing a vector
bwith shape[..., n]. The coefficient of the linear term.constant_coefficient –
A scalar tf.Tensor representing the constant term
cwith shape[...].scale – A float. A scaling factor. Defaults to 1.0.
name – A name for this
ConvexFunction.
Initialize this
ConvexFunction.