Sparse matrix stored in CSR (Compressed Sparse Row) format. More...
Public Types | |
| 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 |
Public Member Functions | |
| 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. | |
Private Attributes | |
| 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 |
Sparse matrix stored in CSR (Compressed Sparse Row) format.
Definition at line 278 of file CSRMatrixView.h.
| typedef ColumnType_ Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >::col_type |
Definition at line 284 of file CSRMatrixView.h.
| using Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >::ColumnSpanType = SpanChooser<ColumnType_,sizeof(RowIndexType_)>::SpanType |
Definition at line 287 of file CSRMatrixView.h.
| using Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >::ptr_type = RowIndexType_ |
Definition at line 285 of file CSRMatrixView.h.
| using Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >::RowIndexType = RowIndexType_ |
Definition at line 286 of file CSRMatrixView.h.
| typedef ValueType_ Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >::val_type |
Definition at line 283 of file CSRMatrixView.h.
| typedef ValueType_ Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >::value_type |
Definition at line 282 of file CSRMatrixView.h.
| using Arcane::Alina::CSRMatrixView< ValueType_, ColumnType_, RowIndexType_ >::ValueSpanType = SpanChooser<ValueType_,sizeof(RowIndexType_)>::SpanType |
Definition at line 288 of file CSRMatrixView.h.
|
inline |
Definition at line 294 of file CSRMatrixView.h.
|
inline |
Definition at line 363 of file CSRMatrixView.h.
|
inlineconstexpr |
Definition at line 347 of file CSRMatrixView.h.
|
inlineconstexpr |
Value of the matrix for the given RowColumnIndex rc_index.
Definition at line 380 of file CSRMatrixView.h.
|
inlinenoexcept |
Definition at line 318 of file CSRMatrixView.h.
|
inlineconstexprnoexcept |
Number of non-zero in the matrix.
Definition at line 308 of file CSRMatrixView.h.
|
inlineconstexpr |
Number of non-zero for the row row.
Definition at line 311 of file CSRMatrixView.h.
|
inlineconstexprnoexcept |
Number of row.
Definition at line 306 of file CSRMatrixView.h.
|
inline |
Definition at line 358 of file CSRMatrixView.h.
|
inlineconstexpr |
Definition at line 342 of file CSRMatrixView.h.
|
inlinenoexcept |
Definition at line 317 of file CSRMatrixView.h.
|
inlinenodiscardconstexpr |
Definition at line 323 of file CSRMatrixView.h.
|
inlineconstexpr |
Range of all rows of the matrix.
Definition at line 330 of file CSRMatrixView.h.
|
inlineconstexpr |
Range of rows from interval [begin,begin+size[.
Definition at line 335 of file CSRMatrixView.h.
|
inline |
Definition at line 368 of file CSRMatrixView.h.
|
inlineconstexpr |
Definition at line 352 of file CSRMatrixView.h.
|
inlineconstexpr |
Value of the matrix for the given RowColumnIndex rc_index.
Definition at line 375 of file CSRMatrixView.h.
|
inlinenoexcept |
Definition at line 319 of file CSRMatrixView.h.
|
private |
Definition at line 389 of file CSRMatrixView.h.
|
private |
Definition at line 391 of file CSRMatrixView.h.
|
private |
Definition at line 390 of file CSRMatrixView.h.
|
private |
Definition at line 388 of file CSRMatrixView.h.
|
private |
Definition at line 387 of file CSRMatrixView.h.