Opm::Accelerator::Matrix< Scalar > Class Template Reference

#include <Matrix.hpp>

Public Member Functions

 Matrix (int N_, int nnzs_)
 
 Matrix (int N_, int M_, int nnzs_)
 

Public Attributes

std::vector< Scalar > nnzValues
 
std::vector< int > colIndices
 
std::vector< int > rowPointers
 
int N
 
int M
 
int nnzs
 

Detailed Description

template<class Scalar>
class Opm::Accelerator::Matrix< Scalar >

This struct resembles a csr matrix, only doubles are supported The data is stored in contiguous memory, such that they can be copied to a device in one transfer.

Constructor & Destructor Documentation

◆ Matrix() [1/2]

template<class Scalar >
Opm::Accelerator::Matrix< Scalar >::Matrix ( int  N_,
int  nnzs_ 
)
inline

◆ Matrix() [2/2]

template<class Scalar >
Opm::Accelerator::Matrix< Scalar >::Matrix ( int  N_,
int  M_,
int  nnzs_ 
)
inline

Allocate rectangular Matrix and data arrays with given sizes

Parameters
[in]Nnumber of rows
[in]Mnumber of columns
[in]nnzsnumber of nonzeros

References Opm::Accelerator::Matrix< Scalar >::M.

Member Data Documentation

◆ colIndices

template<class Scalar >
std::vector<int> Opm::Accelerator::Matrix< Scalar >::colIndices

◆ M

template<class Scalar >
int Opm::Accelerator::Matrix< Scalar >::M

◆ N

template<class Scalar >
int Opm::Accelerator::Matrix< Scalar >::N

◆ nnzs

template<class Scalar >
int Opm::Accelerator::Matrix< Scalar >::nnzs

◆ nnzValues

template<class Scalar >
std::vector<Scalar> Opm::Accelerator::Matrix< Scalar >::nnzValues

◆ rowPointers

template<class Scalar >
std::vector<int> Opm::Accelerator::Matrix< Scalar >::rowPointers

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