Created
March 5, 2016 13:35
-
-
Save arafatkatze/f421d2c8fdf2d7278fde to your computer and use it in GitHub Desktop.
Testing Sympy Berkowitz Algorithm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sympy import * | |
import time | |
matrix = Matrix([ [ 1.0, 2.0, 1.0] , [-2.0, -3.0, 1.0] , [ 3.0, 5.0, 0.0] ]) | |
start = time.clock() | |
for x in range(0, 1000): | |
matrix.berkowitz() | |
print time.clock() - start | |
#2.103344 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment