[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #40813] atan2, fmod, hypot returns no results
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #40813] atan2, fmod, hypot returns no results for sparse matrices |
Date: |
Thu, 29 May 2014 15:25:14 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0 |
Update of bug #40813 (project octave):
Summary: atan2 returns no results for sparse matrices =>
atan2, fmod, hypot returns no results for sparse matrices
_______________________________________________________
Follow-up Comment #3:
Using Mercurial I have traced the problem back to changeset 6a271334750c. In
that changeset the implementation of atan2, fmod, and hypot were switched over
to binmap().
Indeed, the first problem that I reported with atan2 also exists for fmod.
fmod (sparse (11), sparse ([2 3]))
ans =
Compressed Column Sparse (rows = 1, cols = 2, nnz = 0 [0%])
BUT
fmod (sparse ([11 11]), sparse ([2 3]))
ans =
Compressed Column Sparse (rows = 1, cols = 2, nnz = 2 [100%])
(1, 1) -> 1
(1, 2) -> 2
So part of the problem seems to be that a scalar is not expanded in the same
way as it would be for a full matrix. I won't have time to look at this or
the submitted patch until the weekend.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?40813>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #40813] atan2, fmod, hypot returns no results for sparse matrices,
Rik <=