[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
objects assignment to something else
From: |
CdeMills |
Subject: |
objects assignment to something else |
Date: |
Fri, 10 Dec 2010 04:38:27 -0800 (PST) |
Hello,
say x is a [5, 5] dataframe while a is a [5, 5] double matrix. The following
assignment fails:
a(:, :) = x
with the message:
error: operator =: no conversion for assignment of `class' to indexed
`matrix'
error: assignment failed, or no method for `matrix = class'
This message originates from base/ov-base.cc, but I didn't manage to trace
the full call chain, it probably starts from the internal subasgn(). Is
there a way, in this kind of operation, to either overload the copy
assignment operator, either call some specific object method in such a way
that it returns a copy of itself in the format of the LHS of the assignment
?
Regards
Pascal
--
View this message in context:
http://octave.1599824.n4.nabble.com/objects-assignment-to-something-else-tp3081872p3081872.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- objects assignment to something else,
CdeMills <=