IsMatAlgebra( obj )
returns true
if obj, which may be an object of arbitrary type, is a
matrix algebra and false
otherwise.
gap> IsMatAlgebra( FreeAlgebra( GF(2), 0 ) ); false gap> IsMatAlgebra( Algebra( Rationals, [[[1]]] ) ); true
GAP 3.4.4