由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - How solid it is: c++/c# call Matlab library
相关主题
从统一数据格式和算法写作格式的角度讲,matlab还是很先进的买不起 visual studio 和 matlab
c++ linking problemRe: javadoc for C++?
苦寻VNI Numerical Lib...大家在linux下面用什么C++的IDE呢?
问个面试问题,请教请推荐好的c++下的matrix库
C Library (一个统计方面的) 安装一问C++现在前进的方向是不是错误的?
谁给科普一下Linux里lib search怎么运作的?C++ with gtkmm
[合集] 请教matlab和c++混合使用的问题。[C++]can not link libs that are dynamically linkable
help - visual Stusio 2010 can't find correct boost library有谁用D语言的么?
相关话题的讨论汇总
话题: matlab话题: c++话题: memory话题: library
进入Programming版参与讨论
1 (共1页)
w*s
发帖数: 7227
1
what's your user experience ?
a****l
发帖数: 8211
2
再solid的系统也受不了傻瓜的瞎折腾.matlab自己其实就是一个壳,matlab调用的库和
你用c调用的是一样的.

【在 w*s 的大作中提到】
: what's your user experience ?
w*s
发帖数: 7227
3
want to know if there're any issues, that's it.

【在 a****l 的大作中提到】
: 再solid的系统也受不了傻瓜的瞎折腾.matlab自己其实就是一个壳,matlab调用的库和
: 你用c调用的是一样的.

a****l
发帖数: 8211
4
只要你的c程序是正确的,不应该有任何问题。为什么这么说?有matlab这个使用了多
年的大程序再那里,还不够证明吗?

【在 w*s 的大作中提到】
: want to know if there're any issues, that's it.
k**********g
发帖数: 989
5
If you need to handle large data and your application (not OS) is 32-bit,
you will see memory fragmentation (in the form of premature "out-of-memory"
errors soon.)
When MATLAB calls a C extension, the C extension must return all its data (
states) as a MATLAB output variable. A C extension must not try to remember
its states via global variables because this can create hard-to-fix bugs.
Long-running and batch-processing applications involving MATLAB should
implement application checkpoints: http://en.wikipedia.org/wiki/Application_checkpointing The application should periodically write its intermediate result to disk, so that if the application is interrupted (such as from an "out-of-memory" error), the application can be restarted from the most recent checkpoint.
Memory used to back a MATLAB matrix variable must be allocated using MATLAB'
s memory allocator. Do not use the C/C++ standard library "new" or "malloc"
for matrix variables. Conversely, do not use MATLAB's memory allocator for
variables used only in your C code.
If you need to make robust applications (such as industrial-strength
applications), use process isolation. (Perform the work in a separate
running instance of MATLAB.)
Just 2 cents, might have errors.
w*s
发帖数: 7227
6
perfect, this is what i want to learn, thanks very much !

"
remember
MATLAB'
"

【在 k**********g 的大作中提到】
: If you need to handle large data and your application (not OS) is 32-bit,
: you will see memory fragmentation (in the form of premature "out-of-memory"
: errors soon.)
: When MATLAB calls a C extension, the C extension must return all its data (
: states) as a MATLAB output variable. A C extension must not try to remember
: its states via global variables because this can create hard-to-fix bugs.
: Long-running and batch-processing applications involving MATLAB should
: implement application checkpoints: http://en.wikipedia.org/wiki/Application_checkpointing The application should periodically write its intermediate result to disk, so that if the application is interrupted (such as from an "out-of-memory" error), the application can be restarted from the most recent checkpoint.
: Memory used to back a MATLAB matrix variable must be allocated using MATLAB'
: s memory allocator. Do not use the C/C++ standard library "new" or "malloc"

w*s
发帖数: 7227
7
BTW, how's the performance of c++ code calling matlab library ?
i never used it so what to ask guru.
we have a hard requirement for performance for c++ real-time transactions,
so ...
also for statistical computation, any other good libs besides matlab ?

"
remember
MATLAB'
"

【在 k**********g 的大作中提到】
: If you need to handle large data and your application (not OS) is 32-bit,
: you will see memory fragmentation (in the form of premature "out-of-memory"
: errors soon.)
: When MATLAB calls a C extension, the C extension must return all its data (
: states) as a MATLAB output variable. A C extension must not try to remember
: its states via global variables because this can create hard-to-fix bugs.
: Long-running and batch-processing applications involving MATLAB should
: implement application checkpoints: http://en.wikipedia.org/wiki/Application_checkpointing The application should periodically write its intermediate result to disk, so that if the application is interrupted (such as from an "out-of-memory" error), the application can be restarted from the most recent checkpoint.
: Memory used to back a MATLAB matrix variable must be allocated using MATLAB'
: s memory allocator. Do not use the C/C++ standard library "new" or "malloc"

1 (共1页)
进入Programming版参与讨论
相关主题
有谁用D语言的么?C Library (一个统计方面的) 安装一问
为什么在我的电脑上编译好的程序,无法在其他电脑上运行?谁给科普一下Linux里lib search怎么运作的?
熟悉C++,向Windows 还是Linux 方向发展? thanks[合集] 请教matlab和c++混合使用的问题。
Java 和 .Net 到底哪个更有好一点的前景?help - visual Stusio 2010 can't find correct boost library
从统一数据格式和算法写作格式的角度讲,matlab还是很先进的买不起 visual studio 和 matlab
c++ linking problemRe: javadoc for C++?
苦寻VNI Numerical Lib...大家在linux下面用什么C++的IDE呢?
问个面试问题,请教请推荐好的c++下的matrix库
相关话题的讨论汇总
话题: matlab话题: c++话题: memory话题: library