Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Alvarez, Gonzalo
PsimagLite
Commits
d5ebfd17
Commit
d5ebfd17
authored
Apr 05, 2021
by
Alvarez, Gonzalo
Browse files
Matrix::swap: semantics fixed
parent
200784b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Matrix.h
View file @
d5ebfd17
...
...
@@ -314,6 +314,12 @@ public:
void
swap
(
Matrix
&
m
)
{
m
.
data_
.
swap
(
data_
);
SizeType
row
=
m
.
nrow_
;
SizeType
col
=
m
.
ncol_
;
m
.
nrow_
=
nrow_
;
m
.
ncol_
=
ncol_
;
nrow_
=
row
;
ncol_
=
col
;
}
void
setTo
(
const
T
&
val
)
...
...
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