Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch up argument order #173

Merged
merged 19 commits into from
May 21, 2024
Merged

Switch up argument order #173

merged 19 commits into from
May 21, 2024

Conversation

lkdvos
Copy link
Collaborator

@lkdvos lkdvos commented May 16, 2024

This changes the argument order of the interface functions to the following:

tensorcontract!(C, A, pA, conjA, B, pB, conjB, pAB, alfa, beta, backend) # beta * C + alfa * permutedims(permutedims(A, pA) * permutedims(B, pB), pAB)
tensoradd!(C, A, pA, conjA, alfa, beta, backend) # beta * C + alfa * permutedims(A, pA)
tensortrace!(C, A, p, q, conjA, alfa, beta, backend) # beta * C + alfa * permuteandtracedims(A, p, q)
tensorcopy([IC], A, IA, [conjA,] [alfa,] [backend])
tensoradd([IC], A, IA, [conjA,] B, IB, [conjB,] [alfa, beta,] [backend])
tensortrace([IC], A, IA, [conjA], [alfa], [backend])
tensorcontract([IC], A, IA, [conjA], B, IB, [conjB], [alfa,] [backend])
tensorproduct([IC], A, IA, [conjA], B, IB, [conjB], [alfa,] [backend])

with the exclusion of the cutensor extension, due to the imminent changes from cuTensor v2

@Jutho Jutho merged commit 0a4ea36 into master May 21, 2024
15 checks passed
@lkdvos lkdvos deleted the ld-argorder branch May 21, 2024 18:39
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