Arcane  4.1.11.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
Référence du modèle de la classe Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >

Sparse matrix stored in CSR (Compressed Sparse Row) format. Plus de détails...

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

+ Graphe de collaboration de Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >:

Types publics

typedef ValueType_ value_type
 
typedef ValueType_ val_type
 
typedef ColumnType_ col_type
 
using ptr_type = RowIndexType_
 
using RowIndexType = RowIndexType_
 
using ColumnSpanType = SpanChooser<ColumnType_,sizeof(RowIndexType_)>::SpanType
 
using ValueSpanType = SpanChooser<ValueType_,sizeof(RowIndexType_)>::SpanType
 

Fonctions membres publiques

 CSRMatrixView (Int32 nb_row, RowIndexType nb_non_zero, ptr_type *ptr_range, col_type *col_range, val_type *val_range)
 
constexpr Int32 nbRow () const noexcept
 Number of row.
 
constexpr RowIndexType nbNonZero () const noexcept
 Number of non-zero in the matrix.
 
constexpr Int32 nbNonZeroForRow (Int32 row) const
 Number of non-zero for the row row.
 
SmallSpan< RowIndexType > rowIndexes () const noexcept
 
ColumnSpanType columns () const noexcept
 
ValueSpanType values () const noexcept
 
constexpr CSRRow< RowIndexType > rowRange (Int32 row) const
 
constexpr CSRRowRange< RowIndexType > rows () const
 Range of all rows of the matrix.
 
