Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to measure clock cycles for a particular operation

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 for a particular operation

How to measure clock cycles in the following matrix multiplication?

A = zero_matrix(ZZ,100)

zero_matrix(ZZ,100) B = zero_matrix(ZZ,100)

zero_matrix(ZZ,100) for i in range(100):

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 * B

C=A*B