Skip to content

Commit

Permalink
mv file in experimentatl
Browse files Browse the repository at this point in the history
  • Loading branch information
nperraud committed Mar 6, 2019
1 parent 2ee842e commit ec8a2b2
Show file tree
Hide file tree
Showing 4 changed files with 536 additions and 1 deletion.
10 changes: 10 additions & 0 deletions deepsphere/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@
else:
from urllib import urlretrieve

def build_index(level):
values1 = np.arange(4).reshape([2,2])
if level==1:
values = values1
else:
values = np.zeros([2**level,2**level])
lowerlevel = build_index(level-1)
values += np.tile(lowerlevel,[2,2])
values += 4**(level-1)*np.repeat(np.repeat(values1,2**(level-1), axis=1), 2**(level-1), axis=0)
return values

def healpix_weightmatrix(nside=16, nest=True, indexes=None, dtype=np.float32):
"""Return an unnormalized weight matrix for a graph using the HEALPIX sampling.
Expand Down
File renamed without changes.
Loading

0 comments on commit ec8a2b2

Please sign in to comment.