help-octave
[Top][All Lists]
Advanced

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

Re: Inferring required class for output arguments


From: CdeMills
Subject: Re: Inferring required class for output arguments
Date: Thu, 12 Aug 2010 07:47:41 -0700 (PDT)


Jaroslav Hajek-2 wrote:
> 
> 
> 
> Since you can overload subsref virtually arbitrarily, you can make it,
> say,
> x.dataframe(:, 2)
> 
> an alternative is to overload
> x(:,2).dataframe
> but then be sure to overload indexed numel properly (yes and you must
> use Octave 3.3.51+).
> 
> 

I implemented both forms:
x.dataframe(something)
x(something).output_format
where output format may be 'dataframe', 'cell', or numeric types like
'double' to force a downclassing/upclassing in case of different columns
type. I pushed the modifications in svn on sourceforge.

Regards

Pascal
-- 
View this message in context: 
http://octave.1599824.n4.nabble.com/Inferring-required-class-for-output-arguments-tp2322324p2322792.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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