Skip to content

Commit

Permalink
sagemathgh-37827: sage.tensor: Tiny doc fixes
Browse files Browse the repository at this point in the history
    
<!-- ^ Please provide a concise and informative title. -->
<!-- ^ Don't put issue numbers in the title, do this in the PR
description below. -->
<!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method
to calculate 1 + 2". -->
<!-- v Describe your changes below in detail. -->
<!-- v Why is this change required? What problem does it solve? -->
<!-- v If this PR resolves an open issue, please link to it here. For
example, "Fixes sagemath#12345". -->



### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] The title is concise and informative.
- [ ] The description explains in detail what this PR is about.
- [ ] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation and checked the documentation
preview.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
    
URL: sagemath#37827
Reported by: Matthias Köppe
Reviewer(s): Eric Gourgoulhon
  • Loading branch information
Release Manager committed Apr 28, 2024
2 parents f12c4e3 + 2aeb7a6 commit 59daab3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/sage/tensor/modules/ext_pow_free_module.py
Expand Up @@ -173,7 +173,7 @@ class ExtPowerFreeModule(FiniteRankFreeModule_abstract):
a = 3 e_0∧e_1 - e_0∧e_2 + 4 e_1∧e_2
An alternative is to construct the alternating contravariant tensor from an
empty list of components and to set the nonzero components afterwards::
empty list of components and to set the nonzero components afterwards::
sage: a = A([], name='a')
sage: a.set_comp(e)[0,1] = 3
Expand Down
6 changes: 3 additions & 3 deletions src/sage/tensor/modules/free_module_basis.py
Expand Up @@ -48,7 +48,7 @@ class Basis_abstract(UniqueRepresentation, AbstractFamily):
:class:`Mapping` subclasses, not the :meth:`keys` but the
:meth:`values` are considered the elements.
EXAMPLES:
EXAMPLES::
sage: M = FiniteRankFreeModule(ZZ, 3, name='M', start_index=1)
sage: e = M.basis('e'); e
Expand Down Expand Up @@ -111,8 +111,8 @@ def values(self):
sage: e = M.basis('e')
sage: list(e.values())
[Element e_0 of the Rank-3 free module M over the Integer Ring,
Element e_1 of the Rank-3 free module M over the Integer Ring,
Element e_2 of the Rank-3 free module M over the Integer Ring]
Element e_1 of the Rank-3 free module M over the Integer Ring,
Element e_2 of the Rank-3 free module M over the Integer Ring]
"""
return self._vec

Expand Down

0 comments on commit 59daab3

Please sign in to comment.