File tree 1 file changed +4
-7
lines changed
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 6
6
from tt .core .utils import my_chop2
7
7
import warnings
8
8
9
- # The main class for working with vectors in the TT-format
10
9
11
10
class vector (object ):
12
- """Construct new TT-vector.
13
-
14
- When called with no arguments, creates dummy object which can be filled from outside.
15
-
16
- When ``a`` is specified, computes approximate decomposition of array ``a`` with accuracy ``eps``:
11
+ """The main class for working with vectors in the TT-format. It constructs
12
+ new TT-vector. When called with no arguments, creates dummy object which
13
+ can be filled from outside. When ``a`` is specified, computes approximate
14
+ decomposition of array ``a`` with accuracy ``eps``:
17
15
18
16
:param a: A tensor to approximate.
19
17
:type a: ndarray
@@ -380,7 +378,6 @@ def __radd__(self, other):
380
378
return self
381
379
return other + self
382
380
383
- #@profile
384
381
def round (self , eps = 1e-14 , rmax = 1000000 ):
385
382
"""Applies TT rounding procedure to the TT-vector and **returns rounded tensor**.
386
383
You can’t perform that action at this time.
0 commit comments