NeoN
A framework for CFD software
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
NeoN::la::SparsityView< IndexType > Struct Template Reference

A view struct to allow easy read/write on all executors. More...

#include <sparsityView.hpp>

Public Member Functions

 SparsityView (View< const IndexType > colIdxsView, View< const IndexType > rowOffsView)
 
KOKKOS_INLINE_FUNCTION IndexType entry (const IndexType i, const IndexType j) const
 Retrieve a reference to the matrix element at position (i,j).
 

Public Attributes

View< const IndexType > colIdxs
 
View< const IndexType > rowOffs
 

Detailed Description

template<typename IndexType>
struct NeoN::la::SparsityView< IndexType >

A view struct to allow easy read/write on all executors.

Template Parameters
IndexTypeThe index type of the rows and columns.
Todo:
ideally this should be immutable

Definition at line 30 of file sparsityView.hpp.

Constructor & Destructor Documentation

◆ SparsityView()

template<typename IndexType >
NeoN::la::SparsityView< IndexType >::SparsityView ( View< const IndexType >  colIdxsView,
View< const IndexType >  rowOffsView 
)
inline

Definition at line 32 of file sparsityView.hpp.

Member Function Documentation

◆ entry()

template<typename IndexType >
KOKKOS_INLINE_FUNCTION IndexType NeoN::la::SparsityView< IndexType >::entry ( const IndexType  i,
const IndexType  j 
) const
inline

Retrieve a reference to the matrix element at position (i,j).

Parameters
iThe row index.
jThe column index.
Returns
Reference to the matrix element if it exists.

Definition at line 43 of file sparsityView.hpp.

Member Data Documentation

◆ colIdxs

template<typename IndexType >
View<const IndexType> NeoN::la::SparsityView< IndexType >::colIdxs

Definition at line 59 of file sparsityView.hpp.

◆ rowOffs

template<typename IndexType >
View<const IndexType> NeoN::la::SparsityView< IndexType >::rowOffs

Definition at line 60 of file sparsityView.hpp.


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