由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - [合集] 请教一个问题
相关主题
面题:copy directed graphC++: What is the difference between the two approaches?
学angular js有哪些有用的书?Cassandra 里的 partition
ng-style height=100% not working ?奇怪的C Programming on Linux问题
Re: 请教一道题目How does matlab optimization deal with singular matrix?
请问这道题怎么解决?Do the two statements cost the same amount of time?
[合集] 一个链表倒转的问题Re: amazon onsite interview question (转载)
C++如何实现graph?10G文件的排序问题
有人set up过 多个node的Cassandra 么? (转载)interview question: the prime number between 2 to N
相关话题的讨论汇总
话题: sqrts话题: grid话题: ybox话题: zbox话题: 问题
进入Programming版参与讨论
1 (共1页)
b***y
发帖数: 2799
1
☆─────────────────────────────────────☆
lipid (老子叫荔枝的时候,还没有超女呢) 于 (Sun Sep 18 22:29:39 2005) 提到:
有个code, 先把一个box分成小盒子 grid,
the number of grid in the x, y, z directions is n_xbox, n_ybox, and n_zbox.
下面的一个code写着
/* pre-computing the inverse distances between grid nodes.
N_sqrts = n_xbox * n_xbox + n_ybox * n_ybox + n_zbox * n_zbox + 1
问题1:为什么要加1?
sqrts[0]=0
for (k=1, k 问题2:这个code的目的很明显是先计算各个grid间的距离的倒数,
所以如果,最小的grid的index是(1,1,1),那末最大的inde
1 (共1页)
进入Programming版参与讨论
相关主题
interview question: the prime number between 2 to N请问这道题怎么解决?
[合集] GCC source code help[合集] 一个链表倒转的问题
[合集] 请问-fno-implicit-templates的用处C++如何实现graph?
[合集] inverse function for Normal Distr.有人set up过 多个node的Cassandra 么? (转载)
面题:copy directed graphC++: What is the difference between the two approaches?
学angular js有哪些有用的书?Cassandra 里的 partition
ng-style height=100% not working ?奇怪的C Programming on Linux问题
Re: 请教一道题目How does matlab optimization deal with singular matrix?
相关话题的讨论汇总
话题: sqrts话题: grid话题: ybox话题: zbox话题: 问题