def __repr__(self):
if len(self.data) >= 1:
str = '-----------------------------------------\n'
for each in self._list:
array = np.asarray(each)
str = str + np.array2string(array) \
+ '\n-----------------------------------------\n'
return str.rstrip("\n") # Remove trailing newline character
else:
return 'No matrix found'
评论列表
文章目录