由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Quant版 - memory allocation about vector
相关主题
[Question] Volatility surface question, thanks!Predict values of vectors generated by black box functions
说个现在为止最靠谱的解释(严肃非搞笑)two vectors' coefficient of determination (转载)
HFT is dead...为什么大部分quant用C++, developer用Java?
C++ and threading interview questionsPython & equity research models
问一道编程题面了两个IB,教训+请教
问个C++的问题sparse linear Ax = b , 有什么好办法解 x ?
如何在c++里存储latticeMathematica9.0真是高大上!
data clustering by vector correlation distance (转载)[合集] 请教一个ramdom walk踢
相关话题的讨论汇总
话题: vector话题: memory话题: allocation话题: just话题: two
进入Quant版参与讨论
1 (共1页)
f*****s
发帖数: 141
1
Two ways of holding 2-dimensional array:
(1) vector of vector
(2) Just use one vector
Which is more disadvantageous in terms of memory allocation? such as
fregmentation issue?
J******d
发帖数: 506
2
If memory is very fragmented, (1) should be better.
f*****s
发帖数: 141
3
I also think so, but looks like the interviewer prefer (2)...He is a >10-
year quant in a top IB.
J******d
发帖数: 506
4
Maybe he didn't express his question clearly or you misunderstood?
If he actually meant "which way is less likely to get the memory
fragmented?" (or "safer to use if want to avoid fragmentation"), then of
course, (2).
Basically, I am asking if "fragmentation" is the result of the reason.

>10-

【在 f*****s 的大作中提到】
: I also think so, but looks like the interviewer prefer (2)...He is a >10-
: year quant in a top IB.

r*******t
发帖数: 8550
5
A) this question is a pure IT question
B) 2) will create less fragmentations if used.

【在 f*****s 的大作中提到】
: I also think so, but looks like the interviewer prefer (2)...He is a >10-
: year quant in a top IB.

z****g
发帖数: 1978
6
most LAPACK and CBLUS library is implemented assuming that vector is
allocated in the
second way.

【在 f*****s 的大作中提到】
: I also think so, but looks like the interviewer prefer (2)...He is a >10-
: year quant in a top IB.

1 (共1页)
进入Quant版参与讨论
相关主题
[合集] 请教一个ramdom walk踢问一道编程题
[合集] CMU v.s. NYU问个C++的问题
[合集] 今天一道面试题目。大家帮忙看看。 (转载)如何在c++里存储lattice
[合集] 求推荐interest rate 方面的书data clustering by vector correlation distance (转载)
[Question] Volatility surface question, thanks!Predict values of vectors generated by black box functions
说个现在为止最靠谱的解释(严肃非搞笑)two vectors' coefficient of determination (转载)
HFT is dead...为什么大部分quant用C++, developer用Java?
C++ and threading interview questionsPython & equity research models
相关话题的讨论汇总
话题: vector话题: memory话题: allocation话题: just话题: two