def cho_solve_banded(cb_and_lower, b, overwrite_b=False, check_finite=True):
 (cb, lower) = cb_and_lower
 if check_finite:
  cb = asarray_chkfinite(cb)
  b = asarray_chkfinite(b)
 else:
  cb = asarray(cb)
  b = asarray(b)
 if (cb.shape[(-1)] != b.shape[0]):
  raise ValueError('shapes of cb and b are not compatible.')
 (pbtrs,) = get_lapack_funcs(('pbtrs',), (cb, b))
 (x, info) = pbtrs(cb, b, lower=lower, overwrite_b=overwrite_b)
 if (info > 0):
  raise LinAlgError(('%d-th leading minor not positive definite' % info))
 if (info < 0):
  raise ValueError(('illegal value in %d-th argument of internal pbtrs' % (- info)))
 return x

def cho_solve_banded ( cb_and_lower , b , overwrite_b = False , check_finite = True ) : ( cb , lower ) = cb_and_lower if check_finite : cb = asarray_chkfinite ( cb ) b = asarray_chkfinite ( b ) else : cb = asarray ( cb ) b = asarray ( b ) if ( cb . shape [ ( - 1 ) ] != b . shape [ 0 ] ) : raise ValueError ( 'shapes of cb and b are not compatible.' ) ( pbtrs , ) = get_lapack_funcs ( ( 'pbtrs' , ) , ( cb , b ) ) ( x , info ) = pbtrs ( cb , b , lower = lower , overwrite_b = overwrite_b ) if ( info > 0 ) : raise LinAlgError ( ( '%d-th leading minor not positive definite' % info ) ) if ( info < 0 ) : raise ValueError ( ( 'illegal value in %d-th argument of internal pbtrs' % ( - info ) ) ) return x
solve the linear equations a x = b .