octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #40813] atan2 returns no results for sparse ma


From: Rik
Subject: [Octave-bug-tracker] [bug #40813] atan2 returns no results for sparse matrices
Date: Thu, 05 Dec 2013 01:14:42 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:25.0) Gecko/20100101 Firefox/25.0

URL:
  <http://savannah.gnu.org/bugs/?40813>

                 Summary: atan2 returns no results for sparse matrices
                 Project: GNU Octave
            Submitted by: rik5
            Submitted on: Wed 04 Dec 2013 05:14:41 PM PST
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Regression
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

atan2 seems to have been broken in the transition from 3.2 (works) to 3.4.

The following simple call to atan2 should work, but returns nothing instead.


x = sparse ([1 2]);
atan2 (x, 2)
ans =

Compressed Column Sparse (rows = 1, cols = 2, nnz = 0 [0%])



For possible reference, there is atan2 code in liboctave/array/dSparse.cc but
it is never called.  Using gdb I found that the pathway is actually to the
Sparse-Scalar template in liboctave/util/oct-binmap.h





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?40813>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]