This commit is contained in:
2025-03-08 19:33:10 +08:00
parent a68778dd2e
commit ef45071a38
4 changed files with 66 additions and 1 deletions

View File

@@ -71,7 +71,7 @@ for n in n_array:
start_time = time.time()
det_A = np.linalg.det(A)
det_time = time.time() - start_time
print(f"矩阵行列式时间: {det_time:.2f}")
print(f"矩阵行列式时间: {det_time:.3f}")
# 矩阵乘法
start_time = time.time()