4 assert sys.version_info >= (3, 5)
8 assert(isinstance(left, sympy.Matrix))
9 assert(isinstance(right, sympy.Matrix))
12 for c
in range(0, left.cols):
13 for r
in range(0, left.rows):
14 sum += left[r, c] * right[r, c]
19 assert(isinstance(m, sympy.Matrix))
24 return sympy.Matrix([x, y])
32 return sympy.Matrix([x, y, z])
40 return sympy.Matrix([a, b, c, d, e, f])
44 return Vector6(0, 0, 0, 0, 0, 0)
51 l = [v[i] / v[m - 1]
for i
in range(0, m - 1)]
52 r = sympy.Matrix(m - 1, 1, l)
60 return v.col_join(sympy.Matrix.ones(1, 1))