Advanced Multi-Physics (AMP)
On-Line Documentation
Namespaces | Typedefs | Functions
MatrixBuilder.h File Reference
#include "AMP/matrices/Matrix.h"
#include "AMP/utils/Utilities.h"
#include "AMP/vectors/Vector.h"
#include <functional>
#include <string>
Include dependency graph for MatrixBuilder.h:

Go to the source code of this file.

Namespaces

namespace  AMP
 
namespace  AMP::LinearAlgebra
 

Typedefs

typedef struct _p_Mat * Mat
 

Functions

std::shared_ptr< MatrixAMP::LinearAlgebra::createMatrix (AMP::LinearAlgebra::Vector::shared_ptr right, AMP::LinearAlgebra::Vector::shared_ptr left, AMP::Utilities::Backend accelerationBackend, std::string type="auto", std::function< std::vector< size_t >(size_t row)> getColumnIDs=std::function< std::vector< size_t >(size_t)>())
 This function will create a matrix from two vectors.
 
std::shared_ptr< MatrixAMP::LinearAlgebra::createMatrix (AMP::LinearAlgebra::Vector::shared_ptr right, AMP::LinearAlgebra::Vector::shared_ptr left, const std::string &type="auto", std::function< std::vector< size_t >(size_t row)> getColumnIDs=std::function< std::vector< size_t >(size_t)>())
 This function will create a matrix from two vectors.
 
std::shared_ptr< MatrixAMP::LinearAlgebra::createMatrix (Mat M, bool deleteable)
 Create a matrix from an arbitrary PETSc Mat.
 
template<typename ConfigOut >
std::shared_ptr< AMP::LinearAlgebra::MatrixAMP::LinearAlgebra::createMatrix (std::shared_ptr< AMP::LinearAlgebra::Matrix > matrix)
 
template<typename ConfigOut >
std::shared_ptr< AMP::LinearAlgebra::MatrixAMP::LinearAlgebra::createMatrix (std::shared_ptr< AMP::LinearAlgebra::Matrix > matrix, AMP::Utilities::Backend accelerationBackend)
 
std::shared_ptr< AMP::LinearAlgebra::MatrixAMP::LinearAlgebra::createMatrix (std::shared_ptr< AMP::LinearAlgebra::Matrix > matrix, AMP::Utilities::MemoryType memType)
 
std::shared_ptr< AMP::LinearAlgebra::MatrixAMP::LinearAlgebra::createMatrix (std::shared_ptr< AMP::LinearAlgebra::Matrix > matrix, AMP::Utilities::MemoryType memType, AMP::Utilities::Backend accelerationBackend)
 
std::string AMP::LinearAlgebra::getDefaultMatrixType ()
 Return the default matrix type.
 

Typedef Documentation

◆ Mat

typedef struct _p_Mat* Mat

Definition at line 13 of file MatrixBuilder.h.



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:41.
Comments on this page