Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Static Public Member Functions | Private Types | Private Attributes | List of all members
Stokhos::FlatSparse3Tensor_kji< ValueType, ExecutionSpace > Class Template Reference

Sparse product tensor with replicated entries to provide subsets with a given coordinate. More...

#include <Stokhos_FlatSparse3Tensor_kji.hpp>

Public Types

typedef ExecutionSpace execution_space
 
typedef execution_space::size_type size_type
 
typedef ValueType value_type
 

Public Member Functions

 ~FlatSparse3Tensor_kji ()
 
 FlatSparse3Tensor_kji ()
 
 FlatSparse3Tensor_kji (const FlatSparse3Tensor_kji &rhs)
 
FlatSparse3Tensor_kjioperator= (const FlatSparse3Tensor_kji &rhs)
 
KOKKOS_INLINE_FUNCTION size_type dimension () const
 Dimension of the tensor. More...
 
KOKKOS_INLINE_FUNCTION size_type num_k () const
 Number of k entries. More...
 
KOKKOS_INLINE_FUNCTION size_type entry_count () const
 Number of sparse entries. More...
 
KOKKOS_INLINE_FUNCTION size_type j_begin (size_type k) const
 Begin j entries with a coordinate 'k'. More...
 
KOKKOS_INLINE_FUNCTION size_type j_end (size_type k) const
 End j entries with a coordinate 'k'. More...
 
KOKKOS_INLINE_FUNCTION size_type num_j (size_type k) const
 Number of j entries with a coordinate 'k'. More...
 
KOKKOS_INLINE_FUNCTION const
size_type
j_coord (const size_type jEntry) const
 j coordinate for j entry 'jEntry' More...
 
KOKKOS_INLINE_FUNCTION size_type i_begin (size_type jEntry) const
 Begin i entries with a j entry 'jEntry'. More...
 
KOKKOS_INLINE_FUNCTION size_type i_end (size_type jEntry) const
 End i entries with a j entry 'jEntry'. More...
 
KOKKOS_INLINE_FUNCTION size_type num_i (size_type jEntry) const
 Number of i entries with a j entry 'jEntry'. More...
 
KOKKOS_INLINE_FUNCTION const
size_type
i_coord (const size_type iEntry) const
 i coordinate for i entry 'iEntry' More...
 
KOKKOS_INLINE_FUNCTION const
value_type
value (const size_type iEntry) const
 Value for i entry 'iEntry'. More...
 
KOKKOS_INLINE_FUNCTION size_type num_non_zeros () const
 Number of non-zero's. More...
 
KOKKOS_INLINE_FUNCTION size_type num_flops () const
 Number flop's per multiply-add. More...
 

Static Public Member Functions

template<typename OrdinalType >
static FlatSparse3Tensor_kji create (const Stokhos::ProductBasis< OrdinalType, ValueType > &basis, const Stokhos::Sparse3Tensor< OrdinalType, ValueType > &Cijk, const Teuchos::ParameterList &params=Teuchos::ParameterList())
 

Private Types

typedef Kokkos::View
< size_type[], execution_space
coord_array_type
 
typedef Kokkos::View
< value_type[],
execution_space
value_array_type
 
typedef Kokkos::View
< size_type[], execution_space
entry_array_type
 
typedef Kokkos::View
< size_type[], execution_space
row_map_array_type
 

Private Attributes

coord_array_type m_j_coord
 
coord_array_type m_i_coord
 
value_array_type m_value
 
entry_array_type m_num_j
 
entry_array_type m_num_i
 
row_map_array_type m_j_row_map
 
row_map_array_type m_i_row_map
 
size_type m_nnz
 
size_type m_dim
 
size_type m_flops
 

Detailed Description

template<typename ValueType, class ExecutionSpace>
class Stokhos::FlatSparse3Tensor_kji< ValueType, ExecutionSpace >

Sparse product tensor with replicated entries to provide subsets with a given coordinate.

