Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::Alina::BlockCSRMatrix< V, C, P > Struct Template Reference

Sparse matrix in Block CSR format. More...

#include </__w/arcaneframework.github.io/arcaneframework.github.io/framework/arccore/src/alina/arccore/alina/BlockCSRMatrix.h>

Collaboration diagram for Arcane::Alina::BlockCSRMatrix< V, C, P >:

Public Types

typedef V value_type
typedef V val_type
typedef C col_type
typedef P ptr_type

Public Member Functions

template<class Matrix>
 BlockCSRMatrix (const Matrix &A, size_t block_size)
 Converts matrix in CRS format to Block CRS format.

Public Attributes

size_t block_size
size_t nrows
size_t ncols
size_t brows
size_t bcols
std::vector< ptr_type > ptr
std::vector< col_type > col
std::vector< val_type > val

Detailed Description

template<typename V, typename C, typename P>
struct Arcane::Alina::BlockCSRMatrix< V, C, P >

Sparse matrix in Block CSR format.

Parameters
VValue type.
CColumn number type.
PIndex type.

Definition at line 48 of file BlockCSRMatrix.h.

Member Typedef Documentation

◆ col_type

template<typename V, typename C, typename P>
typedef C Arcane::Alina::BlockCSRMatrix< V, C, P >::col_type

Definition at line 52 of file BlockCSRMatrix.h.

◆ ptr_type

template<typename V, typename C, typename P>
typedef P Arcane::Alina::BlockCSRMatrix< V, C, P >::ptr_type

Definition at line 53 of file BlockCSRMatrix.h.

◆ val_type

template<typename V, typename C, typename P>
typedef V Arcane::Alina::BlockCSRMatrix< V, C, P >::val_type

Definition at line 51 of file BlockCSRMatrix.h.

◆ value_type

template<typename V, typename C, typename P>
typedef V Arcane::Alina::BlockCSRMatrix< V, C, P >::value_type

Definition at line 50 of file BlockCSRMatrix.h.

Constructor & Destructor Documentation

◆ BlockCSRMatrix()

template<typename V, typename C, typename P>
template<class Matrix>
Arcane::Alina::BlockCSRMatrix< V, C, P >::BlockCSRMatrix ( const Matrix & A,
size_t block_size )
inline

Converts matrix in CRS format to Block CRS format.

Parameters
AInput matrix.
block_sizeBlock size.
Note
Input matrix dimensions are not required to be divisible by block_size.

Definition at line 73 of file BlockCSRMatrix.h.

Member Data Documentation

◆ bcols

template<typename V, typename C, typename P>
size_t Arcane::Alina::BlockCSRMatrix< V, C, P >::bcols

Definition at line 57 of file BlockCSRMatrix.h.

◆ block_size

template<typename V, typename C, typename P>
size_t Arcane::Alina::BlockCSRMatrix< V, C, P >::block_size

Definition at line 55 of file BlockCSRMatrix.h.

◆ brows

template<typename V, typename C, typename P>
size_t Arcane::Alina::BlockCSRMatrix< V, C, P >::brows

Definition at line 57 of file BlockCSRMatrix.h.

◆ col

template<typename V, typename C, typename P>
std::vector<col_type> Arcane::Alina::BlockCSRMatrix< V, C, P >::col

Definition at line 60 of file BlockCSRMatrix.h.

◆ ncols

template<typename V, typename C, typename P>
size_t Arcane::Alina::BlockCSRMatrix< V, C, P >::ncols

Definition at line 56 of file BlockCSRMatrix.h.

◆ nrows

template<typename V, typename C, typename P>
size_t Arcane::Alina::BlockCSRMatrix< V, C, P >::nrows

Definition at line 56 of file BlockCSRMatrix.h.

◆ ptr

template<typename V, typename C, typename P>
std::vector<ptr_type> Arcane::Alina::BlockCSRMatrix< V, C, P >::ptr

Definition at line 59 of file BlockCSRMatrix.h.

◆ val

template<typename V, typename C, typename P>
std::vector<val_type> Arcane::Alina::BlockCSRMatrix< V, C, P >::val

Definition at line 61 of file BlockCSRMatrix.h.


The documentation for this struct was generated from the following files: