Skip to content

Commit 365fd02

Browse files
authored
Merge pull request #727 from zickgraf/master
Pass category to compare_morphisms in AdditiveClosure
2 parents c2e22b8 + a0fc812 commit 365fd02

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

FreydCategoriesForCAP/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 := "FreydCategoriesForCAP",
1212
Subtitle := "Freyd categories - Formal (co)kernels for additive categories",
13-
Version := "2021.09-06",
13+
Version := "2021.10-01",
1414
Date := Concatenation( "01/", ~.Version{[ 6, 7 ]}, "/", ~.Version{[ 1 .. 4 ]} ),
1515
License := "GPL-2.0-or-later",
1616

FreydCategoriesForCAP/gap/AdditiveClosure.gi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ InstallGlobalFunction( INSTALL_FUNCTIONS_FOR_ADDITIVE_CLOSURE,
695695

696696
end );
697697

698-
compare_morphisms := function( morphism_1, morphism_2, comparison_function )
698+
compare_morphisms := function( cat, morphism_1, morphism_2, comparison_function )
699699
local nr_rows_1, nr_rows_2, nr_cols_1, nr_cols_2;
700700
#% CAP_JIT_RESOLVE_FUNCTION
701701

@@ -722,7 +722,7 @@ InstallGlobalFunction( INSTALL_FUNCTIONS_FOR_ADDITIVE_CLOSURE,
722722
fi;
723723

724724
return ForAll( [ 1 .. nr_rows_1 ], i ->
725-
ForAll( [ 1 .. nr_cols_1 ], j -> comparison_function( morphism_1[i, j], morphism_2[i, j] ) )
725+
ForAll( [ 1 .. nr_cols_1 ], j -> comparison_function( UnderlyingCategory( cat ), morphism_1[i, j], morphism_2[i, j] ) )
726726
);
727727

728728
end;
@@ -731,15 +731,15 @@ InstallGlobalFunction( INSTALL_FUNCTIONS_FOR_ADDITIVE_CLOSURE,
731731
AddIsEqualForMorphisms( category,
732732
function( cat, morphism_1, morphism_2 )
733733

734-
return compare_morphisms( morphism_1, morphism_2, IsEqualForMorphisms );
734+
return compare_morphisms( cat, morphism_1, morphism_2, IsEqualForMorphisms );
735735

736736
end );
737737

738738
##
739739
AddIsCongruentForMorphisms( category,
740740
function( cat, morphism_1, morphism_2 )
741741

742-
return compare_morphisms( morphism_1, morphism_2, IsCongruentForMorphisms );
742+
return compare_morphisms( cat, morphism_1, morphism_2, IsCongruentForMorphisms );
743743

744744
end );
745745

0 commit comments

Comments
 (0)