joseph-hurtado•

FYI Languages used in the comparisons:

  • Clojure (clojure.core.matrix)
  • MATLAB
  • Python (NumPy)
  • JavaScript (math.js)
3
SimonGray•

Kind of weird how eye is apparently the shorthand for an identity matrix in Matlab and Numpy. It's seems unnecessarily idiosyncratic the way car/cdr is in the other Lisps, but perhaps it has a long tradition being called that by mathematicians too?

2
awolf99•

Mathematicians typically call the identity matrix 'I' (i.e. capitial i). My guess is that the Matlab authors wanted to avoid a single-character name for the matrix so they used a homophone to avoid this. Pretty sure Numpy just picked it up from Matlab.

2
_djblueOP•

This is a really cool project I found on how to use different matrix libraries in various languages.

1