cr.sparse.opt.project_to_real_upper_limit

cr.sparse.opt.project_to_real_upper_limit(x, limit=1.0)[source]

Projects a (possibly complex) vector to its real part with an upper limit on each entry.