Skip to content

Commit

Permalink
comply with CAP V2023.08-06 (start using the 'LinearCombinationOfMorp…
Browse files Browse the repository at this point in the history
…hisms' operation)

and bump FreydCategoriesForCAP to V2023.08-01
  • Loading branch information
kamalsaleh committed Aug 13, 2023
1 parent b48f5a6 commit 1fc00f4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions FreydCategoriesForCAP/PackageInfo.g
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ SetPackageInfo( rec(

PackageName := "FreydCategoriesForCAP",
Subtitle := "Freyd categories - Formal (co)kernels for additive categories",
Version := "2023.07-02",
Version := "2023.08-01",
Date := (function ( ) if IsBound( GAPInfo.SystemEnvironment.GAP_PKG_RELEASE_DATE ) then return GAPInfo.SystemEnvironment.GAP_PKG_RELEASE_DATE; else return Concatenation( ~.Version{[ 1 .. 4 ]}, "-", ~.Version{[ 6, 7 ]}, "-01" ); fi; end)( ),
License := "GPL-2.0-or-later",

Expand Down Expand Up @@ -87,7 +87,7 @@ PackageDoc := rec(

Dependencies := rec(
GAP := ">= 4.12.1",
NeededOtherPackages := [ [ "CAP", ">= 2023.06-04" ],
NeededOtherPackages := [ [ "CAP", ">= 2023.08-06" ],
[ "MatricesForHomalg", ">= 2023.01-01" ],
[ "GradedRingForHomalg", ">=2019.08.07" ],
[ "MonoidalCategories", ">= 2023.02-04" ],
Expand Down
10 changes: 4 additions & 6 deletions FreydCategoriesForCAP/gap/CategoryOfRows.gi
Original file line number Diff line number Diff line change
Expand Up @@ -1326,9 +1326,8 @@ AddFinalDerivationBundle( "Using BasisOfExternalHom and CoefficientsOfMorphism t
[
[ BasisOfExternalHom, 1 ],
[ CoefficientsOfMorphism, 2 ],
[ MultiplyWithElementOfCommutativeRingForMorphisms, 2 ],
[ PreComposeList, 2 ],
[ SumOfMorphisms, 1 ]
[ LinearCombinationOfMorphisms, 1 ],
[ PreComposeList, 2 ]
],
[
HomomorphismStructureOnObjects,
Expand Down Expand Up @@ -1405,8 +1404,7 @@ AddFinalDerivationBundle( "Using BasisOfExternalHom and CoefficientsOfMorphism t
InterpretMorphismFromDistinguishedObjectToHomomorphismStructureAsMorphism,
[
[ BasisOfExternalHom, 1 ],
[ MultiplyWithElementOfCommutativeRingForMorphisms, 2 ],
[ SumOfMorphisms, 1 ]
[ LinearCombinationOfMorphisms, 1 ],
],
function ( cat, a, b, iota )
local coeffs, basis;
Expand All @@ -1415,7 +1413,7 @@ AddFinalDerivationBundle( "Using BasisOfExternalHom and CoefficientsOfMorphism t

basis := BasisOfExternalHom( cat, a, b );

return SumOfMorphisms( cat, a, ListN( coeffs, basis, { c, m } -> MultiplyWithElementOfCommutativeRingForMorphisms( cat, c, m ) ), b );
return LinearCombinationOfMorphisms( cat, a, coeffs, basis, b );

end
] :
Expand Down
2 changes: 1 addition & 1 deletion FreydCategoriesForCAP/gap/LinearClosure.gi
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ InstallMethodWithCache( ExtendFunctorToLinearClosureOfSource,

supp := List( supp, m -> ApplyFunctor( F, m ) );

return Sum( ListN( coeffs, supp, MultiplyWithElementOfCommutativeRingForMorphisms ) );
return LinearCombinationOfMorphisms( s, coeffs, supp, r );

end );

Expand Down

0 comments on commit 1fc00f4

Please sign in to comment.