Redian新闻
>
numerical recipes in C++有人用过吗?
avatar
numerical recipes in C++有人用过吗?# Programming - 葵花宝典
f*y
1
我随便翻了一下,发现里边function member都直接定义在class里边,这样不是会让编
译后的程序变得臃肿吗?
avatar
h*e
2

Who told u that?

【在 f******y 的大作中提到】
: 我随便翻了一下,发现里边function member都直接定义在class里边,这样不是会让编
: 译后的程序变得臃肿吗?

avatar
f*y
3
I remember functions defined in class are inline functions.
avatar
p*n
4
right

【在 f******y 的大作中提到】
: I remember functions defined in class are inline functions.
avatar
r*r
5
NR is known for its ugly code. gsl is better.
avatar
b*a
6
what's GSL?

【在 r*********r 的大作中提到】
: NR is known for its ugly code. gsl is better.
avatar
k*f
7

Inline is just a hint to the compiler, which can ignore it completely as in
the case of bebug mode. In general, if a member function is too complicated
to the compiler, e.g. has a loop in the implementation, it will be compiled
as out of line function.

【在 f******y 的大作中提到】
: I remember functions defined in class are inline functions.
avatar
r*r
8
gsl is GNU scientific library.
avatar
f*y
9
right, so NR just gives everything to the compiler, and let it choose.

in
complicated
compiled

【在 k**f 的大作中提到】
:
: Inline is just a hint to the compiler, which can ignore it completely as in
: the case of bebug mode. In general, if a member function is too complicated
: to the compiler, e.g. has a loop in the implementation, it will be compiled
: as out of line function.

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