octave-maintainers
[Top][All Lists]
Advanced

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

Re: Finding function locations


From: Nicholas Jankowski
Subject: Re: Finding function locations
Date: Fri, 13 Mar 2020 11:49:54 -0400

On Fri, Mar 13, 2020 at 10:35 AM Vishnu Parammal <address@hidden> wrote:
Hi Sir, 
I am new to octave contribution community. I have gone through the bug section and there are some that I think I can solve. But I am finding it difficult to get the exact locations where functions are defined. For e.g. bug https://savannah.gnu.org/bugs/?57870. Where do I find the mod() function?  

Thanks for coming on board! A few things:

to answer your immediate question: you can find the location of any function within the Octave installation using 'which'.
>> which mod
'mod' is a built-in function from the file libinterp/corefcn/data.cc

This tells you that mod is a compiled function.  to work on the bug you'll need to be comfortable working in C++, and you'll have to work on the source code directly. (many other functions are written directly in m-code which can be more accessible for some people familiar with Matlab/Octave but not 'real programming'.) that leads to the following question:

Are you set up to work with the Octave source code?  We manage it using a Mercurial version control software, and is the best way to work on the latest version of code and prepare patches for inclusion.  

You can find instructions on getting started here:
https://wiki.octave.org/Summer_of_Code_-_Getting_Started 
https://wiki.octave.org/Mercurial 



reply via email to

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