KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
Static Public Member Functions | List of all members
Kratos::AmgclCSRConversionUtilities Class Reference

#include <amgcl_csr_conversion_utilities.h>

Collaboration diagram for Kratos::AmgclCSRConversionUtilities:

Static Public Member Functions

template<class TDataType , class TIndexType >
static Kratos::shared_ptr< typename amgcl::backend::builtin< TDataType >::matrix > ConvertToAmgcl (const CsrMatrix< TDataType, TIndexType > &rA)
 
template<class TDataType , class TIndexType >
static CsrMatrix< TDataType, TIndexType >::UniquePointer ConvertToCsrMatrix (typename amgcl::backend::builtin< TDataType >::matrix &rA)
 
template<class TDataType , class TIndexType >
static CsrMatrix< TDataType, TIndexType >::Pointer Transpose (CsrMatrix< TDataType, TIndexType > &rA)
 

Detailed Description

Utilities to convert the distributed_csr matrix to an AMGCL matrix

Member Function Documentation

◆ ConvertToAmgcl()

template<class TDataType , class TIndexType >
static Kratos::shared_ptr<typename amgcl::backend::builtin<TDataType>::matrix > Kratos::AmgclCSRConversionUtilities::ConvertToAmgcl ( const CsrMatrix< TDataType, TIndexType > &  rA)
inlinestatic

This function returns a shared pointer to an Amgcl distributed_matrix

◆ ConvertToCsrMatrix()

template<class TDataType , class TIndexType >
static CsrMatrix<TDataType, TIndexType>::UniquePointer Kratos::AmgclCSRConversionUtilities::ConvertToCsrMatrix ( typename amgcl::backend::builtin< TDataType >::matrix &  rA)
inlinestatic

◆ Transpose()

template<class TDataType , class TIndexType >
static CsrMatrix<TDataType, TIndexType>::Pointer Kratos::AmgclCSRConversionUtilities::Transpose ( CsrMatrix< TDataType, TIndexType > &  rA)
inlinestatic

The documentation for this class was generated from the following file: