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
Dóra Kocsis
dynare
Commits
7878b806
Commit
7878b806
authored
Dec 08, 2012
by
Stéphane Adjemian
Browse files
Cosmetic changes.
parent
2b6915cf
Changes
3
Hide whitespace changes
Inline
Side-by-side
matlab/@dynSeries/minus.m
View file @
7878b806
...
...
@@ -77,8 +77,7 @@ A.name = repmat({'--NA--'},A.vobs,1);
A
.
tex
=
repmat
({
'
--
NA
--
'
},
A
.
vobs
,
1
);
A
.
data
=
bsxfun
(
@minus
,
B
.
data
,
C
.
data
);
%
@test
:
8
%
@test
:
1
%
$
%
Define
a
datasets
.
%
$
A
=
rand
(
10
,
2
);
B
=
randn
(
10
,
1
);
%
$
...
...
@@ -103,4 +102,4 @@ A.data = bsxfun(@minus,B.data,C.data);
%
$
t
(
4
)
=
dyn_assert
(
ts3
.
data
,[
A
(
:
,
1
)
-
B
,
A
(
:
,
2
)
-
B
],
1e-15
);
%
$
end
%
$
T
=
all
(
t
);
%
@eof
:
8
%
@eof
:
1
matlab/@dynSeries/plus.m
View file @
7878b806
...
...
@@ -77,8 +77,7 @@ A.name = repmat({'--NA--'},A.vobs,1);
A
.
tex
=
repmat
({
'
--
NA
--
'
},
A
.
vobs
,
1
);
A
.
data
=
bsxfun
(
@plus
,
B
.
data
,
C
.
data
);
%
@test
:
8
%
@test
:
1
%
$
%
Define
a
datasets
.
%
$
A
=
rand
(
10
,
2
);
B
=
randn
(
10
,
1
);
%
$
...
...
@@ -103,4 +102,4 @@ A.data = bsxfun(@plus,B.data,C.data);
%
$
t
(
4
)
=
dyn_assert
(
ts3
.
data
,[
A
(
:
,
1
)
+
B
,
A
(
:
,
2
)
+
B
],
1e-15
);
%
$
end
%
$
T
=
all
(
t
);
%
@eof
:
8
%
@eof
:
1
matlab/@dynSeries/uminus.m
View file @
7878b806
...
...
@@ -50,8 +50,7 @@ A.init = B.init;
A
.
name
=
repmat
({
'
--
NA
--
'
},
A
.
vobs
,
1
);
A
.
data
=
-
(
B
.
data
);
%
@test
:
8
%
@test
:
1
%
$
%
Define
a
datasets
.
%
$
A
=
rand
(
10
,
2
);
%
$
...
...
@@ -75,4 +74,4 @@ A.data = -(B.data);
%
$
t
(
4
)
=
dyn_assert
(
ts2
.
data
,
-
A
,
1e-15
);
%
$
end
%
$
T
=
all
(
t
);
%
@eof
:
8
%
@eof
:
1
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