def cholesky(a, lower=False):
 (l, u) = _cholesky(a)
 if lower:
  return l
 else:
  return u

def cholesky ( a , lower = False ) : ( l , u ) = _cholesky ( a ) if lower : return l else : return u
compute the cholesky decomposition of a matrix .