Skip to main content
`Ctrl`+`K`

# TAOTERMQUADRATIC

A `TaoTerm` that computes \(\tfrac{1}{2}(x - p)^T A (x - p)\), for a fixed matrix \(A\), solution \(x\) and parameters \(p\).

## Notes

This term is `TAOTERM_PARAMETERS_OPTIONAL`. If the parameters argument is `NULL` for evaluation routines the term computes \(\tfrac{1}{2}x^T A x\).

The matrix \(A\) must be symmetric.

The default Hessian creation mode (see `TaoTermGetCreateHessianMode()`) is `H == Hpre` and `TaoTermCreateHessianMatrices()` will create a matrix with the same type as \(A\).

## See Also

TaoTerm: composable objective function terms, `TaoTerm`, `TaoTermType`, `TaoTermCreateQuadratic()`, `TAOTERMHALFL2SQUARED`, `TAOTERML1`, `TaoTermQuadraticSetMat()`

## Level

intermediate

## Location

src/tao/term/impls/quadratic/taotermquadratic.c

Index of all TaoTerm routines
Table of Contents for all manual pages
Index of all manual pages