Skip to content

Commit d1e23ac

Browse files
used TrivialAlgebroid/TrivialCategory in POW
1 parent b6023ef commit d1e23ac

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

PackageInfo.g

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ SetPackageInfo( rec(
1111
PackageName := "Algebroids",
1212
Subtitle := "Algebroids and bialgebroids as preadditive categories generated by enhanced quivers",
1313
Version := Maximum( [
14-
"2020.10-06", ## Mohamed's version
14+
"2020.10-07", ## Mohamed's version
1515
## this line prevents merge conflicts
1616
"2020.09-08", ## Kamal's version
1717
## this line prevents merge conflicts

gap/Algebroids.gi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,7 +1279,7 @@ InstallMethod( POW,
12791279
[ IsAlgebroid and HasUnderlyingQuiverAlgebra, IsInt ],
12801280

12811281
function( A, n )
1282-
local Rq, R, trivial_quiver;
1282+
local Rq, R, parity;
12831283

12841284
if n < 0 then
12851285
Error( "the only admissible values for n are non-negative integers\n" );
@@ -1298,12 +1298,12 @@ InstallMethod( POW,
12981298
if not IsBound( A!.powers.0 ) then
12991299

13001300
if IsRightQuiverAlgebra( Rq ) then
1301-
trivial_quiver := RightQuiver( "*(1)[]" );
1301+
parity := "right";
13021302
else
1303-
trivial_quiver := LeftQuiver( "*(1)[]" );
1303+
parity := "left";
13041304
fi;
13051305

1306-
A!.powers.0 := Algebroid( PathAlgebra( R, trivial_quiver ) );
1306+
A!.powers.0 := TrivialAlgebroid( R, parity );
13071307

13081308
fi;
13091309

gap/FpCategories.gi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ InstallMethod( POW,
662662
[ IsFpCategory and HasUnderlyingQuiverAlgebra, IsInt ],
663663

664664
function( C, n )
665-
local Qq, R, trivial_quiver;
665+
local Qq, R, parity;
666666

667667
if n < 0 then
668668
Error( "the only admissible values for n are non-negative integers\n" );
@@ -681,12 +681,12 @@ InstallMethod( POW,
681681
if not IsBound( C!.powers.0 ) then
682682

683683
if IsRightQuiverAlgebra( Qq ) then
684-
trivial_quiver := RightQuiver( "*(1)[]" );
684+
parity := "right";
685685
else
686-
trivial_quiver := LeftQuiver( "*(1)[]" );
686+
parity := "left";
687687
fi;
688688

689-
C!.powers.0 := Category( PathAlgebra( R, trivial_quiver ) );
689+
C!.powers.0 := TrivialCategory( parity );
690690

691691
fi;
692692

0 commit comments

Comments
 (0)