|
From: | Michael Goffioul |
Subject: | Re: common_size not working for classes? |
Date: | Sun, 7 Jul 2013 09:39:16 -0400 |
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 ?
[Prev in Thread] | Current Thread | [Next in Thread] |