Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_rank1_symmetric_convex_solver():
completed = ConvexSolver(require_symmetric_solution=True).complete(
XYXY_missing)
assert abs(completed[1, 2] - XYXY[1, 2]) < 0.001, \
"Expected %0.4f but got %0.4f" % (
XYXY[1, 2], completed[1, 2])
def test_rank1_convex_solver():
XY_completed = ConvexSolver().complete(XY_missing)
assert abs(XY_completed[1, 2] - XY[1, 2]) < 0.001, \
"Expected %0.4f but got %0.4f" % (
XY[1, 2], XY_completed[1, 2])