Kokkos Core Kernels Package  Version of the Day
Public Member Functions | List of all members
Kokkos::StaticCrsGraph< DataType, Arg1Type, Arg2Type, SizeType > Class Template Reference

Compressed row storage array. More...

#include <Kokkos_StaticCrsGraph.hpp>

Public Member Functions

 StaticCrsGraph ()
 Construct an empty view. More...
 
 StaticCrsGraph (const StaticCrsGraph &rhs)
 Copy constructor (shallow copy). More...
 
StaticCrsGraphoperator= (const StaticCrsGraph &rhs)
 Assign to a view of the rhs array. If the old view is the last view then allocated memory is deallocated. More...
 
 ~StaticCrsGraph ()
 Destroy this view of the array. If the last view then allocated memory is deallocated. More...
 

Detailed Description

template<class DataType, class Arg1Type, class Arg2Type = void, typename SizeType = typename ViewTraits<DataType*, Arg1Type, Arg2Type, void >::size_type>
class Kokkos::StaticCrsGraph< DataType, Arg1Type, Arg2Type, SizeType >

Compressed row storage array.

Template Parameters
DataTypeThe type of stored entries. If a StaticCrsGraph is used as the graph of a sparse matrix, then this is usually an integer type, the type of the column indices in the sparse matrix.
Arg1TypeThe second template parameter, corresponding either to the Device type (if there are no more template parameters) or to the Layout type (if there is at least one more template parameter).
Arg2TypeThe third template parameter, which if provided corresponds to the Device type.
SizeTypeThe type of row offsets. Usually the default parameter suffices. However, setting a nondefault value is necessary in some cases, for example, if you want to have a sparse matrices with dimensions (and therefore column indices) that fit in int, but want to store more than INT_MAX entries in the sparse matrix.

A row has a range of entries:

Definition at line 88 of file Kokkos_StaticCrsGraph.hpp.

Constructor & Destructor Documentation

◆ StaticCrsGraph() [1/2]

template<class DataType, class Arg1Type, class Arg2Type = void, typename SizeType = typename ViewTraits<DataType*, Arg1Type, Arg2Type, void >::size_type>
Kokkos::StaticCrsGraph< DataType, Arg1Type, Arg2Type, SizeType >::StaticCrsGraph ( )
inline

Construct an empty view.

Definition at line 108 of file Kokkos_StaticCrsGraph.hpp.

◆ StaticCrsGraph() [2/2]

template<class DataType, class Arg1Type, class Arg2Type = void, typename SizeType = typename ViewTraits<DataType*, Arg1Type, Arg2Type, void >::size_type>
Kokkos::StaticCrsGraph< DataType, Arg1Type, Arg2Type, SizeType >::StaticCrsGraph ( const StaticCrsGraph< DataType, Arg1Type, Arg2Type, SizeType > &  rhs)
inline

Copy constructor (shallow copy).

Definition at line 111 of file Kokkos_StaticCrsGraph.hpp.

◆ ~StaticCrsGraph()

template<class DataType, class Arg1Type, class Arg2Type = void, typename SizeType = typename ViewTraits<DataType*, Arg1Type, Arg2Type, void >::size_type>
Kokkos::StaticCrsGraph< DataType, Arg1Type, Arg2Type, SizeType >::~StaticCrsGraph ( )
inline

Destroy this view of the array. If the last view then allocated memory is deallocated.

Definition at line 131 of file Kokkos_StaticCrsGraph.hpp.

Member Function Documentation

◆ operator=()

template<class DataType, class Arg1Type, class Arg2Type = void, typename SizeType = typename ViewTraits<DataType*, Arg1Type, Arg2Type, void >::size_type>
StaticCrsGraph& Kokkos::StaticCrsGraph< DataType, Arg1Type, Arg2Type, SizeType >::operator= ( const StaticCrsGraph< DataType, Arg1Type, Arg2Type, SizeType > &  rhs)
inline

Assign to a view of the rhs array. If the old view is the last view then allocated memory is deallocated.

Definition at line 122 of file Kokkos_StaticCrsGraph.hpp.


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