def eval_are_addable_4(): fname = __name__ + "." + sys._getframe().f_code.co_name from code import Q4 as Sub from mycode import matrix as Ref sub = lambda: Sub.are_addable(m1 + [[3]], m2) ref = lambda: Ref.are_addable(m1 + [[3]], m2) return E.eval_matfun(fname, sub, ref)
def eval_is_wellformed_4(): fname = __name__ + "." + sys._getframe().f_code.co_name from code import Q4 as Sub from mycode import matrix as Ref sub = lambda: Sub.is_wellformed([[1, 2, 3], [1, 2]]) ref = lambda: Ref.is_wellformed([[1, 2, 3], [1, 2]]) return E.eval_matfun(fname, sub, ref)
def eval_multiply_matrices_2(): fname = __name__ + "." + sys._getframe().f_code.co_name from code import Q4 as Sub from mycode import matrix as Ref sub = lambda: Sub.multiply_matrices(m1, m2) ref = lambda: Ref.multiply_matrices(m1, m2) return E.eval_matfun(fname, sub, ref)
def eval_add_list_1(): fname = __name__ + "." + sys._getframe().f_code.co_name from code import Q4 as Sub from mycode import matrix as Ref sub = lambda: Sub.add_lists(l1, l2) ref = lambda: Ref.add_lists(l1, l2) return E.eval_matfun(fname, sub, ref)
def eval_scalar_multiply_list_1(): fname = __name__ + "." + sys._getframe().f_code.co_name from code import Q4 as Sub from mycode import matrix as Ref sub = lambda: Sub.scalar_multiply_list(23, l2) ref = lambda: Ref.scalar_multiply_list(23, l2) return E.eval_matfun(fname, sub, ref)
def eval_are_multipliable_7(): fname = __name__ + "." + sys._getframe().f_code.co_name from code import Q4 as Sub from mycode import matrix as Ref sub = lambda: Sub.are_multipliable(m1, m2 + [[34]]) ref = lambda: Ref.are_multipliable(m1, m2 + [[34]]) return E.eval_matfun(fname, sub, ref)