https://github.com/vegarant/spgl1
Raw File
Tip revision: 5b6ee1e77c0a24b8f50d6462478cc2a5b09f5622 authored by Michael Friedlander on 26 April 2016, 15:40:32 UTC
Move webpage to UBC.
Tip revision: 5b6ee1e
NormL1NN_primal.m
function p = NormL1NN_primal(x,weights)
% Non-negative L1 gauge function

p = norm(x.*weights,1);
if any(x < 0) p = Inf; end;

back to top