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::coo< ValueType, IndexType > Struct Template Reference

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

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

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

Public Member Functions

constexpr coo (dim< 2 > size, size_type num_stored_elements, ValueType *values, IndexType *row_idxs, IndexType *col_idxs)
 Constructs a coo view from size, nnz, values, row and column indices.
 
constexpr coo< const ValueType, const IndexType > as_const () const
 Returns a const view of the same data.
 

Public Attributes

dim< 2 > size
 
size_type num_stored_elements
 
ValueType * values
 
IndexType * row_idxs
 
IndexType * col_idxs
 

Detailed Description

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

Non-owning view of a matrix::Coo 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 entries.
IndexTypethe index type used to store row and column indices.

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