|
NeoN
A framework for CFD software
|
A view struct to allow easy read/write on all executors. More...
#include <matrix.hpp>
Public Member Functions | |
| MatrixView (const View< ValueType > valueView, SparsityViewType sparsityView) | |
| Constructor for MatrixView. | |
| ~MatrixView ()=default | |
| Default destructor. | |
| KOKKOS_INLINE_FUNCTION ValueType & | entry (const localIdx i, const localIdx j) const |
| Retrieve a reference to the matrix element at position (i,j). | |
| KOKKOS_INLINE_FUNCTION ValueType & | entry (const localIdx offset) const |
| Direct access to a value given the offset. | |
Public Attributes | |
| View< ValueType > | values |
| View to the values of the CSR matrix. | |
| SparsityViewType | sparsity |
A view struct to allow easy read/write on all executors.
| ValueType | The value type of the non-zero entries. |
| SparsityViewType | The type of the sparsity pattern, eg COO or CSR. |
Definition at line 23 of file matrix.hpp.
|
inline |
Constructor for MatrixView.
| valueView | View of the non-zero values of the matrix. |
| colIdxsView | View of the column indices for each non-zero value. |
| rowOffsView | View of the starting index in values/colIdxs for each row. |
Definition at line 31 of file matrix.hpp.
|
default |
Default destructor.
|
inline |
Retrieve a reference to the matrix element at position (i,j).
| i | The row index. |
| j | The column index. |
Definition at line 46 of file matrix.hpp.
|
inline |
Direct access to a value given the offset.
| offset | The offset, from 0, to the value. |
Definition at line 57 of file matrix.hpp.
| SparsityViewType NeoN::la::MatrixView< ValueType, SparsityViewType >::sparsity |
Definition at line 60 of file matrix.hpp.
| View<ValueType> NeoN::la::MatrixView< ValueType, SparsityViewType >::values |
View to the values of the CSR matrix.
Definition at line 59 of file matrix.hpp.