Definition at line 61 of file Stokhos_FlatSparse3Tensor_kji.hpp.

Member Typedef Documentation

template<typename ValueType , class ExecutionSpace >
typedef ExecutionSpace Stokhos::FlatSparse3Tensor_kji< ValueType, ExecutionSpace >::execution_space

Definition at line 64 of file Stokhos_FlatSparse3Tensor_kji.hpp.

template<typename ValueType , class ExecutionSpace >
typedef execution_space::size_type Stokhos::FlatSparse3Tensor_kji< ValueType, ExecutionSpace >::size_type

Definition at line 65 of file Stokhos_FlatSparse3Tensor_kji.hpp.

template<typename ValueType , class ExecutionSpace >
typedef ValueType Stokhos::FlatSparse3Tensor_kji< ValueType, ExecutionSpace >::value_type

Definition at line 66 of file Stokhos_FlatSparse3Tensor_kji.hpp.

template<typename ValueType , class ExecutionSpace >
typedef Kokkos::View< size_type[] , execution_space > Stokhos::FlatSparse3Tensor_kji< ValueType, ExecutionSpace >::coord_array_type
private

Definition at line 70 of file Stokhos_FlatSparse3Tensor_kji.hpp.

template<typename ValueType , class ExecutionSpace >
typedef Kokkos::View< value_type[], execution_space > Stokhos::FlatSparse3Tensor_kji< ValueType, ExecutionSpace >::value_array_type
private

Definition at line 71 of file Stokhos_FlatSparse3Tensor_kji.hpp.

template<typename ValueType , class ExecutionSpace >
typedef Kokkos::View< size_type[], execution_space > Stokhos::FlatSparse3Tensor_kji< ValueType, ExecutionSpace >::entry_array_type
private

Definition at line 72 of file Stokhos_FlatSparse3Tensor_kji.hpp.

template<typename ValueType , class ExecutionSpace >
typedef Kokkos::View< size_type[], execution_space > Stokhos::FlatSparse3Tensor_kji< ValueType, ExecutionSpace >::row_map_array_type
private

Definition at line 73 of file Stokhos_FlatSparse3Tensor_kji.hpp.

Constructor & Destructor Documentation

template<typename ValueType , class ExecutionSpace >
Stokhos::FlatSparse3Tensor_kji< ValueType, ExecutionSpace >::~FlatSparse3Tensor_kji ( )
inline

Definition at line 90 of file Stokhos_FlatSparse3Tensor_kji.hpp.

template<typename ValueType , class ExecutionSpace >
Stokhos::FlatSparse3Tensor_kji< ValueType, ExecutionSpace >::FlatSparse3Tensor_kji ( )
inline

Definition at line 93 of file Stokhos_FlatSparse3Tensor_kji.hpp.

template<typename ValueType , class ExecutionSpace >
Stokhos::FlatSparse3Tensor_kji< ValueType, ExecutionSpace >::FlatSparse3Tensor_kji ( const FlatSparse3Tensor_kji< ValueType, ExecutionSpace > &  rhs)
inline

Definition at line 106 of file Stokhos_FlatSparse3Tensor_kji.hpp.

Member Function Documentation

template<typename ValueType , class ExecutionSpace >
FlatSparse3Tensor_kji& Stokhos::FlatSparse3Tensor_kji< ValueType, ExecutionSpace >::operator= ( const FlatSparse3Tensor_kji< ValueType, ExecutionSpace > &  rhs)
inline

Definition at line 119 of file Stokhos_FlatSparse3Tensor_kji.hpp.

template<typename ValueType , class ExecutionSpace >
KOKKOS_INLINE_FUNCTION size_type Stokhos::FlatSparse3Tensor_kji< ValueType, ExecutionSpace >::dimension ( ) const
inline

Dimension of the tensor.

Definition at line 136 of file Stokhos_FlatSparse3Tensor_kji.hpp.

template<typename ValueType , class ExecutionSpace >
KOKKOS_INLINE_FUNCTION size_type Stokhos::FlatSparse3Tensor_kji< ValueType, ExecutionSpace >::num_k ( ) const
inline

