Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Chaofan Chen
ogs
Commits
352029bf
Commit
352029bf
authored
3 years ago
by
Tom Fischer
Browse files
Options
Downloads
Patches
Plain Diff
[MaL/LA] EigenLisLinearSolver constr. using string lis_options.
parent
168c198a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
MathLib/LinAlg/EigenLis/EigenLisLinearSolver.cpp
+6
-0
6 additions, 0 deletions
MathLib/LinAlg/EigenLis/EigenLisLinearSolver.cpp
MathLib/LinAlg/EigenLis/EigenLisLinearSolver.h
+18
-2
18 additions, 2 deletions
MathLib/LinAlg/EigenLis/EigenLisLinearSolver.h
with
24 additions
and
2 deletions
MathLib/LinAlg/EigenLis/EigenLisLinearSolver.cpp
+
6
−
0
View file @
352029bf
...
...
@@ -29,6 +29,12 @@ EigenLisLinearSolver::EigenLisLinearSolver(
{
}
EigenLisLinearSolver
::
EigenLisLinearSolver
(
std
::
string
const
&
/*solver_name*/
,
std
::
string
const
&
lis_options
)
:
lis_option_
(
nullptr
),
lis_options_
(
lis_options
)
{
}
bool
EigenLisLinearSolver
::
solve
(
EigenMatrix
&
A_
,
EigenVector
&
b_
,
EigenVector
&
x_
)
{
...
...
This diff is collapsed.
Click to expand it.
MathLib/LinAlg/EigenLis/EigenLisLinearSolver.h
+
18
−
2
View file @
352029bf
...
...
@@ -10,10 +10,10 @@
#pragma once
#include
<vector>
#include
<lis.h>
#include
<vector>
#include
"BaseLib/ConfigTree.h"
#include
"MathLib/LinAlg/Lis/LisOption.h"
...
...
@@ -40,15 +40,31 @@ public:
EigenLisLinearSolver
(
const
std
::
string
solver_name
,
BaseLib
::
ConfigTree
const
*
const
option
);
/**
* Constructor
* @param solver_name A name used as a prefix for command line options
* if there are such options available.
* @param lis_options string containing the options for LIS library; options
* will be applied in the solve method.
*/
EigenLisLinearSolver
(
std
::
string
const
&
solver_name
,
std
::
string
const
&
lis_options
);
/**
* copy linear solvers options
* @param lis_options string containing the options for LIS library; options
* will be applied in the solve method.
*/
void
setOption
(
const
LisOption
&
option
)
{
lis_option_
=
option
;
}
void
setOption
(
std
::
string
const
&
lis_options
)
{
lis_options_
=
lis_options
;
}
bool
solve
(
EigenMatrix
&
A
,
EigenVector
&
b
,
EigenVector
&
x
);
private
:
LisOption
lis_option_
;
std
::
string
lis_options_
;
};
}
// MathLib
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