OGS
SetMatrixSparsity.h
Go to the documentation of this file.
1
10
#pragma once
11
12
namespace
MathLib
13
{
14
18
template
<
typename
MATRIX,
typename
SPARSITY_PATTERN>
19
struct
SetMatrixSparsity
20
{
21
void
operator()
(MATRIX&
/*unused*/
,
22
SPARSITY_PATTERN
const
&
/*unused*/
)
const
23
{
24
}
25
};
26
30
template
<
typename
MATRIX,
typename
SPARSITY_PATTERN>
31
void
setMatrixSparsity
(MATRIX& matrix, SPARSITY_PATTERN
const
& sparsity_pattern)
32
{
33
SetMatrixSparsity<MATRIX, SPARSITY_PATTERN>
set_sparsity;
34
set_sparsity(matrix, sparsity_pattern);
35
}
36
37
}
// namespace MathLib
38
39
#ifdef USE_LIS
40
#include "
Lis/LisMatrix.h
"
41
#endif
// USE_LIS
42
43
#include "
Eigen/EigenMatrix.h
"
EigenMatrix.h
LisMatrix.h
Definition of the LisMatrix class.
MathLib
Definition
CreateComponent.h:32
MathLib::setMatrixSparsity
void setMatrixSparsity(MATRIX &matrix, SPARSITY_PATTERN const &sparsity_pattern)
Definition
SetMatrixSparsity.h:31
MathLib::SetMatrixSparsity
Definition
SetMatrixSparsity.h:20
MathLib::SetMatrixSparsity::operator()
void operator()(MATRIX &, SPARSITY_PATTERN const &) const
Definition
SetMatrixSparsity.h:21
MathLib
LinAlg
SetMatrixSparsity.h
Generated by
1.12.0