[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Do Octave functions have corresponding c functions?
From: |
Mike Miller |
Subject: |
Re: Do Octave functions have corresponding c functions? |
Date: |
Thu, 21 Nov 2019 14:40:39 -0800 |
User-agent: |
Mutt/1.12.2 (2019-09-21) |
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
HTH,
--
mike
signature.asc
Description: PGP signature