Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
OpenFold
Commits
253aff64
Commit
253aff64
authored
May 07, 2022
by
Gustaf Ahdritz
Browse files
Further simplify rotation multiplication code
parent
4e9f7a9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
openfold/utils/rigid_utils.py
openfold/utils/rigid_utils.py
+8
-4
No files found.
openfold/utils/rigid_utils.py
View file @
253aff64
...
...
@@ -50,10 +50,14 @@ def rot_matmul(
dim
=-
1
,
)
row_1
=
row_mul
(
0
)
row_2
=
row_mul
(
1
)
row_3
=
row_mul
(
2
)
return
torch
.
stack
([
row_1
,
row_2
,
row_3
],
dim
=-
2
)
return
torch
.
stack
(
[
row_mul
(
0
),
row_mul
(
1
),
row_mul
(
2
),
],
dim
=-
2
)
def
rot_vec_mul
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment