octave-maintainers
[Top][All Lists]
Advanced

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

Re: Do Octave functions have corresponding c functions?


From: Gene Harvey
Subject: Re: Do Octave functions have corresponding c functions?
Date: Fri, 22 Nov 2019 03:44:16 -0600

On Thu, Nov 21, 2019 at 4:41 PM Mike Miller <address@hidden> wrote:
>
> On Thu, Nov 21, 2019 at 16:20:31 -0600, GoSim wrote:
> > I downloaded the octave source files and I was expecting to find
> > corresponding c-files to the functions in octave. So a function like plus()
> > would have a c-coded equivalent that octave calls. But when I make a file
> > search I don't find such files. How does it work? If I want to find the
> > c-code that is run by a function like plus() where do I look? Thanks in
> > advance.
>
> Yes, let's take plus as an example.
>
> First, the which function will tell you where to look.
>
>     >> which plus
>     'plus' is a built-in function from the file libinterp/corefcn/data.cc
>
> Look in that source file for a DEFUN named 'plus'. Line 6062 in the
> current development branch
>
>   https://hg.savannah.gnu.org/hgweb/octave/file/da163456abb3/libinterp/corefcn/data.cc#l6062

Additionally, you can find more information about the organization of the source files at

https://hg.savannah.gnu.org/hgweb/octave/file/da163456abb3/etc/HACKING.md

reply via email to

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