avatar
Should I use C or matlab?# Computation - 科学计算
g*n
1
Hi,folks:
I am running a very computationally intensive Monte-Carlo Markov Chain
algorithm using R, but it seemed extremely slow. I know if I rewrite the
program in C, the efficiency will be improved a gread deal, however, it
might be easier for me to rewrite in matlab than C. Is there a significant
difference in efficiency between C and matlab for running MCMC program?
Thanks.
avatar
L*g
2
I think it'll be faster in C.

【在 g******n 的大作中提到】
: Hi,folks:
: I am running a very computationally intensive Monte-Carlo Markov Chain
: algorithm using R, but it seemed extremely slow. I know if I rewrite the
: program in C, the efficiency will be improved a gread deal, however, it
: might be easier for me to rewrite in matlab than C. Is there a significant
: difference in efficiency between C and matlab for running MCMC program?
: Thanks.

avatar
m*e
3
Unless you have exactly what is needed to be done and if you have to check
and debug your C code. Matlab is very efficient already and has plenty of
built-in functions. Getting a new CPU would help too.
avatar
L*g
4
If you want to run your code on a cluster, you definitely want to use C.
avatar
k*n
5
For matrix computations intensive codes, Matlab could be as fast as C.
avatar
s*b
6
agree,by the way, how fast can atlas provide gcc in general?

【在 k******n 的大作中提到】
: For matrix computations intensive codes, Matlab could be as fast as C.
avatar
k*n
7
Sometimes, ATLAS could achieve more than 10x performance than naively
compiled BLAS.

【在 s**b 的大作中提到】
: agree,by the way, how fast can atlas provide gcc in general?
avatar
s*b
8
that's great, worth take a try

【在 k******n 的大作中提到】
: Sometimes, ATLAS could achieve more than 10x performance than naively
: compiled BLAS.

avatar
M*e
9
http://www.interactivesupercomputing.com/products/
Star-P software is a client-server parallel-computing platform that’s been
designed to work with multiple Very High Level Language (VHLL) client
applications such as MATLAB®, Python, or R, and has built-in tools to
expand VHLL computing capability through addition of libraries and hardware-
based accelerators.
某一天看到了,觉得如果有条件可以看看
avatar
s*i
10
my experience is that Matlab won't be as fast after the size has increased
to some very large point

【在 k******n 的大作中提到】
: For matrix computations intensive codes, Matlab could be as fast as C.
avatar
k*n
11
Is there any reason?
On some platforms, Matlab calls ATLAS. I guess your C codes also call ATLAS.
Why does it get slow?

【在 s**i 的大作中提到】
: my experience is that Matlab won't be as fast after the size has increased
: to some very large point

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。