Created
          October 30, 2017 11:58 
        
      - 
      
- 
        Save denius/fcd9e509cbced7455ada65397ed42b76 to your computer and use it in GitHub Desktop. 
    QR benchmark
  
        
  
    
      This file contains hidden or 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
    
  
  
    
  | using StaticArrays | |
| using BenchmarkTools, Compat | |
| a = m = 0 | |
| for K = 1:18 | |
| a = rand(SMatrix{K,K,Float64,K*K}) | |
| m = Matrix(a) | |
| print("K=$K\n") | |
| @time qr(a) | |
| @btime qr($a) | |
| @btime qr($m) | |
| end | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment