Skip to content

Instantly share code, notes, and snippets.

@quinnj
quinnj / spectral-norm.jl
Last active December 15, 2015 23:29
* Implemented the spectral-norm benchmark from: http://benchmarksgame.alioth.debian.org/u32/performance.php?test=spectralnorm * From my timings, this implementation consistently ran in 10-12s, putting us ahead of all other dynamic languages (and represents a significant speed up compared to the previous version at https://github.com/JuliaLang/ju…
#
# The Computer Language Benchmarks Game
# spectral-norm benchmark
# http://shootout.alioth.debian.org/u32/performance.php?test=spectralnorm
#
# Based on the Javascript program
#
include("timing.jl")
A(i,j) = 1.0 / ((i+j)*(i+j+1.0)/2.0+i+1.0)