Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Neel Shah
NIFTy
Commits
62d040c3
Commit
62d040c3
authored
Aug 03, 2021
by
Neel Shah
Browse files
replace flatten() by ravel()
parent
1e761a72
Pipeline
#106976
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/operators/matrix_product_operator.py
View file @
62d040c3
...
...
@@ -135,7 +135,7 @@ class MatrixProductOperator(EndomorphicOperator):
res
=
res
.
reshape
(
np
.
flip
(
res
.
shape
))
else
:
res
=
m
.
dot
(
x
.
val
.
flatten
()).
reshape
(
self
.
_domain
.
shape
)
res
=
m
.
dot
(
x
.
val
.
ravel
()).
reshape
(
self
.
_domain
.
shape
)
return
Field
(
self
.
_domain
,
res
)
mat_axes
=
self
.
_mat_last_n
if
times
else
np
.
flip
(
self
.
_mat_last_n
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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