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
aae3ef16
Commit
aae3ef16
authored
Nov 24, 2015
by
Kirill Terekhov
Browse files
Fix naming in MatSolve example
parent
ad7a71ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Examples/MatSolve/main.cpp
View file @
aae3ef16
...
...
@@ -65,12 +65,12 @@ int main(int argc, char ** argv)
&&
std
::
string
(
argv
[
4
])
==
std
::
string
(
"1"
)
)
{
if
(
!
rank
)
std
::
cout
<<
"["
<<
rank
<<
"]: set RHS = A * [1]"
<<
std
::
endl
;
S
olver
::
Vector
ex
(
"exact"
);
// Declare the temporary exact solution vector
S
parse
::
Vector
ex
(
"exact"
);
// Declare the temporary exact solution vector
INMOST_DATA_ENUM_TYPE
mbeg
,
mend
,
k
;
mat
.
GetInterval
(
mbeg
,
mend
);
ex
.
SetInterval
(
mbeg
,
mend
);
for
(
k
=
mbeg
;
k
<
mend
;
++
k
)
ex
[
k
]
=
1.0
;
S
olver
::
Matrix
a
=
mat
;
// Declare a temporary copy of the original matrix
S
parse
::
Matrix
a
=
mat
;
// Declare a temporary copy of the original matrix
Solver
::
OrderInfo
info
;
info
.
PrepareMatrix
(
a
,
0
);
info
.
PrepareVector
(
ex
);
...
...
@@ -186,8 +186,8 @@ int main(int argc, char ** argv)
{
// Compare solution with exact one if available
if
(
argc
>
4
)
{
S
olver
::
Vector
ex
(
"exact"
);
// Declare the exact solution vector
S
olver
::
Vector
err
(
"error"
);
// Declare the solution error vector
S
parse
::
Vector
ex
(
"exact"
);
// Declare the exact solution vector
S
parse
::
Vector
err
(
"error"
);
// Declare the solution error vector
INMOST_DATA_ENUM_TYPE
mbeg
,
mend
,
k
;
mat
.
GetInterval
(
mbeg
,
mend
);
err
.
SetInterval
(
mbeg
,
mend
);
...
...
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