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
7a9268d4
Commit
7a9268d4
authored
May 25, 2017
by
Dmitry Bagaev
Browse files
Performance fix in solver_test003
parent
c95e8155
Changes
1
Hide whitespace changes
Inline
Side-by-side
Tests/solver_test003/main.cpp
View file @
7a9268d4
...
...
@@ -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
=
0
;
j
<
n
;
j
++
)
{
for
(
int
j
=
std
::
max
(
0
,
i
-
r
);
j
<
std
::
max
(
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