Skip to content

Commit

Permalink
renaming methods in homwdata.gi to PreImages...NC (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdwensley authored Jan 3, 2025
1 parent bec13a2 commit d339de3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gap/homwdata.gi
Original file line number Diff line number Diff line change
Expand Up @@ -56,22 +56,23 @@ InstallMethod( PreImageElm, "for a mapping by function with data, and an obj",
return h!.invFun(h!.data,o);
end );

InstallMethod( PreImagesElm, "for a mapping by function with data, and an obj",
InstallMethod( PreImagesElmNC,
"for a mapping by function with data, and an obj",
[ IsMappingByFunctionWithInverseRep and IsMappingByFunctionWithData,
IsObject ], 0,
function (h,o)
return [h!.invFun(h!.data,o)];
end );

InstallMethod( PreImagesRepresentative,
InstallMethod( PreImagesRepresentativeNC,
"for a mapping by function with data, and an obj",
[ IsMappingByFunctionWithInverseRep and IsMappingByFunctionWithData,
IsObject ], 0,
function (h,o)
return h!.invFun(h!.data,o);
end );

InstallMethod( PreImagesRepresentative,
InstallMethod( PreImagesRepresentativeNC,
"for a mapping by function with invmap with data, and an obj",
[ IsMappingByFunctionRep and IsMappingByFunctionWithData,
IsObject ], 0,
Expand Down
10 changes: 10 additions & 0 deletions init.g
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ if not IsBound(MultVector) then
DeclareSynonym( "MultVector", MultRowVector );
fi;

#
#I introduce the NC versions of PreImages...
#
if not IsBound( PreImagesElmNC ) then
BindGlobal( "PreImagesElmNC", PreImagesElm );
fi;
if not IsBound( PreImagesRepresentativeNC ) then
BindGlobal( "PreImagesRepresentativeNC", PreImagesRepresentative );
fi;

ReadPackage("orb","gap/homwdata.gd");
ReadPackage("orb","gap/avltree.gd");
ReadPackage("orb","gap/hash.gd");
Expand Down

0 comments on commit d339de3

Please sign in to comment.