Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dynare
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dynare
dynare
Commits
32de0fd6
Commit
32de0fd6
authored
Apr 4, 2012
by
Marco Ratto
Browse files
Options
Downloads
Patches
Plain Diff
fixed typos
parent
f4555573
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
matlab/gensylv/sylvester3.m
+2
-2
2 additions, 2 deletions
matlab/gensylv/sylvester3.m
matlab/gensylv/sylvester3a.m
+1
-1
1 addition, 1 deletion
matlab/gensylv/sylvester3a.m
with
3 additions
and
3 deletions
matlab/gensylv/sylvester3.m
+
2
−
2
View file @
32de0fd6
function
x
=
sylvester3
mr
(
a
,
b
,
c
,
d
)
function
x
=
sylvester3
(
a
,
b
,
c
,
d
)
% solves a*x+b*x*c=d where d is [n x m x p]
% Copyright (C) 2005-2009 Dynare Team
...
...
@@ -21,6 +21,7 @@ function x=sylvester3mr(a,b,c,d)
n
=
size
(
a
,
1
);
m
=
size
(
c
,
1
);
p
=
size
(
d
,
3
);
x
=
zeros
(
n
,
m
,
p
);
if
n
==
1
for
j
=
1
:
p
,
x
(:,:,
j
)
=
d
(:,:,
j
)
.
/(
a
*
ones
(
1
,
m
)
+
b
*
c
);
...
...
@@ -33,7 +34,6 @@ if m == 1
end
return
;
end
x
=
zeros
(
n
,
m
,
p
);
[
u
,
t
]
=
schur
(
c
);
if
exist
(
'OCTAVE_VERSION'
)
[
aa
,
bb
,
qq
,
zz
]
=
qz
(
full
(
a
),
full
(
b
));
...
...
This diff is collapsed.
Click to expand it.
matlab/gensylv/sylvester3a.m
+
1
−
1
View file @
32de0fd6
...
...
@@ -32,7 +32,7 @@ for j=1:size(dd,3),
iter
=
iter
+
1
;
end
if
iter
==
500
sprintf
(
'sylvester3a
mr
: Only accuracy of %10.8f is achieved after 500 iterations'
,
e
);
sprintf
(
'sylvester3a : Only accuracy of %10.8f is achieved after 500 iterations'
,
e
);
flag
=
1
;
end
end
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment