WIP: Test based on http://en.wikipedia.org/wiki/Perron%E2%80%93Frobenius_theorem#Positive_matrices