help-octave
[Top][All Lists]
Advanced

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

caller function? function to get dependencies?


From: Andreas Romeyke
Subject: caller function? function to get dependencies?
Date: Fri, 20 Apr 2007 09:18:05 +0200
User-agent: Icedove 1.5.0.10 (X11/20070329)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

exists there a function to get function dependencies or access to
function stack similar to depfun() from within of octave interpreter?
I did not found such a function or variable.

My idea is to use a combination of functions clear() and who() to
emulate depfun(), but the problem will be that the dependency graph
will be flatten:
1. call who() to find actual used functions
2. call function which should be tested
3. call who() again to get new compiled/used functions
4. compare function list from 1. with function list from 3. The
intersection set is the list of functions called by the tested
function (in 2.)
5. clear all functions from intersection set
6. repeat 2. ... 6. until all functions tested

It would be very helpful to use such a function because in a testing
tool we could weight the order of testing. If there is not such a
possibility to get function dependencies from within of octave, where
is the best place to have a look into Octave code to write an
extension for octave in C++?

Thanks for your comments,

Bye Andreas

- --
Software Developer / Dipl. Inform. (FH)
Max Planck Institute for Human Cognitive and Brain Sciences
Department of Psychology
Stephanstr. 1a, 04103 Leipzig, Germany

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGKGktGBhgJGthyeERAozDAKCQ1JTl87MT7305jGKVoQnNqOlxJwCgp6Pq
hsCy82nEMZnoai3UahSoEoI=
=oUx5
-----END PGP SIGNATURE-----



reply via email to

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