TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Matrix Multiplication in Clojure vs Numpy

68 pointsby eightysteeleover 13 years ago

2 comments

iqueover 13 years ago
Even if we don't consider the difference in data structures here, they use wildly different algorithms. Numpy does all the matrix calculations by outsourcing it to BLAS[1] routines that are a mix of C/Assembly, just like the answers detail.<p>BLAS is not only written in more efficient code, it's different algorithms altogether. BLAS can do a lot of optimizations that brings the total FLOP count to below what's usually considered required for matrix multiplication. (2m*n^2)<p>[1]: <a href="http://en.wikipedia.org/wiki/Basic_Linear_Algebra_Subprograms" rel="nofollow">http://en.wikipedia.org/wiki/Basic_Linear_Algebra_Subprogram...</a>
评论 #3476841 未加载
评论 #3476775 未加载
评论 #3476979 未加载
hoguover 13 years ago
love NumPy, that's the whole reason why I started using python.