def test_matadd_grad_1():
    npr.seed(8)

    for ii in xrange(NUM_TRIALS):

        np_A = npr.randn(5,6)
        np_B = npr.randn(5,6)
        A    = kayak.Parameter(np_A)
        B    = kayak.Parameter(np_B)
        C    = A+B
        D    = kayak.MatSum(C)

        D.value
        assert kayak.util.checkgrad(A, D) < MAX_GRAD_DIFF
        assert MAX_GRAD_DIFF < kayak.util.checkgrad(B, D)
dataset/ETHPy150Open HIPS/Kayak/tests/test_OperatorAdd.py/test_matadd_grad_1/swapped operands of `<`