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
Dmitri Naumov
ogs
Commits
2e54137a
Commit
2e54137a
authored
5 years ago
by
Dmitri Naumov
Browse files
Options
Downloads
Patches
Plain Diff
[MaL] Remove unused GlobalMatrix's getMaxDiagCoeff
parent
ea317a12
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
MathLib/LinAlg/Eigen/EigenMatrix.h
+0
-6
0 additions, 6 deletions
MathLib/LinAlg/Eigen/EigenMatrix.h
MathLib/LinAlg/Lis/LisMatrix.cpp
+0
-18
0 additions, 18 deletions
MathLib/LinAlg/Lis/LisMatrix.cpp
MathLib/LinAlg/Lis/LisMatrix.h
+0
-3
0 additions, 3 deletions
MathLib/LinAlg/Lis/LisMatrix.h
with
0 additions
and
27 deletions
MathLib/LinAlg/Eigen/EigenMatrix.h
+
0
−
6
View file @
2e54137a
...
@@ -140,12 +140,6 @@ public:
...
@@ -140,12 +140,6 @@ public:
}
}
*/
*/
/// get a maximum value in diagonal entries
double
getMaxDiagCoeff
()
const
{
return
_mat
.
diagonal
().
maxCoeff
();
}
/// return always true, i.e. the matrix is always ready for use
/// return always true, i.e. the matrix is always ready for use
bool
isAssembled
()
const
{
return
true
;
}
bool
isAssembled
()
const
{
return
true
;
}
...
...
This diff is collapsed.
Click to expand it.
MathLib/LinAlg/Lis/LisMatrix.cpp
+
0
−
18
View file @
2e54137a
...
@@ -118,24 +118,6 @@ void LisMatrix::write(const std::string &filename) const
...
@@ -118,24 +118,6 @@ void LisMatrix::write(const std::string &filename) const
lis_output_matrix
(
_AA
,
LIS_FMT_MM
,
const_cast
<
char
*>
(
filename
.
c_str
()));
lis_output_matrix
(
_AA
,
LIS_FMT_MM
,
const_cast
<
char
*>
(
filename
.
c_str
()));
}
}
double
LisMatrix
::
getMaxDiagCoeff
()
{
double
abs_max_entry
;
int
ierr
=
lis_vector_get_value
(
_diag
,
0
,
&
abs_max_entry
);
checkLisError
(
ierr
);
abs_max_entry
=
std
::
abs
(
abs_max_entry
);
for
(
std
::
size_t
k
(
1
);
k
<
_n_rows
;
++
k
)
{
double
tmp
;
ierr
=
lis_vector_get_value
(
_diag
,
k
,
&
tmp
);
checkLisError
(
ierr
);
if
(
abs_max_entry
<
std
::
abs
(
tmp
))
{
abs_max_entry
=
std
::
abs
(
tmp
);
}
}
return
abs_max_entry
;
}
bool
finalizeMatrixAssembly
(
LisMatrix
&
mat
)
bool
finalizeMatrixAssembly
(
LisMatrix
&
mat
)
{
{
LIS_MATRIX
&
A
=
mat
.
getRawMatrix
();
LIS_MATRIX
&
A
=
mat
.
getRawMatrix
();
...
...
This diff is collapsed.
Click to expand it.
MathLib/LinAlg/Lis/LisMatrix.h
+
0
−
3
View file @
2e54137a
...
@@ -111,9 +111,6 @@ public:
...
@@ -111,9 +111,6 @@ public:
/// printout this equation for debugging
/// printout this equation for debugging
void
write
(
const
std
::
string
&
filename
)
const
;
void
write
(
const
std
::
string
&
filename
)
const
;
/// get a maximum value in diagonal entries
double
getMaxDiagCoeff
();
/// return a raw Lis matrix object
/// return a raw Lis matrix object
LIS_MATRIX
&
getRawMatrix
()
{
return
_AA
;
}
LIS_MATRIX
&
getRawMatrix
()
{
return
_AA
;
}
...
...
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