Skip to content

Commit df633b3

Browse files
committed
Remove duplicated text
1 parent 0f9a837 commit df633b3

File tree

2 files changed

+9
-47
lines changed

2 files changed

+9
-47
lines changed

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ eMaTe it is a python package which the main goal is to provide methods capable
77
pip install emate
88
```
99

10+
If you a have a GPU you should also install cupy.
1011
## Kernel Polynomial Method (KPM)
1112

1213
The Kernel Polynomial Method can estimate the spectral density of large sparse Hermitan matrices with a computational cost almost linear. This method combines three key ingredients: the Chebyshev expansion + the stochastic trace estimator + kernel smoothing.
@@ -31,8 +32,8 @@ from stdog.utils.misc import ig2sparse
3132

3233
W = ig2sparse(G)
3334

34-
num_moments = 100
35-
num_vecs = 100
35+
num_moments = 40
36+
num_vecs = 40
3637
extra_points = 10
3738
ek, rho = tfkpm(W, num_moments, num_vecs, extra_points)
3839
```
@@ -43,17 +44,14 @@ plt.hist(vals, density=True, bins=100, alpha=.9, color="steelblue")
4344
plt.scatter(ek, rho, c="tomato", zorder=999, alpha=0.9, marker="d")
4445

4546
```
46-
If the CUPY pkg it is available in your machine you also can use the cupy implementation. When compared with the tf-kpm the
47-
The cupy-kpm it's more slow for median matrices and more faster for larger matrices
48-
4947
If the CUPY package it is available in your machine, you can also use the cupy implementation. When compared to tf-kpm, the
5048
Cupy-kpm is slower for median matrices (100k) and faster for larger matrices (> 10^6). The main reason it's because the tf-kpm was implemented in order to calc all te moments in a single step.
5149

5250
```python
5351
from emate.hermitian import cupykpm
5452

55-
num_moments = 100
56-
num_vecs = 100
53+
num_moments = 40
54+
num_vecs = 40
5755
extra_points = 10
5856
ek, rho = cupykpm(W, num_moments, num_vecs, extra_points)
5957
```

0 commit comments

Comments
 (0)