Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions gap/cmat.gd
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ DeclareRepresentation( "IsCMatRep",
IsComponentObjectRep and IsMatrix and IsOrdinaryMatrix and HasLength and
IsRowListMatrix, [] );

InstallMethod( CompatibleVectorFilter, ["IsCMatRep"],
M -> IsCVecRep );

#############################################################################
# Making of matrices:
Expand Down
8 changes: 8 additions & 0 deletions tst/cmat.tst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ gap> NewZeroMatrix(IsCMatRep, GF(3), 3, 2);
#
gap> m:=CMat(ImmutableMatrix(GF(3),[[1,0],[0,1]]*Z(3)));
<cmat 2x2 over GF(3,1)>
gap> CompatibleVectorFilter(m) = ConstructingFilter(CompatibleVector(m));
true
gap> ScalarProductsRows(m,m,1);
Z(3)^0
gap> ScalarProductsRows(m,m,2);
Expand Down Expand Up @@ -60,5 +62,11 @@ gap> Display(c9);
[.12]
]

# moved to the cvec tests from GAP's testbugfix/2012-06-18-t00327.tst
gap> mat:= [ [ Z(2) ] ];;
gap> ConvertToMatrixRep( mat, 2 );
2
gap> cmat:= CMat( mat );; cmat^1000;;

#
gap> STOP_TEST("cmat.tst", 0);