Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Martin Karlsson
mod_dmp_example
Commits
13a8072c
Commit
13a8072c
authored
Feb 14, 2016
by
Martin Karlsson
Browse files
minor change
parent
a8997807
Changes
4
Hide whitespace changes
Inline
Side-by-side
example_main
View file @
13a8072c
No preview for this file type
example_main.cc
View file @
13a8072c
...
...
@@ -25,12 +25,12 @@ int main(int argc, char *argv[]) {
mat
yDef
;
file2mat
(
"yDef.txt"
,
yDef
);
cout
<<
yDef
<<
endl
;
cout
<<
yDef
.
n_rows
<<
endl
;
mat
yCorr
;
//mat yCorr = file2mat("yCorr.txt");
cout
<<
yDef
.
n_rows
<<
endl
;
//cout << yCorr.n_rows << endl;
...
...
file2mat.cc
View file @
13a8072c
...
...
@@ -6,7 +6,7 @@ using namespace arma;
using
namespace
std
;
mat
file2mat
(
const
string
&
filename
,
mat
&
y
)
{
void
file2mat
(
const
string
&
filename
,
mat
&
y
)
{
mat
yTemp
;
yTemp
.
load
(
filename
,
raw_ascii
);
...
...
file2mat.h
View file @
13a8072c
...
...
@@ -4,6 +4,6 @@ using namespace arma;
#define FILE2MAT_H
using
namespace
std
;
using
namespace
arma
;
mat
file2mat
(
const
string
&
filename
,
mat
&
y
);
void
file2mat
(
const
string
&
filename
,
mat
&
y
);
#endif
Write
Preview
Supports
Markdown
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