[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to combine several functions in a single oct-file?
From: |
Michael Goffioul |
Subject: |
Re: How to combine several functions in a single oct-file? |
Date: |
Fri, 10 Feb 2012 08:59:42 +0000 |
On Fri, Feb 10, 2012 at 7:10 AM, Lukas Reichlin
<address@hidden> wrote:
> Dear Octave community,
>
> I noticed that "which arrayfun" points to cellfun.oct (octave 3.6.0). This
> means that both arrayfun and cellfun are stored in a single oct-file. Now I
> wonder how octave knows that it finds arrayfun in cellfun.oct? Does octave
> load all oct-files on startup? I thought that a function "foo" has to be
> located in foo.m, foo.oct or in the same m-file as the calling function.
>
> Background: My control package has dozens of oct-files and I like to combine
> them in just a few oct-files. They all use the SLICOT Fortran library and I
> compiled the required parts of it into every single oct-file. I think it
> would be better if the Fortran code would be stored in one big oct-file that
> offers all the user functions. Like cellfun.oct.
>
> Thanks for any insights and best regards,
> Lukas
What you're looking for is "autoload". This allows you to tell octave
"this function is found in that oct-file". See
<octave_root>/lib/<octave_version>/oct/<arch>/PKG_ADD file in your
octave installation.
Michael.
- How to combine several functions in a single oct-file?, Lukas Reichlin, 2012/02/10
- Re: How to combine several functions in a single oct-file?,
Michael Goffioul <=
- Re: How to combine several functions in a single oct-file?, Carlo de Falco, 2012/02/10
- Re: How to combine several functions in a single oct-file?, Michael Goffioul, 2012/02/12
- Re: How to combine several functions in a single oct-file?, Lukas Reichlin, 2012/02/12
- Re: How to combine several functions in a single oct-file? (2), Lukas Reichlin, 2012/02/12
- Re: How to combine several functions in a single oct-file? (2), Michael Goffioul, 2012/02/12
- Re: How to combine several functions in a single oct-file? (2), Lukas Reichlin, 2012/02/13
- Re: How to combine several functions in a single oct-file? (2), Michael Goffioul, 2012/02/13
- Re: How to combine several functions in a single oct-file? (2), Lukas Reichlin, 2012/02/13
- Re: How to combine several functions in a single oct-file? (2), Michael Goffioul, 2012/02/13
- Message not available
- Re: How to combine several functions in a single oct-file? (2), Lukas Reichlin, 2012/02/13