[Top][All Lists]

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

[Octave-bug-tracker] [bug #49267] @double/subsasgn should cast rhs to do

From: Colin Macdonald
Subject: [Octave-bug-tracker] [bug #49267] @double/subsasgn should cast rhs to double
Date: Tue, 4 Oct 2016 17:00:46 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0


                 Summary: @double/subsasgn should cast rhs to double
                 Project: GNU Octave
            Submitted by: cbm
            Submitted on: Tue 04 Oct 2016 05:00:44 PM GMT
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any



This is similar to https://savannah.gnu.org/bugs/?43097 (and is mentioned
there).  But the issue mentioned in the summary there is indeed closed.

Suppose you have a double array y.

Suppose you have an object x.

Try to assign "y(1) = x".  This probably should call "double(x)" automatically
(Matlab doeS).  Instead we get an error.

Example using the Symbolic pkg:

x = sym(2)
y = [0 0]
y(1) = x
error: operator =: no conversion for assignment of 'class' to indexed
error: assignment failed, or no method for 'matrix = class'

This is downstream issue https://github.com/cbm755/octsympy/issues/191


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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