This commit is contained in:
nik
2025-10-01 22:55:09 +03:00
parent 4d0ece634b
commit 74e98c37c4
591 changed files with 20286 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
def choose_mm_algorithm(n):
if n <= 64:
return "classical"
if n <= 512:
return "blocked"
return "strassen"
if __name__ == "__main__":
print(choose_mm_algorithm(64))
print(choose_mm_algorithm(256))
print(choose_mm_algorithm(1500))