def _get_G(k_params):
 I = np.eye(k_params)
 A = np.concatenate(((- I), (- I)), axis=1)
 B = np.concatenate((I, (- I)), axis=1)
 C = np.concatenate((A, B), axis=0)
 return matrix(C)

def _get_G ( k_params ) : I = np . eye ( k_params ) A = np . concatenate ( ( ( - I ) , ( - I ) ) , axis = 1 ) B = np . concatenate ( ( I , ( - I ) ) , axis = 1 ) C = np . concatenate ( ( A , B ) , axis = 0 ) return matrix ( C )
the linear inequality constraint matrix .