@@ -13,11 +13,34 @@ category_constructor := field -> MATRIX_CATEGORY( field );;
1313given_arguments := [ QQ ] ;;
1414compiled_category_name := " MatrixCategoryPrecompiled" ;;
1515package_name := " LinearAlgebraForCAP" ;;
16- operations := [
17- " AdditionForMorphisms" ,
18- " PreCompose" ,
19- " KernelEmbedding" ,
20- ] ;;
16+ operations := Intersection(
17+ ListInstalledOperationsOfCategory( category_constructor( QQ ) ),
18+ CAP_JIT_INTERNAL_SAFE_OPERATIONS
19+ );;
20+ # exclude some operations which currently do not yield nice results
21+ operations := Filtered( operations,
22+ o -> PositionSublist( o, " FiberProduct" ) = fail );;
23+ operations := Filtered( operations,
24+ o -> PositionSublist( o, " Pushout" ) = fail );;
25+ operations := Filtered( operations,
26+ o -> PositionSublist( o, " Image" ) = fail );;
27+ operations := Filtered( operations,
28+ o -> PositionSublist( o, " Coimage" ) = fail );;
29+ operations := Filtered( operations,
30+ o -> PositionSublist( o, " DirectProduct" ) = fail );;
31+ operations := Filtered( operations,
32+ o -> PositionSublist( o, " Coproduct" ) = fail );;
33+ operations := Filtered( operations,
34+ o -> PositionSublist( o, " TerminalObject" ) = fail );;
35+ operations := Filtered( operations,
36+ o -> PositionSublist( o, " InitialObject" ) = fail );;
37+ operations := Difference( operations, [ " DirectSumCodiagonalDifference" ] );;
38+ operations := Difference( operations, [ " DirectSumDiagonalDifference" ] );;
39+ operations := Difference( operations, [ " HomologyObject" ] );;
40+ # IsEqualForMorphismsOnMor causes problems in GAP 4.11 (see GAP issue #4449)
41+ operations := Difference( operations, [ " IsEqualForMorphismsOnMor" ] );;
42+ operations := Difference( operations, [ " IsIdenticalToIdentityMorphism" ] );;
43+ operations := Difference( operations, [ " IsIdenticalToZeroMorphism" ] );;
2144
2245filepath := " precompiled_categories/MatrixCategoryPrecompiled.gi" ;;
2346old_file_content := ReadFileFromPackageForHomalg( package_name, filepath );;
0 commit comments