Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Python/Sympy/sympy/matrices/benchmarks/     Datei vom 6.10.2026 mit Größe 341 B image not shown  

Quelle  bench_matrix.py   Sprache: Python

 

from __future__ import annotations
from sympy.core.numbers import Integer
from sympy.matrices.dense import (eye, zeros)

i3 = Integer(3)
M = eye(100)


def timeit_Matrix__getitem_ii():
    M[3, 3]


def timeit_Matrix__getitem_II():
    M[i3, i3]


def timeit_Matrix__getslice():
    M[:, :]


def timeit_Matrix_zeronm():
    zeros(100, 100)

Messung
CHZG
839810093

¤ Dauer der Verarbeitung: 0.1 Sekunden  ¤

*© Formatika GbR, Deutschland