cr.sparse.opt.indicator_singleton¶
- cr.sparse.opt.indicator_singleton(c)[source]¶
Returns an indicator function for a singleton set
- Parameters
c (jax.numpy.ndarray) – An array
- Returns
An indicator function
Let
be a singleton convex set where .We implement its indicator function as:
(1)¶Note
The implementation broadcasts
to the shape of before making the comparison.Thus if
and , then .