Number of k entries.

Definition at line 140 of file Stokhos_FlatSparse3Tensor_kji.hpp.

template<typename ValueType , class ExecutionSpace >
KOKKOS_INLINE_FUNCTION size_type Stokhos::FlatSparse3Tensor_kji< ValueType, ExecutionSpace >::entry_count ( ) const
inline

Number of sparse entries.

Definition at line 144 of file Stokhos_FlatSparse3Tensor_kji.hpp.

template<typename ValueType , class ExecutionSpace >
KOKKOS_INLINE_FUNCTION size_type Stokhos::FlatSparse3Tensor_kji< ValueType, ExecutionSpace >::j_begin ( size_type  k) const
inline

Begin j entries with a coordinate 'k'.

Definition at line 149 of file Stokhos_FlatSparse3Tensor_kji.hpp.

template<typename ValueType , class ExecutionSpace >
KOKKOS_INLINE_FUNCTION size_type Stokhos::FlatSparse3Tensor_kji< ValueType, ExecutionSpace >::j_end ( size_type  k) const
inline

End j entries with a coordinate 'k'.

Definition at line 154 of file Stokhos_FlatSparse3Tensor_kji.hpp.

template<typename ValueType , class ExecutionSpace >
KOKKOS_INLINE_FUNCTION size_type Stokhos::FlatSparse3Tensor_kji< ValueType, ExecutionSpace >::num_j ( size_type  k) const
inline

Number of j entries with a coordinate 'k'.

Definition at line 159 of file Stokhos_FlatSparse3Tensor_kji.hpp.

template<typename ValueType , class ExecutionSpace >
KOKKOS_INLINE_FUNCTION const size_type& Stokhos::FlatSparse3Tensor_kji< ValueType, ExecutionSpace >::j_coord ( const size_type  jEntry) const
inline

j coordinate for j entry 'jEntry'

Definition at line 164 of file Stokhos_FlatSparse3Tensor_kji.hpp.

template<typename ValueType , class ExecutionSpace >
KOKKOS_INLINE_FUNCTION size_type Stokhos::FlatSparse3Tensor_kji< ValueType, ExecutionSpace >::i_begin ( size_type  jEntry) const
inline

Begin i entries with a j entry 'jEntry'.

Definition at line 169 of file Stokhos_FlatSparse3Tensor_kji.hpp.

template<typename ValueType , class ExecutionSpace >
KOKKOS_INLINE_FUNCTION size_type Stokhos::FlatSparse3Tensor_kji< ValueType, ExecutionSpace >::i_end ( size_type  jEntry) const
inline

End i entries with a j entry 'jEntry'.

Definition at line 174 of file Stokhos_FlatSparse3Tensor_kji.hpp.

template<typename ValueType , class ExecutionSpace >
KOKKOS_INLINE_FUNCTION size_type Stokhos::FlatSparse3Tensor_kji< ValueType, ExecutionSpace >::num_i ( size_type  jEntry) const
inline

Number of i entries with a j entry 'jEntry'.

Definition at line 179 of file Stokhos_FlatSparse3Tensor_kji.hpp.

template<typename ValueType , class ExecutionSpace >
KOKKOS_INLINE_FUNCTION const size_type& Stokhos::FlatSparse3Tensor_kji< ValueType, ExecutionSpace >::i_coord ( const size_type  iEntry) const
inline

i coordinate for i entry 'iEntry'

Definition at line 184 of file Stokhos_FlatSparse3Tensor_kji.hpp.

template<typename ValueType , class ExecutionSpace >
KOKKOS_INLINE_FUNCTION const value_type& Stokhos::FlatSparse3Tensor_kji< ValueType, ExecutionSpace >::value ( const size_type  iEntry) const
inline

Value for i entry 'iEntry'.

Definition at line 189 of file Stokhos_FlatSparse3Tensor_kji.hpp.