constexpr CSRRowRange< RowIndexType > subrows (RowIndexType begin, RowIndexType size) const
 Range of rows from interval [begin,begin+size[.
 
constexpr ptr_type ptr (Int32 i) const
 
constexpr col_type col (RowIndexType i) const
 
constexpr val_type val (RowIndexType i) const
 
ptr_type & ptr (Int32 i)
 
col_type & col (RowIndexType i)
 
val_type & val (RowIndexType i)
 
constexpr val_type & value (CSRRowColumnIndex< RowIndexType > rc_index) const
 Value of the matrix for the given RowColumnIndex rc_index.
 
constexpr col_type column (CSRRowColumnIndex< RowIndexType > rc_index) const
 Value of the matrix for the given RowColumnIndex rc_index.
 

Attributs privés

val_type * m_values = nullptr
 
RowIndexType * m_row_indexes = nullptr
 
col_type * m_columns = nullptr
 
Int32 m_nb_row = 0
 
RowIndexType m_nb_non_zero = 0
 

Description détaillée

template<typename ValueType_, typename ColumnType_, typename RowIndexType_>
class Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >

Sparse matrix stored in CSR (Compressed Sparse Row) format.

Définition à la ligne 278 du fichier CSRMatrixView.h.

Documentation des définitions de type membres

◆ col_type

template<typename ValueType_, typename ColumnType_, typename RowIndexType_>
typedef ColumnType_ Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >::col_type

Définition à la ligne 284 du fichier CSRMatrixView.h.

◆ ColumnSpanType

template<typename ValueType_, typename ColumnType_, typename RowIndexType_>
using Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >::ColumnSpanType = SpanChooser<ColumnType_,sizeof(RowIndexType_)>::SpanType

Définition à la ligne 287 du fichier CSRMatrixView.h.

◆ ptr_type

template<typename ValueType_, typename ColumnType_, typename RowIndexType_>
using Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >::ptr_type = RowIndexType_

Définition à la ligne 285 du fichier CSRMatrixView.h.

◆ RowIndexType

template<typename ValueType_, typename ColumnType_, typename RowIndexType_>
using Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >::RowIndexType = RowIndexType_

Définition à la ligne 286 du fichier CSRMatrixView.h.

◆ val_type

template<typename ValueType_, typename ColumnType_, typename RowIndexType_>
typedef ValueType_ Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >::val_type

Définition à la ligne 283 du fichier CSRMatrixView.h.

◆ value_type

template<typename ValueType_, typename ColumnType_, typename RowIndexType_>
typedef ValueType_ Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >::value_type

Définition à la ligne 282 du fichier CSRMatrixView.h.

◆ ValueSpanType

template<typename ValueType_, typename ColumnType_, typename RowIndexType_>
using Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >::ValueSpanType = SpanChooser<ValueType_,sizeof(RowIndexType_)>::SpanType

Définition à la ligne 288 du fichier CSRMatrixView.h.

Documentation des constructeurs et destructeur

◆ CSRMatrixView()

template<typename ValueType_, typename ColumnType_, typename RowIndexType_>
Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >::CSRMatrixView ( Int32 nb_row,
RowIndexType nb_non_zero,
ptr_type * ptr_range,
col_type * col_range,
val_type * val_range )
inline

Définition à la ligne 294 du fichier CSRMatrixView.h.

Documentation des fonctions membres

◆ col() [1/2]

template<typename ValueType_, typename ColumnType_, typename RowIndexType_>
col_type & Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >::col ( RowIndexType i)
inline

Définition à la ligne 363 du fichier CSRMatrixView.h.

◆ col() [2/2]

template<typename ValueType_, typename ColumnType_, typename RowIndexType_>
col_type Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >::col ( RowIndexType i) const
inlineconstexpr

Définition à la ligne 347 du fichier CSRMatrixView.h.

◆ column()

template<typename ValueType_, typename ColumnType_, typename RowIndexType_>
col_type Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >::column ( CSRRowColumnIndex< RowIndexType > rc_index) const
inlineconstexpr

Value of the matrix for the given RowColumnIndex rc_index.

Définition à la ligne 380 du fichier CSRMatrixView.h.

◆ columns()

template<typename ValueType_, typename ColumnType_, typename RowIndexType_>
ColumnSpanType Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >::columns ( ) const
inlinenoexcept

Définition à la ligne 318 du fichier CSRMatrixView.h.

◆ nbNonZero()

template<typename ValueType_, typename ColumnType_, typename RowIndexType_>
RowIndexType Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >::nbNonZero ( ) const
inlineconstexprnoexcept

Number of non-zero in the matrix.

Définition à la ligne 308 du fichier CSRMatrixView.h.

◆ nbNonZeroForRow()

template<typename ValueType_, typename ColumnType_, typename RowIndexType_>
Int32 Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >::nbNonZeroForRow ( Int32 row) const
inlineconstexpr

Number of non-zero for the row row.

Définition à la ligne 311 du fichier CSRMatrixView.h.

◆ nbRow()

template<typename ValueType_, typename ColumnType_, typename RowIndexType_>
Int32 Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >::nbRow ( ) const
inlineconstexprnoexcept

Number of row.

Définition à la ligne 306 du fichier CSRMatrixView.h.

◆ ptr() [1/2]

template<typename ValueType_, typename ColumnType_, typename RowIndexType_>
ptr_type & Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >::ptr ( Int32 i)
inline

Définition à la ligne 358 du fichier CSRMatrixView.h.

◆ ptr() [2/2]

template<typename ValueType_, typename ColumnType_, typename RowIndexType_>
ptr_type Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >::ptr ( Int32 i) const
inlineconstexpr

Définition à la ligne 342 du fichier CSRMatrixView.h.

◆ rowIndexes()

template<typename ValueType_, typename ColumnType_, typename RowIndexType_>
SmallSpan< RowIndexType > Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >::rowIndexes ( ) const
inlinenoexcept

Définition à la ligne 317 du fichier CSRMatrixView.h.

◆ rowRange()

template<typename ValueType_, typename ColumnType_, typename RowIndexType_>
CSRRow< RowIndexType > Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >::rowRange ( Int32 row) const
inlinenodiscardconstexpr

Définition à la ligne 323 du fichier CSRMatrixView.h.

◆ rows()

template<typename ValueType_, typename ColumnType_, typename RowIndexType_>
CSRRowRange< RowIndexType > Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >::rows ( ) const
inlineconstexpr

Range of all rows of the matrix.

Définition à la ligne 330 du fichier CSRMatrixView.h.

◆ subrows()

template<typename ValueType_, typename ColumnType_, typename RowIndexType_>
CSRRowRange< RowIndexType > Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >::subrows ( RowIndexType begin,
RowIndexType size ) const
inlineconstexpr

Range of rows from interval [begin,begin+size[.

Définition à la ligne 335 du fichier CSRMatrixView.h.

◆ val() [1/2]

template<typename ValueType_, typename ColumnType_, typename RowIndexType_>
val_type & Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >::val ( RowIndexType i)
inline

Définition à la ligne 368 du fichier CSRMatrixView.h.

◆ val() [2/2]

template<typename ValueType_, typename ColumnType_, typename RowIndexType_>
val_type Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >::val ( RowIndexType i) const
inlineconstexpr

Définition à la ligne 352 du fichier CSRMatrixView.h.

◆ value()

template<typename ValueType_, typename ColumnType_, typename RowIndexType_>
val_type & Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >::value ( CSRRowColumnIndex< RowIndexType > rc_index) const
inlineconstexpr

Value of the matrix for the given RowColumnIndex rc_index.

Définition à la ligne 375 du fichier CSRMatrixView.h.

◆ values()

template<typename ValueType_, typename ColumnType_, typename RowIndexType_>
ValueSpanType Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >::values ( ) const
inlinenoexcept

Définition à la ligne 319 du fichier CSRMatrixView.h.

Documentation des données membres

◆ m_columns

template<typename ValueType_, typename ColumnType_, typename RowIndexType_>
col_type* Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >::m_columns = nullptr
private

Définition à la ligne 389 du fichier CSRMatrixView.h.

◆ m_nb_non_zero

template<typename ValueType_, typename ColumnType_, typename RowIndexType_>
RowIndexType Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >::m_nb_non_zero = 0
private

Définition à la ligne 391 du fichier CSRMatrixView.h.

◆ m_nb_row

template<typename ValueType_, typename ColumnType_, typename RowIndexType_>
Int32 Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >::m_nb_row = 0
private

Définition à la ligne 390 du fichier CSRMatrixView.h.

◆ m_row_indexes

template<typename ValueType_, typename ColumnType_, typename RowIndexType_>
RowIndexType* Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >::m_row_indexes = nullptr
private

Définition à la ligne 388 du fichier CSRMatrixView.h.

◆ m_values

template<typename ValueType_, typename ColumnType_, typename RowIndexType_>
val_type* Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >::m_values = nullptr
private

Définition à la ligne 387 du fichier CSRMatrixView.h.


La documentation de cette classe a été générée à partir des fichiers suivants :