Ginkgo  Generated from remotes/origin/develop 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::dense< ValueType > Struct Template Reference

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

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

Collaboration diagram for gko::matrix::view::dense< ValueType >:
[legend]

Public Member Functions

constexpr dense (dim< 2 > size, size_type stride, ValueType *data)
 Constructs a dense view from size, stride and data.
 
constexpr dense< const ValueType > as_const () const
 Returns a const view of the same data.
 
constexpr ValueType & operator() (size_type row, size_type col) const
 Subscript operator accessing the given row and column.
 

Public Attributes

dim< 2 > size
 
size_type stride
 
ValueType * data
 

Detailed Description

template<typename ValueType>
struct gko::matrix::view::dense< ValueType >

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

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