Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91072836
ParDiagonalMatrix.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Nov 7, 14:23
Size
969 B
Mime Type
text/x-c
Expires
Sat, Nov 9, 14:23 (2 d)
Engine
blob
Format
Raw Data
Handle
22190786
Attached To
rLAMMPS lammps
ParDiagonalMatrix.h
View Options
#ifndef PARDIAGONALMATRIX_H
#define PARDIAGONALMATRIX_H
#include "mpi.h"
#include "MPI_Wrappers.h"
#include "MatrixLibrary.h"
#include "DiagonalMatrix.h"
#include "DenseMatrix.h"
namespace
ATC_matrix
{
/**
* @class ParDiagonalMatrix
* @brief Parallelized version of DiagonalMatrix class.
*/
template
<
typename
T
>
class
ParDiagonalMatrix
:
public
DiagonalMatrix
<
T
>
{
public:
ParDiagonalMatrix
(
MPI_Comm
comm
,
INDEX
rows
=
0
,
bool
z
=
0
)
:
DiagonalMatrix
<
T
>
(
rows
,
z
),
_comm
(
comm
)
{}
ParDiagonalMatrix
(
MPI_Comm
comm
,
const
DiagonalMatrix
<
T
>&
c
)
:
DiagonalMatrix
<
T
>
(
c
),
_comm
(
comm
)
{}
ParDiagonalMatrix
(
MPI_Comm
comm
,
const
Vector
<
T
>&
v
)
:
DiagonalMatrix
<
T
>
(
v
),
_comm
(
comm
)
{}
void
MultAB
(
const
Matrix
<
T
>
&
B
,
DenseMatrix
<
T
>
&
C
)
const
;
private:
MPI_Comm
_comm
;
};
template
<>
void
ParDiagonalMatrix
<
double
>::
MultAB
(
const
Matrix
<
double
>
&
B
,
DenseMatrix
<
double
>
&
C
)
const
;
}
// end namespace
#endif
Event Timeline
Log In to Comment