[Changeset]: octave_value(const ArrayN<octave_idx_type>&) constructor

John W. Eaton jwe at bevo.che.wisc.edu
Sat Jun 28 04:14:07 CDT 2008


On 26-Jun-2008, David Bateman wrote:

| consider the attached changeset instead.

It seems odd to me that the octave_value constructor that takes an
Array<octave_idx_type> value would convert it to NDArray internally
instead of storing it as an Array<octave_idx_type>.  The other
conversions also seem odd, but I guess we already have a few other
constructors that have similar options.  What about defining
Array<octave_idx_type> to NDArray conversion with the options and then
using the existing octave_value (const NDArray&) constructor instead?
It seems to me that this approach might cause less trouble later if we
decided we wanted an actual Array<octave_idx_type> value in the
octave_value hierarchy.

jwe


More information about the Octave-maintainers mailing list