Skip to content

Merge code that handles Adjoint and Transpose#49521

Merged
dkarrasch merged 2 commits intomasterfrom
dk/at_simplify
May 5, 2023
Merged

Merge code that handles Adjoint and Transpose#49521
dkarrasch merged 2 commits intomasterfrom
dk/at_simplify

Conversation

@dkarrasch
Copy link
Member

@dkarrasch dkarrasch commented Apr 26, 2023

This is a manual rebase of #33069. Some of the then proposed changes have become obsolete, and I have added a few new ones, most notably the matmul.jl methods. This cuts the number of mul! methods from 114 to 90 88.

Closes #33069.

Co-authored-by: Takafumi Arakaki tkf@users.noreply.github.com

Co-authored-by:  Takafumi Arakaki <tkf@users.noreply.github.com>
@dkarrasch dkarrasch added the linear algebra Linear algebra label Apr 26, 2023
Comment on lines -403 to -405
@inline mul!(C::AbstractVector, A::AbstractVecOrMat, tB::Transpose{<:Any,<:AbstractVecOrMat},
alpha::Number, beta::Number) =
generic_matmatmul!(C, 'N', 'T', A, tB.parent, MulAddMul(alpha, beta))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only change in tests is due to the removal of this method, which is at odds with all the rest of the mul! functions due to the vector target. This only works when all vectors have length 1, anyway. And there is no Adjoint analogue.

@dkarrasch
Copy link
Member Author

@nanosoldier runtests()

@nanosoldier
Copy link
Collaborator

Your package evaluation job has completed - possible new issues were detected.
A full report can be found here.

@dkarrasch dkarrasch merged commit 6adea08 into master May 5, 2023
@dkarrasch dkarrasch deleted the dk/at_simplify branch May 5, 2023 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

linear algebra Linear algebra

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants