octave-maintainers
[Top][All Lists]
Advanced

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

Re: common_size not working for classes?


From: Michael Goffioul
Subject: Re: common_size not working for classes?
Date: Sun, 7 Jul 2013 09:39:16 -0400

On Sun, Jul 7, 2013 at 5:25 AM, CdeMills <address@hidden> wrote:
Hello,

I tried to use this function on multi-precision objects, this generates an
error:

error: can't perform indexing operations for class type
error: called from
    common_size at line 75 column 27
    betainc at line 4 column 21
stopped in /usr/share/octave/3.6.4/m/general/common_size.m

I suspect the problem to be inside libinterp/corefcn/cellfun.cc:
 for (octave_idx_type i = 0; i < nel; i++)
            {
              octave_quit ();
              octave_value tmp = x(i);
              y(i) = tmp.do_index_op (idx);
              if (error_state)
                break;
            }

Is there some function to implement into the class in order to support the
do_index_op ?

You need to reimplement octave_base_balue::do_index_op().

Michael.


reply via email to

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