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

Commit

Permalink
Use unicode_otimes in TensorProductFunctor and SignedTensorProductFun…
Browse files Browse the repository at this point in the history
…ctor
  • Loading branch information
egourgoulhon committed Jun 30, 2021
1 parent 5167e6c commit 332410b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/sage/categories/signed_tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# ****************************************************************************

from sage.categories.covariant_functorial_construction import CovariantFunctorialConstruction, CovariantConstructionCategory
from sage.typeset.unicode_characters import unicode_bigotimes
from sage.typeset.unicode_characters import unicode_otimes


class SignedTensorProductFunctor(CovariantFunctorialConstruction):
Expand Down Expand Up @@ -56,7 +56,7 @@ class SignedTensorProductFunctor(CovariantFunctorialConstruction):
_functor_name = "tensor"
_functor_category = "SignedTensorProducts"
symbol = " # "
unicode_symbol = f" {unicode_bigotimes} "
unicode_symbol = f" {unicode_otimes} "

def _repr_(self):
"""
Expand Down
4 changes: 2 additions & 2 deletions src/sage/categories/tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# ****************************************************************************

from sage.categories.covariant_functorial_construction import CovariantFunctorialConstruction, CovariantConstructionCategory
from sage.typeset.unicode_characters import unicode_bigotimes
from sage.typeset.unicode_characters import unicode_otimes


class TensorProductFunctor(CovariantFunctorialConstruction):
Expand Down Expand Up @@ -51,7 +51,7 @@ class TensorProductFunctor(CovariantFunctorialConstruction):
_functor_name = "tensor"
_functor_category = "TensorProducts"
symbol = " # "
unicode_symbol = f" {unicode_bigotimes} "
unicode_symbol = f" {unicode_otimes} "


tensor = TensorProductFunctor()
Expand Down
2 changes: 1 addition & 1 deletion src/sage/combinat/free_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -1316,7 +1316,7 @@ def _unicode_art_(self, term):
sage: R = NonCommutativeSymmetricFunctions(QQ).R()
sage: Partitions.options(diagram_str="#", convention="french")
sage: s = unicode_art(tensor((R[1,2], R[3,1,2]))); s
R R
R R
┌┐ ┌┬┬┐
├┼┐ └┴┼┤
└┴┘ ├┼┐
Expand Down

0 comments on commit 332410b

Please sign in to comment.