Add a New Comment (Rich Markup)
Hi, Just a quick note to record that this issue also affects the stk package. Here is an example
>> pkg load stk >> x = stk_dataframe (rand (2), {'X', 'Y'}); >> z = zeros (4, 2); >> z(1:2, :) = x; error: operator =: no conversion for assignment of 'class' to indexed 'matrix'
@++ Julien
Confirmed, the error is reported in octave_base_value::numeric_assign because Octave fails to treat a class with a `double` method as a known numeric conversion.
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 'matrix' error: assignment failed, or no method for 'matrix = class'
This is downstream issue https://github.com/cbm755/octsympy/issues/191
(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)
Attach Files: Comment:
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Only project members can vote.
Please enter the title of George Orwell's famous dystopian book (it's a date):
Follow 2 latest changes.
Copyright © 2023 Free Software Foundation, Inc. Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. The Levitating, Meditating, Flute-playing Gnu logo is a GNU GPL'ed image provided by the Nevrax Design Team. Source Code
Powered by Savane 3.11