Idenso · latest
On this page

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.duality

Member details

name

Property · read-only#
name: str

The 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.name

duality

Property · read-only#
duality: str

How 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) -> bool

No description is available for this member.

Parameters

NameTypeDefaultDescription
otherobject——

dual

Method#
dual() -> RepresentationName

Return 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() == identity

metric_sign

Method#
metric_sign(index: int) -> int

Return 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

NameTypeDefaultDescription
indexint—

Nonnegative component coordinate. This identity has no dimension, so the coordinate is not checked against a particular tensor shape.

__str__

Method#
__str__() -> str

Return a readable text representation.

Examples

from symbolica.community import tensor as sp
name = sp.Representation.mink(4).name
text = str(name)

__repr__

Method#
__repr__() -> str

Return 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() -> str

Render 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_() -> str

No description is available for this member.