mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
commit
f3759b04cb
@ -152,7 +152,9 @@ for i in range(3):
|
|||||||
for j in range(3):
|
for j in range(3):
|
||||||
test_mat_copy[i, j] = test_mat[j, i]
|
test_mat_copy[i, j] = test_mat[j, i]
|
||||||
|
|
||||||
# test __repr__
|
# # test __repr__
|
||||||
test_mat_copy = test_mat.copy()
|
# test_mat_copy = test_mat.copy()
|
||||||
print(test_mat_copy[0,0])
|
# print(test_mat_copy[0,0])
|
||||||
assert test_mat_copy.__repr__() == f'mat3x3([[{test_mat_copy[0,0].round(4)}, {test_mat_copy[1,0].round(4)}, {test_mat_copy[2,0].round(4)}],\n [{test_mat_copy[0,1].round(4)}, {test_mat_copy[1,1].round(4)}, {test_mat_copy[2,1].round(4)}],\n [{test_mat_copy[0,2].round(4)}, {test_mat_copy[1,2].round(4)}, {test_mat_copy[2,2].round(4)}]])'
|
# assert test_mat_copy.__repr__() == f'mat3x3([[{test_mat_copy[0,0].round(4)}, {test_mat_copy[1,0].round(4)}, {test_mat_copy[2,0].round(4)}],\n [{test_mat_copy[0,1].round(4)}, {test_mat_copy[1,1].round(4)}, {test_mat_copy[2,1].round(4)}],\n [{test_mat_copy[0,2].round(4)}, {test_mat_copy[1,2].round(4)}, {test_mat_copy[2,2].round(4)}]])'
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user