Skip to content

Constant tensor constructor should be automatically recognized as symmetric #39

@wiwu2390

Description

@wiwu2390

When a tensor is constructed with all entries the same, it should automatically be wrapped in a SymmetricTensor with all axes symmetric.
Example:

Y = we.zeros((n, n))     # Currently a SymmetricTensor with symmetric_axes=(0,1) (Correct)
Z = we.zeros((n, n, n))    # Currently a raw WhestArray (Incorrect, should be SymmetricTensor with symmetric_axes=(0,1,2))

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpriority:p2Nice-to-have, scheduled

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions