37,743
社区成员
发帖
与我相关
我的任务
分享
class LinearSystem:
def __init__(self, A, b):
assert A.row_num() == len(b), "row num of the A must same with the len of the b"
self._m = A.row_num()
self._n = A.col_num()
assert self._m == self._n # TODO: this is not restriction
self.Ab = [Vector(A.row_vector(i) + [b(i)])
for i in range(self._m)]
