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

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

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

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

Public Member Functions

constexpr ell (dim< 2 > size, size_type num_stored_elements_per_row, size_type stride, ValueType *values, IndexType *col_idxs)
 Constructs a ell view.
 
constexpr ell< const ValueType, const IndexType > as_const () const
 Returns a const view of the same values.
 
constexpr ValueType & val_at (size_type row, 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 idx) const
 accessing the column index of the idx-th element within the given row
 

Public Attributes

dim< 2 > size
 
size_type num_stored_elements_per_row
 
size_type stride
 
ValueType * values
 
IndexType * col_idxs
 

Detailed Description

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

Non-owning view of a matrix::Ell 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: