Stokhos  Development
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Types | Public Member Functions | Static Public Member Functions | List of all members
Stokhos::FlatSparse3Tensor< ValueType, DeviceType > Class Template Reference

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

#include <Stokhos_FlatSparse3Tensor.hpp>

Public Types

typedef DeviceType device_type
 
typedef device_type::size_type size_type
 
typedef ValueType value_type
 

Public Member Functions

 FlatSparse3Tensor (const FlatSparse3Tensor &rhs)
 
FlatSparse3Tensor & operator= (const FlatSparse3Tensor &rhs)
 
KOKKOSARRAY_INLINE_FUNCTION
size_type 
dimension () const
 Dimension of the tensor.
 
KOKKOSARRAY_INLINE_FUNCTION
size_type 
entry_count () const
 Number of sparse entries.
 
KOKKOSARRAY_INLINE_FUNCTION
size_type 
k_begin (size_type i) const
 Begin k entries with a coordinate 'i'.
 
KOKKOSARRAY_INLINE_FUNCTION
size_type 
k_end (size_type i) const
 End k entries with a coordinate 'i'.
 
KOKKOSARRAY_INLINE_FUNCTION
size_type 
num_k (size_type i) const
 Number of k entries with a coordinate 'i'.
 
KOKKOSARRAY_INLINE_FUNCTION
const size_type & 
k_coord (const size_type kEntry) const
 k coordinate for k entry 'kEntry'
 
KOKKOSARRAY_INLINE_FUNCTION
size_type 
j_begin (size_type kEntry) const
 Begin j entries with a k entry 'kEntry'.
 
KOKKOSARRAY_INLINE_FUNCTION
size_type 
j_end (size_type kEntry) const
 End j entries with a k entry 'kEntry'.
 
KOKKOSARRAY_INLINE_FUNCTION
size_type 
num_j (size_type kEntry) const
 Number of j entries with a k entry 'kEntry'.
 
KOKKOSARRAY_INLINE_FUNCTION
const size_type & 
j_coord (const size_type jEntry) const
 j coordinate for j entry 'jEntry'
 
KOKKOSARRAY_INLINE_FUNCTION
const value_type & 
value (const size_type jEntry) const
 Value for j entry 'jEntry'.
 
KOKKOSARRAY_INLINE_FUNCTION
size_type 
num_non_zeros () const
 Number of non-zero's.
 
KOKKOSARRAY_INLINE_FUNCTION
size_type 
num_flops () const
 Number flop's per multiply-add.
 

Static Public Member Functions

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

Detailed Description

template<typename ValueType, class DeviceType>
class Stokhos::FlatSparse3Tensor< ValueType, DeviceType >

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


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