|
| 1 | +# SPDX-License-Identifier: GPL-2.0-or-later |
| 2 | +# MachineLearningForCAP: Exploring categorical machine learning in CAP |
| 3 | +# |
| 4 | +# Implementations |
| 5 | +# |
| 6 | +# THIS FILE IS AUTOMATICALLY GENERATED, SEE CAP_project/CAP/gap/MethodRecordTools.gi |
| 7 | + |
| 8 | +## MultiplicationForMorphisms |
| 9 | +InstallMethod( AddMultiplicationForMorphisms, |
| 10 | + [ IsCapCategory, IsFunction ], |
| 11 | + |
| 12 | + function( category, func ) |
| 13 | + |
| 14 | + AddCapOperation( "MultiplicationForMorphisms", category, func, -1 ); |
| 15 | + |
| 16 | +end ); |
| 17 | + |
| 18 | +InstallMethod( AddMultiplicationForMorphisms, |
| 19 | + [ IsCapCategory, IsFunction, IsInt ], |
| 20 | + |
| 21 | + FunctionWithNamedArguments( |
| 22 | + [ |
| 23 | + [ "IsPrecompiledDerivation", false ], |
| 24 | + ], |
| 25 | + function( CAP_NAMED_ARGUMENTS, category, func, weight ) |
| 26 | + |
| 27 | + AddCapOperation( "MultiplicationForMorphisms", category, func, weight : IsPrecompiledDerivation := CAP_NAMED_ARGUMENTS.IsPrecompiledDerivation ); |
| 28 | + |
| 29 | + end |
| 30 | + ) |
| 31 | +); |
| 32 | + |
| 33 | +## ReverseDifferential |
| 34 | +InstallMethod( AddReverseDifferential, |
| 35 | + [ IsCapCategory, IsFunction ], |
| 36 | + |
| 37 | + function( category, func ) |
| 38 | + |
| 39 | + AddCapOperation( "ReverseDifferential", category, func, -1 ); |
| 40 | + |
| 41 | +end ); |
| 42 | + |
| 43 | +InstallMethod( AddReverseDifferential, |
| 44 | + [ IsCapCategory, IsFunction, IsInt ], |
| 45 | + |
| 46 | + FunctionWithNamedArguments( |
| 47 | + [ |
| 48 | + [ "IsPrecompiledDerivation", false ], |
| 49 | + ], |
| 50 | + function( CAP_NAMED_ARGUMENTS, category, func, weight ) |
| 51 | + |
| 52 | + AddCapOperation( "ReverseDifferential", category, func, weight : IsPrecompiledDerivation := CAP_NAMED_ARGUMENTS.IsPrecompiledDerivation ); |
| 53 | + |
| 54 | + end |
| 55 | + ) |
| 56 | +); |
| 57 | + |
| 58 | +## ReverseDifferentialWithGivenObjects |
| 59 | +InstallMethod( AddReverseDifferentialWithGivenObjects, |
| 60 | + [ IsCapCategory, IsFunction ], |
| 61 | + |
| 62 | + function( category, func ) |
| 63 | + |
| 64 | + AddCapOperation( "ReverseDifferentialWithGivenObjects", category, func, -1 ); |
| 65 | + |
| 66 | +end ); |
| 67 | + |
| 68 | +InstallMethod( AddReverseDifferentialWithGivenObjects, |
| 69 | + [ IsCapCategory, IsFunction, IsInt ], |
| 70 | + |
| 71 | + FunctionWithNamedArguments( |
| 72 | + [ |
| 73 | + [ "IsPrecompiledDerivation", false ], |
| 74 | + ], |
| 75 | + function( CAP_NAMED_ARGUMENTS, category, func, weight ) |
| 76 | + |
| 77 | + AddCapOperation( "ReverseDifferentialWithGivenObjects", category, func, weight : IsPrecompiledDerivation := CAP_NAMED_ARGUMENTS.IsPrecompiledDerivation ); |
| 78 | + |
| 79 | + end |
| 80 | + ) |
| 81 | +); |
0 commit comments