Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Kirill Terekhov
INMOST
Commits
f8923774
Commit
f8923774
authored
May 25, 2017
by
Dmitry Bagaev
Browse files
2prev
parent
7a9268d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Tests/solver_test003/main.cpp
View file @
f8923774
...
...
@@ -226,7 +226,7 @@ void Band(int n, int r, Sparse::Matrix & A)
A
.
SetInterval
(
idmin
,
idmax
);
for
(
int
i
=
idmin
;
i
<
idmax
;
i
++
)
{
for
(
int
j
=
std
::
max
(
0
,
i
-
r
);
j
<
std
::
m
ax
(
i
+
r
,
n
);
j
++
)
{
for
(
int
j
=
std
::
max
(
0
,
i
-
r
);
j
<
std
::
m
in
(
i
+
r
,
n
);
j
++
)
{
if
(
abs
(
i
-
j
)
<
r
)
{
if
(
i
==
j
)
{
A
[
i
][
j
]
=
(
ndiag
-
1.
)
+
1e-3
;
...
...
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