Skip to content

Commit df5b52c

Browse files
authored
Merge pull request #1021 from zickgraf/master
Add missing version of CoefficientsOfMorphism with category as first argument
2 parents 5954294 + 6a9e1aa commit df5b52c

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

CAP/PackageInfo.g

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ SetPackageInfo( rec(
1010

1111
PackageName := "CAP",
1212
Subtitle := "Categories, Algorithms, Programming",
13-
Version := "2022.09-06",
13+
Version := "2022.09-07",
1414
Date := Concatenation( "01/", ~.Version{[ 6, 7 ]}, "/", ~.Version{[ 1 .. 4 ]} ),
1515
License := "GPL-2.0-or-later",
1616

CAP/gap/CategoryMorphisms.gi

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,15 @@ InstallMethod( CoefficientsOfMorphism,
341341
[ IsCapCategoryMorphism ],
342342
function( alpha )
343343

344-
return CoefficientsOfMorphismWithGivenBasisOfExternalHom( alpha, BasisOfExternalHom( Source( alpha ), Range( alpha ) ) );
344+
return CoefficientsOfMorphism( CapCategory( alpha ), alpha );
345+
346+
end );
347+
348+
InstallOtherMethod( CoefficientsOfMorphism,
349+
[ IsCapCategory, IsCapCategoryMorphism ],
350+
function( cat, alpha )
351+
352+
return CoefficientsOfMorphismWithGivenBasisOfExternalHom( cat, alpha, BasisOfExternalHom( cat, Source( alpha ), Range( alpha ) ) );
345353

346354
end );
347355

0 commit comments

Comments
 (0)