Skip to content

Simplify tensor structure and operations in the presence of IdentiyOp…#358

Merged
ChrisRackauckas merged 3 commits into
SciML:masterfrom
albertomercurio:master
Apr 22, 2026
Merged

Simplify tensor structure and operations in the presence of IdentiyOp…#358
ChrisRackauckas merged 3 commits into
SciML:masterfrom
albertomercurio:master

Conversation

@albertomercurio
Copy link
Copy Markdown
Contributor

This PR simplifies the structure of a TensorProductOperator in presence of IdentityOperator. This is particularly useful when expressing operators of the form

$$ I \otimes \dots \otimes I \otimes O_i \otimes I \otimes \dots \otimes O_j \otimes I \otimes \dots \otimes I $$

It also avoid to allocate some buffer cache arrays when the outer operator is the Identity, because the equations simplifies a lot.

@ChrisRackauckas
Copy link
Copy Markdown
Member

Add tests?

@ChrisRackauckas ChrisRackauckas merged commit 839fb96 into SciML:master Apr 22, 2026
14 checks passed
@albertomercurio
Copy link
Copy Markdown
Contributor Author

I was adding some other tests on the mul! function. I will open another PR then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants