We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81ffd82 commit 649235eCopy full SHA for 649235e
TensorToolbox/sptensor.py
@@ -1852,7 +1852,7 @@ def __lt__(self, other):
1852
# Case 1: One argument is a scalar
1853
if isinstance(other, (float, int)):
1854
subs1 = self.subs[(self.vals < other).transpose()[0], :]
1855
- if other >= 0:
+ if other > 0:
1856
subs2 = self.allsubs()[ttb.tt_setdiff_rows(self.allsubs(), self.subs), :]
1857
subs = np.vstack((subs1, subs2))
1858
else:
0 commit comments