template<typename ValueType , class ExecutionSpace >
KOKKOS_INLINE_FUNCTION size_type Stokhos::FlatSparse3Tensor_kji< ValueType, ExecutionSpace >::num_non_zeros ( ) const
inline

Number of non-zero's.

Definition at line 194 of file Stokhos_FlatSparse3Tensor_kji.hpp.

template<typename ValueType , class ExecutionSpace >
KOKKOS_INLINE_FUNCTION size_type Stokhos::FlatSparse3Tensor_kji< ValueType, ExecutionSpace >::num_flops ( ) const
inline

Number flop's per multiply-add.

Definition at line 199 of file Stokhos_FlatSparse3Tensor_kji.hpp.

template<typename ValueType , class ExecutionSpace >
template<typename OrdinalType >
static FlatSparse3Tensor_kji Stokhos::FlatSparse3Tensor_kji< ValueType, ExecutionSpace >::create ( const Stokhos::ProductBasis< OrdinalType, ValueType > &  basis,
const Stokhos::Sparse3Tensor< OrdinalType, ValueType > &  Cijk,
const Teuchos::ParameterList params = Teuchos::ParameterList() 
)
inlinestatic

Definition at line 204 of file Stokhos_FlatSparse3Tensor_kji.hpp.

Member Data Documentation

template<typename ValueType , class ExecutionSpace >
coord_array_type Stokhos::FlatSparse3Tensor_kji< ValueType, ExecutionSpace >::m_j_coord
private

Definition at line 75 of file Stokhos_FlatSparse3Tensor_kji.hpp.

template<typename ValueType , class ExecutionSpace >
coord_array_type Stokhos::FlatSparse3Tensor_kji< ValueType, ExecutionSpace >::m_i_coord
private

Definition at line 76 of file Stokhos_FlatSparse3Tensor_kji.hpp.

template<typename ValueType , class ExecutionSpace >
value_array_type Stokhos::FlatSparse3Tensor_kji< ValueType, ExecutionSpace >::m_value
private

Definition at line 77 of file Stokhos_FlatSparse3Tensor_kji.hpp.

template<typename ValueType , class ExecutionSpace >
entry_array_type Stokhos::FlatSparse3Tensor_kji< ValueType, ExecutionSpace >::m_num_j
private

Definition at line 78 of file Stokhos_FlatSparse3Tensor_kji.hpp.

template<typename ValueType , class ExecutionSpace >
entry_array_type Stokhos::FlatSparse3Tensor_kji< ValueType, ExecutionSpace >::m_num_i
private

Definition at line 79 of file Stokhos_FlatSparse3Tensor_kji.hpp.

template<typename ValueType , class ExecutionSpace >
row_map_array_type Stokhos::FlatSparse3Tensor_kji< ValueType, ExecutionSpace >::m_j_row_map
private

Definition at line 80 of file Stokhos_FlatSparse3Tensor_kji.hpp.

template<typename ValueType , class ExecutionSpace >
row_map_array_type Stokhos::FlatSparse3Tensor_kji< ValueType, ExecutionSpace >::m_i_row_map
private

Definition at line 81 of file Stokhos_FlatSparse3Tensor_kji.hpp.

template<typename ValueType , class ExecutionSpace >
size_type Stokhos::FlatSparse3Tensor_kji< ValueType, ExecutionSpace >::m_nnz
private

Definition at line 82 of file Stokhos_FlatSparse3Tensor_kji.hpp.

template<typename ValueType , class ExecutionSpace >
size_type Stokhos::FlatSparse3Tensor_kji< ValueType, ExecutionSpace >::m_dim
private

Definition at line 83 of file Stokhos_FlatSparse3Tensor_kji.hpp.

template<typename ValueType , class ExecutionSpace >
size_type Stokhos::FlatSparse3Tensor_kji< ValueType, ExecutionSpace >::m_flops
private

Definition at line 84 of file Stokhos_FlatSparse3Tensor_kji.hpp.


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