def rsolve(A, y):
from numpy_sugar.linalg import rsolve as _rsolve<EOL>try:<EOL><INDENT>beta = _rsolve(A, y)<EOL><DEDENT>except LinAlgError:<EOL><INDENT>msg = "<STR_LIT>"<EOL>msg += "<STR_LIT>"<EOL>warnings.warn(msg, RuntimeWarning)<EOL>beta = zeros(A.shape[<NUM_LIT:0>])<EOL><DEDENT>return beta<EOL>
Robust solve Ax=y.