Skip to content

Sparse to dense conversion API #344

Open
@mtfishman

Description

@mtfishman

It would be good to think about the interface for converting from sparse ITensor types to Dense, or other less sparse types where it makes sense. It would be good to have the following operations, with some proposed names:

Convert to Dense:

  • Diag -> Dense (dense)
  • BlockSparse -> Dense (dense, removeqns) (dense is implemented but not removeqns)
  • DiagBlockSparse -> Dense (dense)

Convert to Diag:

  • DiagBlockSparse -> Diag (diag, removeqns)

Convert to BlockSparse:

  • DiagBlockSparse -> BlockSparse (denseblocks)

Right now, I believe all of the dense conversion functions are implemented (but none of the others are).

Metadata

Metadata

Assignees

Labels

apiIssues related to the interfaceenhancementNew feature or requestqnsQN related issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions