Clojure Matrix Representation

前端 未结 8 459
-上瘾入骨i
-上瘾入骨i 2020-12-29 15:10

What is a good representation for matrices in Clojure? I\'m interested in dealing with dense matrices of floating point numbers. The \"list of lists\" representation springs

8条回答
  •  生来不讨喜
    2020-12-29 15:36

    I recently wrote some code that needed matrix maths, and initially I used vector-of-vectors, map & reduce, but found the resulting code hard to understand when I returned to it (I'm new to Clojure mind). Incanter made the same code very terse, easy to understand (standard matrix ops) and much much faster.

提交回复
热议问题