gl_dnorm - conjugate of the grouped L1 regularizer Copyright(c) 2009 Ryota Tomioka This software is distributed under the MIT license. See license.txt
0001 % gl_dnorm - conjugate of the grouped L1 regularizer 0002 % 0003 % Copyright(c) 2009 Ryota Tomioka 0004 % This software is distributed under the MIT license. See license.txt 0005 function nm=gl_dnorm(ww,blks) 0006 0007 nm=0; 0008 ix0=0; 0009 for kk=1:length(blks) 0010 I=ix0+(1:blks(kk)); 0011 ix0=I(end); 0012 nm=max(nm, norm(ww(I))); 0013 end