comparison hilbert.cpp @ 36:a42903c61558

Added sliderview (not operational though)
author Robert Tubb <rt300@eecs.qmul.ac.uk>
date Tue, 09 Apr 2013 13:22:28 +0100
parents 790939017078
children b91a1859829a
comparison
equal deleted inserted replaced
35:790939017078 36:a42903c61558
188 pbin[i] = 0; 188 pbin[i] = 0;
189 189
190 } 190 }
191 191
192 // for loop thru bit levels 192 // for loop thru bit levels
193 i=0; 193
194 for(int blev = N-1; blev >= 0; blev--){ 194 for(int blev = N-1; blev >= 0; blev--){
195 // get next highest bits of index 195 // get next highest bits of index
196 196
197 subindex = index >> blev*P; 197 subindex = index >> blev*P;
198 subindex = mask & subindex; 198 subindex = mask & subindex;
252 unsigned long long subindex; // needs to be long cos we lewt shift by alot 252 unsigned long long subindex; // needs to be long cos we lewt shift by alot
253 vector<int> subindices; 253 vector<int> subindices;
254 254
255 255
256 // for loop thru bit levels 256 // for loop thru bit levels
257 i=0; 257
258 for(int blev = N-1; blev >= 0; blev--){ 258 for(int blev = N-1; blev >= 0; blev--){
259 //% get next highest bit of param 259 //% get next highest bit of param
260 260
261 vector<bool> vertexb; 261 vector<bool> vertexb;
262 for(i=0;i<P;i++){ 262 for(i=0;i<P;i++){