m2m模型翻译
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
306 B

6 months ago
  1. from sympy.core.numbers import Integer
  2. from sympy.matrices.dense import (eye, zeros)
  3. i3 = Integer(3)
  4. M = eye(100)
  5. def timeit_Matrix__getitem_ii():
  6. M[3, 3]
  7. def timeit_Matrix__getitem_II():
  8. M[i3, i3]
  9. def timeit_Matrix__getslice():
  10. M[:, :]
  11. def timeit_Matrix_zeronm():
  12. zeros(100, 100)