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
45c20d18
Commit
45c20d18
authored
Nov 18, 2020
by
Alvarez, Gonzalo
Browse files
Matrix::overwrite to hdf5 file
parent
9c637adc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Matrix.h
View file @
45c20d18
...
...
@@ -158,6 +158,14 @@ public:
ioSerializer
.
write
(
label
+
"/data_"
,
data_
);
}
void
overwrite
(
String
label
,
IoSerializer
&
ioSerializer
)
const
{
ioSerializer
.
write
(
label
+
"/nrow_"
,
nrow_
,
IoSerializer
::
ALLOW_OVERWRITE
);
ioSerializer
.
write
(
label
+
"/ncol_"
,
ncol_
,
IoSerializer
::
ALLOW_OVERWRITE
);
if
(
nrow_
==
0
||
ncol_
==
0
)
return
;
ioSerializer
.
write
(
label
+
"/data_"
,
data_
,
IoSerializer
::
ALLOW_OVERWRITE
);
}
void
print
(
int
fd
)
const
{
::
write
(
fd
,(
const
void
*
)
&
ncol_
,
sizeof
(
ncol_
));
...
...
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