Skip to content

Instantly share code, notes, and snippets.

@arafatkatze
Created March 5, 2016 13:35
Show Gist options
  • Save arafatkatze/f421d2c8fdf2d7278fde to your computer and use it in GitHub Desktop.
Save arafatkatze/f421d2c8fdf2d7278fde to your computer and use it in GitHub Desktop.
Testing Sympy Berkowitz Algorithm
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