Advanced Multi-Physics (AMP)
On-Line Documentation
DenseSerialMatrix.h
Go to the documentation of this file.
1#ifndef included_AMP_DenseSerialMatrix
2#define included_AMP_DenseSerialMatrix
3
4#include "AMP/matrices/Matrix.h"
5#include "AMP/vectors/Vector.h"
6#include <memory>
7
8namespace AMP::LinearAlgebra {
9
10
17{
18public:
22 explicit DenseSerialMatrix( std::shared_ptr<MatrixParametersBase> params );
23
24
28 explicit DenseSerialMatrix( std::shared_ptr<MatrixData> data );
29
31
33
37
39 virtual std::string type() const override { return "DenseSerialMatrix"; }
40
44 shared_ptr transpose() const override;
45
49 shared_ptr clone() const override;
50
57
63
69
70protected:
73
78 void multiply( shared_ptr other_op, shared_ptr &result ) override;
79};
80} // namespace AMP::LinearAlgebra
81
82
83#endif
An concrete class for dealing with dense serial matrices.
Vector::shared_ptr createOutputVector() const override
Get a left vector( For , is a left vector )
virtual std::string type() const override
Return the type of the matrix.
virtual ~DenseSerialMatrix()
Destructor.
DenseSerialMatrix & operator=(const DenseSerialMatrix &)=delete
DenseSerialMatrix(const DenseSerialMatrix &)=delete
Vector::shared_ptr createInputVector() const override
Get a right vector( For , is a right vector )
shared_ptr transpose() const override
Return a new matrix that is the transpose of this one.
DenseSerialMatrix(std::shared_ptr< MatrixParametersBase > params)
Constructor.
void multiply(shared_ptr other_op, shared_ptr &result) override
Multiply two matrices and store in a third.
Vector::shared_ptr extractDiagonal(Vector::shared_ptr buf=Vector::shared_ptr()) const override
Extract the diagonal from a matrix.
shared_ptr clone() const override
Return a matrix with the same non-zero and distributed structure.
DenseSerialMatrix()
Unimplemented constructor.
DenseSerialMatrix(std::shared_ptr< MatrixData > data)
Constructor.
An abstract interface for using and manipulating matrices.
Definition Matrix.h:30
std::shared_ptr< Matrix > shared_ptr
Convenience typedef.
Definition Matrix.h:33
std::shared_ptr< Vector > shared_ptr
Shorthand for shared pointer to Vector.
Definition Vector.h:60



Advanced Multi-Physics (AMP)
Oak Ridge National Laboratory
Idaho National Laboratory
Los Alamos National Laboratory
This page automatically produced from the
source code by doxygen
Last updated: Tue Mar 10 2026 13:06:40.
Comments on this page