Ginkgo  Generated from pipelines/2500191992 branch based on develop. Ginkgo version 2.0.0
A numerical linear algebra library targeting many-core architectures
Public Types | Public Member Functions | Public Attributes | List of all members
gko::matrix::view::sellp< ValueType, IndexType > Struct Template Reference

Non-owning view of a matrix::Sellp to be used inside device kernels. More...

#include <ginkgo/core/matrix/device_views.hpp>

Collaboration diagram for gko::matrix::view::sellp< ValueType, IndexType >:
[legend]

Public Types

using adapt_size_type = std::conditional_t< std::is_const_v< ValueType >, const size_type, size_type >
 

Public Member Functions

constexpr sellp (dim< 2 > size, size_type slice_size, size_type stride_factor, size_type total_cols, ValueType *values, IndexType *col_idxs, adapt_size_type *slice_lengths, adapt_size_type *slice_sets)
 Constructs a sellp view.
 
constexpr sellp< const ValueType, const IndexType > as_const () const
 Returns a const view of the same values.
 
constexpr ValueType & val_at (size_type row, size_type slice_set, size_type idx) const
 accessing the value of the idx-th element within the given row
 
constexpr IndexType & col_at (size_type row, size_type slice_set, size_type idx) const
 accessing the column index of the idx-th element within the given row
 

Public Attributes

dim< 2 > size
 
size_type slice_size
 
size_type stride_factor
 
size_type total_cols
 
ValueType * values
 
IndexType * col_idxs
 
adapt_size_type * slice_lengths
 
adapt_size_type * slice_sets
 

Detailed Description

template<typename ValueType, typename IndexType>
struct gko::matrix::view::sellp< ValueType, IndexType >

Non-owning view of a matrix::Sellp to be used inside device kernels.

This type is used to provide a simple and stable ABI for passing data between libraries.

Template Parameters
ValueTypethe value type used to store matrix values.
IndexTypethe index type used to store matrix columns.

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