def _upper2lower(ub):
 lb = np.zeros(ub.shape, ub.dtype)
 (nrow, ncol) = ub.shape
 for i in range(ub.shape[0]):
  lb[i, 0:(ncol - i)] = ub[((nrow - 1) - i), i:ncol]
  lb[i, (ncol - i):] = ub[((nrow - 1) - i), 0:i]
 return lb

def _upper2lower ( ub ) : lb = np . zeros ( ub . shape , ub . dtype ) ( nrow , ncol ) = ub . shape for i in range ( ub . shape [ 0 ] ) : lb [ i , 0 : ( ncol - i ) ] = ub [ ( ( nrow - 1 ) - i ) , i : ncol ] lb [ i , ( ncol - i ) : ] = ub [ ( ( nrow - 1 ) - i ) , 0 : i ] return lb
convert upper triangular banded matrix to lower banded form .