[GAP Forum] Code

Asst. Prof. Dmitrii (Dima) Pasechnik dima at ntu.edu.sg
Wed Oct 20 13:21:45 BST 2010


Dear Nahikari Blanco, dear Forum,

well, this is usually done by grepping lib/ directory of your GAP
installation:
$ cd /usr/local/src/gap/gap4r4/
(or whereever you have it)

Then do
$ grep SubgroupsSolvableGroup lib/*
and look for the string containing #F in the output, amond .gi files
(that where GAP language implementations would be)

lib/grplatt.gi:       l:=SubgroupsSolvableGroup(r,rec(
lib/grppclat.gd:#F  SubgroupsSolvableGroup(<G>[,<opt>]) . classreps of
subgrps of <G>,
lib/grppclat.gd:DeclareGlobalFunction("SubgroupsSolvableGroup");
lib/grppclat.gd:##  used in `SubgroupsSolvableGroup' (see
"SubgroupsSolvableGroup") for
lib/grppclat.gd:##  used in `SubgroupsSolvableGroup' (see
"SubgroupsSolvableGroup") for
lib/grppclat.gi:#F  SubgroupsSolvableGroup(<G>[,<opt>]) . classreps of
subgrps of <G>,
[...]

look in lib/grppclat.gd, you see that
#F  SubgroupsSolvableGroup is in line 451
That's it, read the code there.

Some functions are actually implemented in C, as you can see by doing
Print(<function-name>) at the GAP prompt.
Then you have to look at src/ instead of lib, in files with names ending in .c.

If you want to look for the code of a package function, look in
pkg/<package_name>/lib and/or in pkg/<package_name>/src

Hope this helps,
Dmitrii



On 20 October 2010 19:32, Nahikari Blanco <nahikariblanco at hotmail.com> wrote:
> SubgroupsSolvableGroup



--
Dmitrii Pasechnik
-----
DISCLAIMER: Any text following this sentence does not constitute a
part of this message, and was added automatically during transmission.

CONFIDENTIALITY: This email is intended solely for the person(s) named and may be confidential and/or privileged. If you are not the intended recipient, please delete it, notify us and do not copy, use, or disclose its content. Thank you.

Towards A Sustainable Earth: Print Only When Necessary



More information about the Forum mailing list