How to measure clock cycles in the following matrix multiplication?
A = zero_matrix(ZZ,100)
B = zero_matrix(ZZ,100)
for i in range(100):
for j in range(100):
A[i,j] = ZZ.random_element(1000) B[i,j] = ZZ.random_element(1000)
C=A*B
How to measure clock cycles in the following matrix multiplication?
A = zero_matrix(ZZ,100)
B = zero_matrix(ZZ,100)
for i in range(100):
for j in range(100):
A[i,j] = ZZ.random_element(1000) B[i,j] = ZZ.random_element(1000)
C=A*B
How to measure clock cycles in the following matrix multiplication?
A =
zero_matrix(ZZ,100)range(100):zero_matrix(ZZ,100) B =
zero_matrix(ZZ,100)zero_matrix(ZZ,100) for i in
range(100):for j in
range(100):range(100):
A[i,j]A[i, j] = ZZ.random_element(1000)B[i,j]B[i, j] = ZZ.random_element(1000) C = A * BC=A*B
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.