TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Matrix Multiplication in Clojure vs Numpy

68 点作者 eightysteele超过 13 年前

2 条评论

ique超过 13 年前
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 未加载
hogu超过 13 年前
love NumPy, that's the whole reason why I started using python.