Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Small doc tweaks and adding another test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Scrimshaw committed Mar 22, 2018
1 parent 089091a commit f1d16d1
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/sage/algebras/lie_algebras/classical_lie_algebra.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,11 +337,11 @@ def affine(self, kac_moody=False):
class Element(LieAlgebraFromAssociative.Element):
def matrix(self):
r"""
Return self as element of the underlying matrix algebra
Return ``self`` as element of the underlying matrix algebra.
OUTPUT::
an instance of the element class of MatrixSpace
OUTPUT:
An instance of the element class of MatrixSpace.
EXAMPLES::
Expand All @@ -357,8 +357,13 @@ def matrix(self):
[ 0 0 0]
[ 0 1 0]
[ 0 0 -1]
sage: L = lie_algebras.so(QQ['z'], 5, representation='matrix')
sage: matrix(L.an_element())
[ 1 1 0 0 0]
[ 1 1 0 0 2]
[ 0 0 -1 -1 0]
[ 0 0 -1 -1 -1]
[ 0 1 0 -2 0]
"""
return self.value

Expand Down

0 comments on commit f1d16d1

Please sign in to comment.