[Top][All Lists]

[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)


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 ?



View this message in context:
Sent from the Octave - General mailing list archive at

reply via email to

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