-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5f776d0
commit 1a60436
Showing
6 changed files
with
87 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
# MachineLearningForCAP: Exploring categorical machine learning in CAP | ||
# | ||
# Implementations | ||
# | ||
# THIS FILE IS AUTOMATICALLY GENERATED, SEE CAP_project/CAP/gap/MethodRecordTools.gi | ||
|
||
## MultiplicationForMorphisms | ||
InstallMethod( AddMultiplicationForMorphisms, | ||
[ IsCapCategory, IsFunction ], | ||
|
||
function( category, func ) | ||
|
||
AddCapOperation( "MultiplicationForMorphisms", category, func, -1 ); | ||
|
||
end ); | ||
|
||
InstallMethod( AddMultiplicationForMorphisms, | ||
[ IsCapCategory, IsFunction, IsInt ], | ||
|
||
FunctionWithNamedArguments( | ||
[ | ||
[ "IsPrecompiledDerivation", false ], | ||
], | ||
function( CAP_NAMED_ARGUMENTS, category, func, weight ) | ||
|
||
AddCapOperation( "MultiplicationForMorphisms", category, func, weight : IsPrecompiledDerivation := CAP_NAMED_ARGUMENTS.IsPrecompiledDerivation ); | ||
|
||
end | ||
) | ||
); | ||
|
||
## ReverseDifferential | ||
InstallMethod( AddReverseDifferential, | ||
[ IsCapCategory, IsFunction ], | ||
|
||
function( category, func ) | ||
|
||
AddCapOperation( "ReverseDifferential", category, func, -1 ); | ||
|
||
end ); | ||
|
||
InstallMethod( AddReverseDifferential, | ||
[ IsCapCategory, IsFunction, IsInt ], | ||
|
||
FunctionWithNamedArguments( | ||
[ | ||
[ "IsPrecompiledDerivation", false ], | ||
], | ||
function( CAP_NAMED_ARGUMENTS, category, func, weight ) | ||
|
||
AddCapOperation( "ReverseDifferential", category, func, weight : IsPrecompiledDerivation := CAP_NAMED_ARGUMENTS.IsPrecompiledDerivation ); | ||
|
||
end | ||
) | ||
); | ||
|
||
## ReverseDifferentialWithGivenObjects | ||
InstallMethod( AddReverseDifferentialWithGivenObjects, | ||
[ IsCapCategory, IsFunction ], | ||
|
||
function( category, func ) | ||
|
||
AddCapOperation( "ReverseDifferentialWithGivenObjects", category, func, -1 ); | ||
|
||
end ); | ||
|
||
InstallMethod( AddReverseDifferentialWithGivenObjects, | ||
[ IsCapCategory, IsFunction, IsInt ], | ||
|
||
FunctionWithNamedArguments( | ||
[ | ||
[ "IsPrecompiledDerivation", false ], | ||
], | ||
function( CAP_NAMED_ARGUMENTS, category, func, weight ) | ||
|
||
AddCapOperation( "ReverseDifferentialWithGivenObjects", category, func, weight : IsPrecompiledDerivation := CAP_NAMED_ARGUMENTS.IsPrecompiledDerivation ); | ||
|
||
end | ||
) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters