help-octave
[Top][All Lists]
Advanced

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

OOP: getting caller name


From: CdeMills
Subject: OOP: getting caller name
Date: Wed, 1 Sep 2010 03:52:40 -0700 (PDT)

Hello,

A new question about my dataframe class. I want it to mimic as much as
possible a double matrix. So I would like that:

df= dataframe(randn(10));

x = df <= x is a copy of df, and thus a dataframe

abs(df) <= abs expects a double matrix, so have df behave as if it was a
matrix, i.e. the evaluation of df should return an object of class 'double
matrix', and not dataframe.

I tried:
abs(df) => fails at it seems abs() receive directly a 'dataframe' object
abs(df(:, :)) => succeed as it goes through overloaded subsref

Any idea on how to achieve this ?

Regards

Pascal


-- 
View this message in context: 
http://octave.1599824.n4.nabble.com/OOP-getting-caller-name-tp2402940p2402940.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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