RepresentationName
symbolica.community.tensor Class
RepresentationName()A representation identity independent of its dimension.
Obtain this read-only metadata through Representation.name. It distinguishes self-dual spaces from the two partners of a dualizable space.
Examples
from symbolica.community.tensor import Representation
identity = Representation.mink(4).name
identity.dualityMember details
name
Property · read-only#name: strThe exact registered name of the representation.
Returns
str
Name without dimension or index arguments.
Examples
from symbolica.community.tensor import Representation
identity = Representation.mink(4).name
name = identity.nameduality
Property · read-only#duality: strHow this representation pairs with another space.
Returns
str
One of "self-dual", "base", or "dual".
Examples
from symbolica.community.tensor import Representation
identity = Representation.mink(4).name
identity.duality__eq__
Method#__eq__(other: object) -> boolNo description is available for this member.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
other | object | — | — |
dual
Method#dual() -> RepresentationNameReturn the dimension-independent identity of the paired space.
Returns
RepresentationName
The same identity for a self-dual space; the dual partner otherwise.
Examples
from symbolica.community.tensor import Representation
identity = Representation.cof(3).name
identity.dual().dual() == identitymetric_sign
Method#metric_sign(index: int) -> intReturn the sign of the canonical pairing at a component coordinate.
Returns
int
+1 or -1. In Minkowski space, zero gives +1 and spatial coordinates -1.
Examples
from symbolica.community.tensor import Representation
metric = Representation.mink(4).name
[metric.metric_sign(i) for i in range(4)]Parameters
| Name | Type | Default | Description |
|---|---|---|---|
index | int | — | Nonnegative component coordinate. This identity has no dimension, so the coordinate is not checked against a particular tensor shape. |
__str__
Method#__str__() -> strReturn a readable text representation.
Examples
from symbolica.community import tensor as sp
name = sp.Representation.mink(4).name
text = str(name)__repr__
Method#__repr__() -> strReturn a readable object description for inspection.
Examples
from symbolica.community import tensor as sp
name = sp.Representation.mink(4).name
text = repr(name)to_html
Method#to_html() -> strRender a compact HTML view of this tensor metadata.
Returns
str
HTML fragment for display in a notebook or page.
Examples
from symbolica.community.tensor import Representation
value = Representation.mink(4).name
html = value.to_html()_repr_html_
Method#_repr_html_() -> strNo description is available for this member.
View generated signature source: docs/api/python/spynso3.pyi:1976