jaxopt.projection.projection_affine_set
- jaxopt.projection.projection_affine_set(x, hyperparams)[source]
Projection onto an affine set:
\[\underset{y}{\text{argmin}} ~ ||x - y||_2^2 \quad \textrm{subject to} \quad A y = b\]- Parameters
x (
Array) – array to project.hyperparams (
Tuple) – tuplehyperparams = (A, b), whereAis a matrix andbis a vector.
- Return type
Array- Returns
output array, with the same shape as
x.