|
using | ColumnsIndexesViewType = ColumnsIndexesView |
| Type of container view used for storing the column indexes of the matrix elements.
|
|
using | ConstColumnsIndexesViewType = typename ColumnsIndexesViewType::ConstViewType |
| Type of constant container view used for storing the column indexes of the matrix elements.
|
|
using | ConstRowView = SparseSandboxMatrixRowView< ConstValuesViewType, ConstColumnsIndexesViewType, isBinary_ > |
| Type of constant sparse matrix row view.
|
|
using | ConstValuesViewType = typename ValuesViewType::ConstViewType |
| Type of constant container view used for storing the matrix elements values.
|
|
using | IndexType = typename ColumnsIndexesView::IndexType |
| The type used for matrix elements indexing.
|
|
using | IteratorType = MatrixRowViewIterator< RowView > |
| Type of iterator for the matrix row.
|
|
using | MatrixElementType = SparseMatrixElement< RealType, IndexType > |
| The type of related matrix element.
|
|
using | RealType = typename ValuesView::RealType |
| The type of matrix elements.
|
|
using | RowView = SparseSandboxMatrixRowView< ValuesViewType, ColumnsIndexesViewType, isBinary_ > |
| Type of sparse matrix row view.
|
|
using | ValuesViewType = ValuesView |
| Type of container view used for storing the matrix elements values.
|
|
|
__cuda_callable__ | SparseSandboxMatrixRowView (IndexType rowIdx, IndexType offset, IndexType size, const ValuesViewType &values, const ColumnsIndexesViewType &columnIndexes) |
| Constructor with segmentView, values and columnIndexes.
|
|
__cuda_callable__ IteratorType | begin () |
| Returns iterator pointing at the beginning of the matrix row.
|
|
__cuda_callable__ const IteratorType | cbegin () const |
| Returns constant iterator pointing at the beginning of the matrix row.
|
|
__cuda_callable__ const IteratorType | cend () const |
| Returns constant iterator pointing at the end of the matrix row.
|
|
__cuda_callable__ IteratorType | end () |
| Returns iterator pointing at the end of the matrix row.
|
|
__cuda_callable__ IndexType & | getColumnIndex (IndexType localIdx) |
| Returns non-constants reference to a column index of an element with given rank in the row.
|
|
__cuda_callable__ const IndexType & | getColumnIndex (IndexType localIdx) const |
| Returns constants reference to a column index of an element with given rank in the row.
|
|
__cuda_callable__ const IndexType & | getRowIndex () const |
| Returns the matrix row index.
|
|
__cuda_callable__ IndexType | getSize () const |
| Returns size of the matrix row, i.e. number of matrix elements in this row.
|
|
__cuda_callable__ RealType & | getValue (IndexType localIdx) |
| Returns non-constants reference to value of an element with given rank in the row.
|
|
__cuda_callable__ const RealType & | getValue (IndexType localIdx) const |
| Returns constants reference to value of an element with given rank in the row.
|
|
template<typename _ValuesView , typename _ColumnsIndexesView , bool _isBinary> |
__cuda_callable__ bool | operator== (const SparseSandboxMatrixRowView< _ValuesView, _ColumnsIndexesView, _isBinary > &other) const |
| Comparison of two matrix rows.
|
|
__cuda_callable__ void | setColumnIndex (IndexType localIdx, const IndexType &columnIndex) |
| Sets a column index of matrix element with given rank in the matrix row.
|
|
__cuda_callable__ void | setElement (IndexType localIdx, IndexType columnIndex, const RealType &value) |
| Sets both a value and a column index of matrix element with given rank in the matrix row.
|
|
__cuda_callable__ void | setValue (IndexType localIdx, const RealType &value) |
| Sets a value of matrix element with given rank in the matrix row.
|
|
template<typename ValuesView, typename ColumnsIndexesView, bool isBinary_>
class TNL::Matrices::Sandbox::SparseSandboxMatrixRowView< ValuesView, ColumnsIndexesView, isBinary_ >
RowView is a simple structure for accessing rows of sparse matrix.
- Template Parameters
-
ValuesView | is a vector view storing the matrix elements values. |
ColumnsIndexesView | is a vector view storing the column indexes of the matrix element. |
isBinary | tells if the the parent matrix is a binary matrix. |
See SparseSandboxMatrix and SparseSandboxMatrixView.
template<typename ValuesView , typename ColumnsIndexesView , bool isBinary_>
template<typename _ValuesView , typename _ColumnsIndexesView , bool _isBinary>
Comparison of two matrix rows.
The other matrix row can be from any other matrix.
- Parameters
-
other | is another matrix row. |
- Returns
- true if both rows are the same, false otherwise.